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 [email protected]
signature.asc
Description: Digital signature
------------------------------------------------------------------------------ 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
_______________________________________________ Nagios-users mailing list [email protected] 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
