Code: Select all
su nagios
/usr/local/nagios/libexec/check_services -p sendmail
sudo /usr/local/nagios/libexec/check_init_service syslogCode: Select all
su nagios
/usr/local/nagios/libexec/check_services -p sendmail
sudo /usr/local/nagios/libexec/check_init_service syslogThe error is the same for sendmail, however there is no response for syslogBox293 wrote:On the remote host, run the following:
What do you get?Code: Select all
su nagios /usr/local/nagios/libexec/check_services -p sendmail sudo /usr/local/nagios/libexec/check_init_service syslog
Code: Select all
[nagios@localhost root]$ /usr/local/nagios/libexec/check_services -p sendmail
*** sendmail: Nok ***
[nagios@localhost root]$ sudo /usr/local/nagios/libexec/check_init_service syslog
Code: Select all
ls /etc/init.d/|grep syslogIn my opinion, the sendmail service on that server is not running, the check_services is reporting this (which is good).timlee wrote:The error is the same for sendmail
Code: Select all
[nagios@localhost root]$ /usr/local/nagios/libexec/check_services -p sendmail *** sendmail: Nok ***
Code: Select all
[root@centos01 ~]# service crond status
crond (pid 1054) is running...
[root@centos01 ~]# su nagios
[nagios@centos01 root]$ /usr/local/nagios/libexec/check_services -p crond
crond: 1
[nagios@centos01 root]$ exit
[root@centos01 ~]# service crond stop
Stopping crond: [ OK ]
[root@centos01 ~]# su nagios
[nagios@centos01 root]$ /usr/local/nagios/libexec/check_services -p crond
*** crond: Nok ***Hi, it is a rsyslog.scottwilkerson wrote:does this client have syslog installed? or is it rsyslog?Code: Select all
ls /etc/init.d/|grep syslog
Code: Select all
[root@localhost ~]# ls /etc/init.d/|grep syslog
rsyslog