snmp

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
WVUhealth
Posts: 78
Joined: Tue Apr 24, 2012 1:50 pm

snmp

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: snmp

Post 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?
Former Nagios Employee.
me.
WVUhealth
Posts: 78
Joined: Tue Apr 24, 2012 1:50 pm

Re: snmp

Post by WVUhealth »

good point...my bad.. yes I want to verify snmp is working first on remote host..before xi does check
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: snmp

Post 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.
Former Nagios Employee.
me.
WVUhealth
Posts: 78
Joined: Tue Apr 24, 2012 1:50 pm

Re: snmp

Post 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
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: snmp

Post 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?
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
WVUhealth
Posts: 78
Joined: Tue Apr 24, 2012 1:50 pm

Re: snmp

Post 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?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: snmp

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