Ad Widget

Collapse

Zabbix proc.num[spamd] returning 0 on CentOS 7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • getUP
    Member
    • Jun 2006
    • 34

    #1

    Zabbix proc.num[spamd] returning 0 on CentOS 7

    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.

    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
    If you compare this to CentOS 5 or 6 you will get the following:

    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
    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.
  • getUP
    Member
    • Jun 2006
    • 34

    #2
    As always the solution is easier than you thought of before. Replacing it with proc.num[,,,spamd] solved it for us.

    Comment

    Working...