Scientific Linux 6
Sponsored Link

Nagios - Plugin - Check SMTP service2011/06/17

 
Enable plugin for monitor SMTP service.
[1] Configure target host
[root@node01 ~]#
vi /etc/nagios/nrpe.cfg
# add at the last line: warn with 5 seconds of time out, critical with 10 seconds

command[check_smtp]=/usr/lib64/nagios/plugins/check_smtp -w 5 -c 10
[root@node01 ~]#
/etc/rc.d/init.d/nrpe reload

Reloading nrpe
[ OK ]

[2] Configure Nagios server
[root@master ~]#
vi /etc/nagios/servers/node01.cfg
# add at the last line

define service{
    use                     generic-service
    host_name               node01
    service_description     SMTP
    check_command           check_nrpe!check_smtp
}

[root@master ~]#
/etc/rc.d/init.d/nagios reload

Running configuration check...done.
Reloading nagios configuration...done
[3] Access to Nagios site and make sure SMTP is added for monitoring.
Matched Content