Menu

Linux Admin Tasks

Once your system is up and running, a best practice is to create a new user since you really shouldn't log in as root.

adduser <myusername>
usermod -a -G sudo <myusername> #so that your userid can run root commands

monit is software that monitors processes and system states, http://manpages.ubuntu.com/manpages/oneiric/man1/monit.1.html

  • send alerts to an email address if issues are noticed
  • runs every 2 minutes (configurable in /etc/monit/monitrc)
  • /etc/monit/conf.d/nter-monit.conf first line references an email address where alerts are sent, this needs to be changed to YOUR email address.
  • default configuration may fill up your root mailbox with warnings, we've seen these warnings fill up the entire root disk before.
  • Edit /etc/monit/monitrc to uncomment the following lines

    ## Monit has an embedded web server which can be used to view status of
    # allow @users readonly # allow users of group 'users' to connect readonly
    ## services monitored and manage services from a web interface. See the
    ## Monit Wiki if you want to enable SSL for the web server.
    set httpd port 2812 and
    # use address localhost # only accept connection from localhost
    allow localhost # allow localhost to connect to the server and
    # allow admin:monit # require user 'admin' with password 'monit'
    allow @monit # allow users of group 'monit' to connect (rw)

  • run 'service monit restart' to reload the file

  • addgroup monit
  • usermod -a -G monit <myusername>

Related

Wiki: NTER Wiki Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
OSZAR »