define service{
use generic-service
host_name mail.com
service_description check-swap
check_command check_nrpe!check_swap
}
define service{
use generic-service
host_name mail.com
service_description check-load
check_command check_nrpe!check_load
}
define service{
use generic-service
host_name mail.com
service_description check-disk
check_command check_nrpe!check_hdb1
}
define service{
use generic-service
host_name mail.com
service_description zombie_procs
check_command check_nrpe!check_zombie_procs
}
define service{
use generic-service
host_name mail.com
service_description check-users
check_command check_nrpe!check_users
}
define service{
use generic-service
host_name mail.com
service_description total_procs
check_command check_nrpe!check_total_procs
}
[root@eric ~]# vim =/usr/local/nagios/etc/nagios.cfg
cfg_file=/usr/local/nagios/etc/objects/linux/mail.cfg
[root@eric ~]# service nagios restart