passing command line parameters to plugins

EXT-Fuentes, James P James.P.Fuentes at boeing.com
Wed Jun 15 20:06:22 CEST 2005


> 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
 
Sort of an alias of your choosing if you will, as opposed to the literal command_line in checkcommands.cfg
 
-Jim

________________________________

From: Cam [mailto:cameron.matheson at gmail.com]
Sent: Wed 6/15/2005 10:23 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] passing command line parameters to plugins



Hi,

I'm trying to use the check_http plugin to check a webserver running
on an unusual port number.  the syntax at the command line is
check_http -p <foo> <host>.  to get it working in my services.cfg, i
just use the literal command-line approach w/ the check_command (e.g.,
check_command "/usr/lib/nagios/plugins/check_http -p 2584 aspapp1".
It seems like the "standard" way is to use the
"check_http!commandargs" approach, but i'm not sure how that's
supposed to work w/ the '-p', i've tried "check_http!-p!2584" (w/out
the quotes), but that doesn't work... what's the syntax for that?

Thanks,
Cameron Matheson


-------------------------------------------------------
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_idt77&alloc_id492&op=ick
_______________________________________________
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




-------------------------------------------------------
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_idt77&alloc_id492&op=ick
_______________________________________________
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



-------------------------------------------------------
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_idt77&alloc_id492&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