Where can arguments go?
Martin Hugo
Martin_Hugo at hboe.org
Wed Feb 22 01:11:45 CET 2012
David,
You could use something like the check_iftraffic3 plug-in, that would also give you bandwidth useage.
Martin T. hugo
Network Administrator
Hilliard City Schools
614-921-7102 (Ph)
614-921-7243 (Fax)
-----Original Message-----
From: David Dyer-Bennet [mailto:dd-b at dd-b.net]
Sent: Tuesday, February 21, 2012 6:42 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Where can arguments go?
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
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
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