SNMP: Difference between revisions

From CSCWiki
Jump to navigation Jump to search
(Start documenting SNMP for UPS)
Line 1: Line 1:
= UPS =
= UPS =


We can monitor two of our UPSs via SNMP [[Machine_List|#UPS]]:
We can monitor two of our UPSs via SNMP (see [[Machine_List#UPS|Machine List]]):


== Debian Setup ==
== Debian Setup ==
Line 8: Line 8:


Download https://nagios.cscf.uwaterloo.ca/kiosk/powernet416.mib and place it in /usr/share/snmp/mibs
Download https://nagios.cscf.uwaterloo.ca/kiosk/powernet416.mib and place it in /usr/share/snmp/mibs

Run `download-mibs`


== Getting Status ==
== Getting Status ==

Revision as of 13:20, 16 December 2015

UPS

We can monitor two of our UPSs via SNMP (see Machine List):

Debian Setup

Install snmp and snmp-mibs-downloader (note: snmp-mibs-downloader is not available in stretch repository, so just download the deb from sid).

Download https://nagios.cscf.uwaterloo.ca/kiosk/powernet416.mib and place it in /usr/share/snmp/mibs

Run `download-mibs`

Getting Status

   snmpget -v 1 -c MSO mc-3015-h7-ups-1.cs.uwaterloo.ca PowerNet-MIB::upsBasicOutputStatus.0

This will return something like:

   PowerNet-MIB::upsBasicOutputStatus.0 = INTEGER: onLine(2)