Monitor Dynamic OID's via SNMP

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
exerr
Posts: 2
Joined: Fri May 03, 2019 3:11 am

Monitor Dynamic OID's via SNMP

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor Dynamic OID's via SNMP

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
exerr
Posts: 2
Joined: Fri May 03, 2019 3:11 am

Re: Monitor Dynamic OID's via SNMP

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitor Dynamic OID's via SNMP

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked