SNMP monitoring - one IP, multiple sensors

Any tips on how to do this please?

I have one IP of a device in a datacentre and behind it I have 10 sensors, all with their own OIDS. Each sensor does not have its own DNS/IP so if I use a dummy check, with no active and leave the Host address empty, it will use the Hostname, which is DNS registered.

The problem is, if the host ip goes down, all the checks will fail for each sensor. Does this make sense?

Well, yes - if you have 10 things behind one IP address, and that IP address
becomes unavailable, you cannot know anything about any of the 10 things.

Antony.

Actually… what I could do:

main ip - ping check - using dns name

sensors - dummy/no active checks with snmp check for temperature and use display name so I know which sensor it is. And there will be no ping on the sensors

Is it that simple?

Yes that is true Antony, and that’s OK, just wanted to avoid the 10/11 emails sent out/everything going red

This is why Icinga 2 has Dependencies. They are either implicit - a failed Service will not result in Notifications if the Host is down - or explicit by creating a Dependency object.

So either create a Host with a ping check and the SNMP checks below or create a ping Service with a Dependency object from your SNMP checks to the ping. Then you will only receive one email if the IP becomes unreachable.

1 Like