Monitoring of USV via Snmp

Hello, i have a fully working Icinga now, i configured everything via the Director. I monitored some hosts via hostalive so just a ping. But now i want to monitor a USV via Snmp but the options are not enough. I need to see when the USV is going active for example to support a server while there is no power. I want to get notifications as soon as the USV is activating itself. Is there any way to add a Check command with a script or smth?


These are the options i have. So if you have any Idea how to setup the snmp so that it basically checks the USVs activity?
Greetings Julius
Thank you for your help in advance!

let’s start with the basics:

you want to monitor something using icinga2.

How can you do that manually?

One example would be:

  • using snmpwalk or snmpget and querying the oid of your USV.

If you can do that, the next step will be trying out a monitoring plugin.

here is the documentation of the icinga template library snmp plugin:

Then check if the command is installed on your system, not all are part of monitoring plugins.

Then you try out the command manually using your snmp oid, if it works then this is the right check command for you.

Best Regards
Nicolas

I build custom SNMP based checks with monitoring-plugins/check-plugins/snmp at main · Linuxfabrik/monitoring-plugins · GitHub.

@moreamazingnick is right, you better first get the proper snmpget commands figured out to access the information you seek from your USV.
Then use the check plugin from the command line before you configure it in Icinga.

have you tried check_ups health? check_ups_health - ConSol Labs
The plugins by ConsolLabs/Gerhard Laußer are known for being like the swiss army knife of snmp monitoring in the icinga realm, so i would definitely give it a try.

2 Likes