Honored Contributor Honored Contributor
Process Monitoring for EITHER syslogd OR rsyslogd



I am trying to do something really simple here, but can't get it to work in OM9.


I am trying to monitor the syslog daemon on linux servers but I have been told the daemon is called "syslogd" on some servers and "rsyslogd" on others.


In OM8 the process monitoring was less strict, in that it simply did the equivalent of a "ps -ef | grep <process>", which would work here.


The adminui seems to take the process I have defined (syslogd) literally, and returns a FAILURE alert on servers running rsyslogd.


I have tried using a program option, using something like <`ps -ef | grep syslogd | grep -v grep | echo $?`> but that complains about newline characters.


I know I could write a script to do this but that would be painful for something so simple.


Any help would be much appreciated.



David Gerrish