Hi, On 9/22/2006 7:58 AM, jay alvarez wrote: > 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.
If that's the case you could always either hard-code the necessary arguments in the check command - thereby possibly creating a large number of similar host check commands - or using a wrapper script around the actual check command. You could set up any additional arguments depending on the host name or address, for example. >There is no service associated with the > said hosts. That's a misconfiguration then :-) Hosts are only checked when they have a service problem. So: No services means no host checks. > 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. But why not simply add a service check doing what you now want to put into the host check? You could even simplify the host check to something like 'check_dummy 1 "Unknown switch state"' if you want to... > Any idea how to handle this? Yup, many ;-) Arno > 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@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 -- IT-Service Lehmann [EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de ------------------------------------------------------------------------- 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@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