Apparently on CentOS 7 some things have changed as to how spamassassin processes are started. As a result, proc.num[spamd] is getting 0 back from the agent.
If you compare this to CentOS 5 or 6 you will get the following:
Is there a universal way to get the right information for spamassassin processes that I'm missing? I would like to avoid generating multiple templates for every OS version we run. All other processes are monitored just fine by the way.
Code:
# ps -e -o pid,comm,cmd | grep spam 10221 /usr/bin/spamd /usr/bin/spamd --pidfile /var/run/spamd.pid -d -c -m 15 --ipv4 10232 spamd child spamd child 10233 spamd child spamd child
Code:
# ps -e -o pid,comm,cmd | grep spam --color 7749 spamd /usr/bin/spamd -d -c -m 5 7758 spamd spamd child 7759 spamd spamd child
Comment