Monitoring clamd.amavisd

Richard Clark noc at fohnet.co.uk
Wed Oct 19 18:15:22 CEST 2011


On Wed, Oct 19, 2011 at 01:38:10AM -0400, Alex wrote:
> Hi,
> 
> I need to monitor the clamd.amavisd binary, but having difficulty with
> the check_procs command. When using the following check_procs, it
> isn't able to identify any running processes:
> 
> # /usr/lib64/nagios/plugins/check_procs -w 1: -c 1: -C clamd.amavisd -u amavis
> PROCS CRITICAL: 0 processes with command name 'clamd.amavisd', UID =
> 496 (amavis)
> 
> However, the process is there:
> 
> # ps ax|grep clam
>  1066 ?        Ssl    1:13 clamd.amavisd -c /etc/clamd.d/amavisd.conf
> --pid /var/run/clamd.amavisd/clamd.pid
> 
> If I change the check_procs to just look for "clamd", it matches, but
> it also matches clamdscan, which also runs periodically, and I don't
> want it to do that.
> 
> Do you have any suggestions for what the problem may be? Is it because
> of the dot between clamd.amavisd?
> 
> Thanks for any ideas.
> Best regards,
> Alex

Try single-quoting the process name, see if that makes a difference. 

Failing that - check_procs can be a bit anal sometimes and doesn't
behave exactly the same as how 'ps ax' sees processes - see here for more explanation:
http://bangbangsoundslikemachinery.blogspot.com/2011/09/nagios-plugin-checkprocs-incorrectly.html


Cheers,
-- 
Richard Clark
richard at fohnet.co.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <https://www.monitoring-lists.org/archive/users/attachments/20111019/85d0c664/attachment.sig>
-------------- next part --------------
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list