Passing Arguments to checkcommand in hosts.cfg

jay alvarez nagi0sb0y at yahoo.com
Fri Sep 22 07:58:05 CEST 2006


Hi,

I'm trying to use check_cisco_ping for some hosts and
aside from the $HOSTADDRESS$ it requires the mpls
label. Passing an argument to the check_command using
!ARGn! notation doesn't work. I think it has something
to do with the ARG definition in the manual: "The nth
argument passed to the service check command. Nagios
supports up to 32 argument macros ($ARG1$ through
$ARG32$)." 

Arguments are only passed to service checks and not to
host checks. There is no service associated with the
said hosts. And I think it is not a good idea to just
rely on service checks result for those hosts such
that hosts can assumed to be up or down because the
host checking method will just be a waste to the
machine's resource given a huge number of hosts to be
checked but the host check commands arent working.

Any idea how to handle this? 
Thanks!

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-------------------------------------------------------------------------
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