Page 1 of 1

Monitor Dynamic OID's via SNMP

Posted: Mon Oct 07, 2019 6:34 am
by exerr
Hello all,

We have nagios XI running in our team and we have few crestron devices which run automation in our building. We would like to monitor those devices via SNMP and there are few OID's which have the connection states.

We would like to monitor the crestron devices connection to a master device we check connection state being established on the OID. The problem is that if we set to monitor those OID's they usually change each time there is a disconnection/re-connection as the dynamic ports are changing.

For example the entry might be like below before disconnection

Code: Select all

TCP-MIB::tcpConnState.172.17.1.202.8000.172.16.7.100.52886 = INTEGER: stablished(5)
After re-connection it changes ports for example to:

Code: Select all

TCP-MIB::tcpConnState.172.17.1.202.8000.172.16.7.100.42286 = INTEGER: stablished(5)
Is there a way we can monitor those dynamic OID's using something already built into Nagios? should we create a custom script for the logic?

Thanks in advance

Re: Monitor Dynamic OID's via SNMP

Posted: Mon Oct 07, 2019 3:31 pm
by scottwilkerson
I don't know of any plugins that are able to monitor a SNMP OID that dynamically changes..
exerr wrote: should we create a custom script for the logic?
That really is the only way, I'm not sure how you are going to know in advance what the OID will be, that is going to be the hard part.

Re: Monitor Dynamic OID's via SNMP

Posted: Tue Oct 08, 2019 1:59 am
by exerr
scottwilkerson wrote:I don't know of any plugins that are able to monitor a SNMP OID that dynamically changes..
exerr wrote: should we create a custom script for the logic?
That really is the only way, I'm not sure how you are going to know in advance what the OID will be, that is going to be the hard part.
Thanks scottwilkerson for your reply, I checked other methods which gave me few ideas like https://exchange.nagios.org/directory/P ... ck/details. This is checking if all the connection are having code 5 (established) and if X amount of connections are made to a host. Tweaking this might be something to consider I guess.

Re: Monitor Dynamic OID's via SNMP

Posted: Tue Oct 08, 2019 7:04 am
by scottwilkerson
exerr wrote:Thanks scottwilkerson for your reply, I checked other methods which gave me few ideas like https://exchange.nagios.org/directory/P ... ck/details. This is checking if all the connection are having code 5 (established) and if X amount of connections are made to a host. Tweaking this might be something to consider I guess.
Sounds like a good alternative