check commands

Harrison Phinizy -X (hphinizy - at Cisco) hphinizy at cisco.com
Wed Jul 16 20:17:48 CEST 2008


All,
 
I wrote a script that accepts arguments depending on the content it is
checking for.  Using nagios web under the "Service Details" section of a
host I see there is a section named:
 
Check Command Args
(use : to separate args):
 
If I have a script called check_service (for example) and it accepts an
argument (-s <some string>) can I pass set this argument in the "Check
Command Args" field?  My check command is generic and my hope is to let
the arguments be passed on a per host basis.  This means one check
command can check this particular service and the minor variances from
one host to the next can be handled via the arguments passed to the
check_command/script.  
 
Regards,
 
Harison
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080716/4b2ee511/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
-------------- next part --------------
_______________________________________________
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