check_procs with multiple args

Hari Sekhon hpsekhon at googlemail.com
Mon Mar 26 14:33:32 CEST 2007


I currently use check_procs a lot, but am finding a limitation in either 
the plugin or my knowledge of it.

I want to check for a process with 3 args and the args can be in any 
order. I don't see how to do this as it takes a string after the -a 
switch this means that I have to have a predefined order for the args.

Is there a way, short of writing my own bash script for this, to do it?

Also, check_procs --help shows -a and --argument-array as the same thing 
but I am not sure how this array is supposed to be constructed as it 
says "STRING" after it.

Does it take an array or does it take a string?
If string then does it use the string like an array.

I have already tried to switch the position of args in the string to see 
if it will make a difference and it does, the plugin does not find the 
process.

-- 
Hari Sekhon


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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