passing command line parameters to plugins

Andreas Ericsson ae at op5.se
Wed Jun 15 21:58:26 CEST 2005


EXT-Fuentes, James P wrote:
>> From: EXT-Fuentes, James P Sent: Wed 6/15/2005 10:48 AM To: Cam;
>> nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users]
>> passing command line parameters to plugins
>> 
>> In your services.cfg: check_http!8088
>> 
>> In your checkcommands.cfg:check_http -p $ARG1$
>> 
>> -Jim
> 
> 
> To better clarify my last post, as Jason Q pointed out: your services
> check_command is probably something different than check_http. It
> could be some thing like check-http-server!8088
> 

It's a fairly good idea to stick to some sort of a naming standard when 
doing this, like check_http-port, check_https-port, 
check_https-port_cert and so on. Slapping 'my' in front of every custom 
checkcommand is a technique that has bitten many a programmer in the arse.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
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