You are here

How Do I... check/compare snmp outputs of more than one host at once?

1 post / 0 new
as29550
as29550's picture
How Do I... check/compare snmp outputs of more than one host at once?

Hi,

Here is my problem:

I currently want to monitor the status of a multihomed device, and although the device itself is monitored for life, the management interface is fixed to one link. Therefore the best thing I can think of is monitoring both of the switchports that the device is connected to, however the switchports are on different devices themselves.

The two switchports that I want to compare are being monitored elsewhere by the SNMP-IfMIB stuff on their respective hosts.
I would like to perform a unified check which tests for the status of both of these interfaces and then report warning if one is down, critical if both are down.

Is there a way that currently exists to do this? If there isn't and I have to write a plugin myself, am I able to easily obtain this interface status and re-use the data so I don't have to query twice?

At least this way I can write something fairly simple returning an error code based on the combined values returned from the ifmib checks.

Thanks,

Danny.