Version 2 (modified by 13 years ago) (diff) | ,
---|
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 }
aptitude install nagios3
Preflight check: $ sudo nagios3 -v /etc/nagios3/nagios.cfg
user = nagios pass = n4g10s
user = nagiosadmin pass = n4g10s4