check_procs argument-array via check_by_ssh

Dirk H. Schulz dirk.schulz at kinzesberg.de
Mon Jun 23 09:51:19 CEST 2008


Hi folks,

I have a problem with the plugin check_procs (current version): I would 
like to use the argument-array (-a) to check the startup parameters of 
daemons, but that does not seem to work when used via check_by_ssh. For 
example:
Testing locally with
	PATH/check_procs -w 1:10 -c 1:15 -a '/usr/sbin/clamd -c /etc/clamd.conf'
works fine.
The same from remote with
	PATH/check_by_ssh -H FQDN -C "$USER1"/check_procs -w 1:10 -c 1:15 -a 
'/usr/sbin/clamd -c /etc/clamd.conf'"
fails with "check_procs: Critical Process Count must be an integer!"

I guess somehow the single quotes around the argument-array are not 
transferred correctly by check_by_ssh. I tried a few workarounds, but:
- using single quotes instead of double quotes for the -C expression: does 
not work ("unknown option -c")
- using -a for ever part of the argument-array: -a '/usr/sbin/clamd' -a 
'-c' -a '/etc/clamd.conf': does not work ("could not open pipe ..."

Is it possible to solve this with check_by_ssh? The docs did not provide 
anything I found helpful.

Regards,

Dirk


--------------------------------------------------------------
Dirk H. Schulz


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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