Where can arguments go?

David Dyer-Bennet dd-b at dd-b.net
Wed Feb 22 17:02:07 CET 2012


On Tue, February 21, 2012 18:06, Jonathan Nilsson wrote:
> It looks like you are using variables in the wrong location. Those should
> go in the command definition. See below for a sample, and hopefully you
> can adapt it to your specific needs.

Ah, got it.  I hadn't thought of moving the check_command from the
template into the host definition; I was instead trying to pass arguments
through the template invocation, which apparently isn't supported.

(And I had syntax wrong on passing args; I know better than that, I've
written and used many other commands that need args, and passed them
properly before.)

Thank you, and thank you other posters with suggestions and variants as well.

[snip]

>> 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?
>>
>
> Yes, I would say that this is appropriate for a switch/router. Personally,
> I usually don't overwrite the default host check_command since check_ping
> is fine, and instead add additional services as needed, such as SNMP
> checks to get more info.

I'm thinking of using the router as a parent; if the failure isn't found
by the check_command but only by one service failing, will that still
cause the whole router host to be considered down for parent purposes? 
One goal here is to eliminate reports of multiple services being down from
beyond the router, if the router itself (or the link) is what's actually
down.  Of course in many cases, the router is entirely cut off, so ping
will also fail.  The other thing ping doesn't catch is administrative
screw-ups that mess up a port without shutting down the router (unless it
happens to be a port that the Nagios monitoring has to go through).


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


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