wiki:administration/nagios
close Warning: Can't synchronize with repository "(default)" (/usr/svn/silverfile does not appear to be a Subversion repository.). Look in the Trac log for more information.

Nagios

/etc/nagios2/conf.d

define host{
        use                     generic-host                    ; Inherit default values from a template
        host_name               sf001.silverfilecorp.com        ; The name we're giving to this host
        alias                   sf001                           ; Alias associated with the host
        address                 70.166.22.247                   ; IP address of the host
        contact_groups          admins                          ; group to notify when problems or recoveries happen
}

define service{
        use                     generic-service
        host_name               sf001.silverfilecorp.com
        service_description     HTTP
        check_command           check_http
}

; Per /etc/nagios-plugins/config/ssh.cfg -
; use check_ssh_port with ARG1 set to port you want to check

define service{
        use                     generic-service
        host_name               sf001.silverfilecorp.com
        service_description     SSH
        check_command           check_ssh_port!2222
}

http://www.sucka.net/2009/07/nagios-ubuntu-9-04-part-1/

aptitude install nagios3

Preflight check: $ sudo nagios3 -v /etc/nagios3/nagios.cfg

user = nagios pass = n4g10s

user = nagiosadmin pass = n4g10s4

Last modified 13 years ago Last modified on Jul 31, 2009, 6:44:30 AM