Page 1 of 1

snmp

Posted: Wed Oct 07, 2015 7:43 am
by WVUhealth
Hello,

We use a ton of snmp v3 interface checks to graph bandwidth etc...
Is there a way to check snmp is working first and then do the checks? I feel like there is a mechanism in place in nagiosxi, but i am not sure.

Re: snmp

Posted: Wed Oct 07, 2015 9:14 am
by hsmith
What are you referring to as 'working'?

Are you saying that you want to check to make sure the remote device has SNMP working before Nagios uses resources to do the check?

Re: snmp

Posted: Wed Oct 07, 2015 11:17 am
by WVUhealth
good point...my bad.. yes I want to verify snmp is working first on remote host..before xi does check

Re: snmp

Posted: Wed Oct 07, 2015 11:26 am
by hsmith
As far as I know this is not how it behaves by default. I could actually see this resulting in more overhead as you'd have to run an additional check for each device before running the next check. Maybe with some clarification on the scope of this, we could provide an alternate solution.

Re: snmp

Posted: Wed Oct 07, 2015 12:28 pm
by WVUhealth
would there be anyway to have like a parent service type of relationship? like parents to hosts... we basically do not want to get notified 50 times that snmp is not responding on the same switch

Re: snmp

Posted: Wed Oct 07, 2015 3:23 pm
by jolson
What you could do is set a basic snmp check up on the host object of your switch - if the host object fails and goes into a WARNING or CRITICAL state, the services underneath of the host will not alert. Does that make sense?

Re: snmp

Posted: Thu Oct 08, 2015 6:35 am
by WVUhealth
yeah it makes sense, but i dont see how implementing a basic snmp check will make the other checks not alert... can you explain a little more?

Re: snmp

Posted: Thu Oct 08, 2015 2:16 pm
by ssax
What you essential do is create a service with a shorter check period that just checks to see if SNMP is working (returns a result or whatever method you choose) and then use a service dependency so that it will not alert based on the dependency.

https://www.youtube.com/watch?v=qwQW8QKxWUc

You can read more about the host/service dependencies here:

https://assets.nagios.com/downloads/nag ... ncies.html
https://assets.nagios.com/downloads/nag ... dependency