Where can arguments go?

David Dyer-Bennet dd-b at dd-b.net
Wed Feb 22 00:42:08 CET 2012


I'm looking to use a special check command to verify routers are in
operation by checking the main link port of the router (instead of the
default ping).  I'm running into confusion, because I need to specify a
port number in the host definition, and I can't really see how to do it.

I use soemthing like this for a template:

define host {
	name			snmp-switch	; The name of this host template
	use			generic-switch
	#check_command		check-host-alive ; Default command to check if routers
are "alive"
	check_command		check-snmp-switch-alive $HOSTADDRESS$ $ARG1$ $ARG2$
	register		0		; DONT REGISTER THIS - ITS JUST A TEMPLATE
}

I'm not sure the args on the check_command line are legal  And I'm not
sure that arguments on a "use snmp-switch" line referencing this could
have arguments on them.

Is this a possible / sane thing to do?  Is this the right way to approach
it, or am I missing a way that actually makes sense?


-- 
David Dyer-Bennet, dd-b at dd-b.net; http://dd-b.net/
Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/
Photos: http://dd-b.net/photography/gallery/
Dragaera: http://dragaera.info


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
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