UPS monitoring with NUT

Ok, monkey see monkey do so I’ve followed instructions but getting nothing coming up with UPS NUT

upsc [email protected]
battery.charge: 100
battery.voltage: 27.40
battery.voltage.high: 26.00
battery.voltage.low: 20.80
battery.voltage.nominal: 24.0
device.type: ups blazer_usb
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.version: 2.7.2
driver.version.internal: 0.11
input.current.nominal: 6.0
input.frequency: 50.0
input.frequency.nominal: 50
input.voltage: 233.6
input.voltage.fault: 233.6
input.voltage.nominal: 240
output.voltage: 233.6
ups.beeper.status: enabled
ups.delay.shutdown: 30
ups.delay.start: 180
ups.load: 9
ups.productid: 5161
ups.status: OL
ups.type: offline / line interactive
ups.vendorid: 0665

snmpwalk -v 2c -c myreadonlypassword MYHOST_IP NET-SNMP-EXTEND-MIB::nsExtendObjects
NET-SNMP-EXTEND-MIB::nsExtendNumEntries.0 = INTEGER: 1
NET-SNMP-EXTEND-MIB::nsExtendCommand.“ups-nut” = STRING: /etc/snmp/
NET-SNMP-EXTEND-MIB::nsExtendArgs.“ups-nut” = STRING:
NET-SNMP-EXTEND-MIB::nsExtendInput.“ups-nut” = STRING:
NET-SNMP-EXTEND-MIB::nsExtendCacheTime.“ups-nut” = INTEGER: 5
NET-SNMP-EXTEND-MIB::nsExtendExecType.“ups-nut” = INTEGER: exec(1)
NET-SNMP-EXTEND-MIB::nsExtendRunType.“ups-nut” = INTEGER: run-on-read(1)
NET-SNMP-EXTEND-MIB::nsExtendStorage.“ups-nut” = INTEGER: permanent(4)
NET-SNMP-EXTEND-MIB::nsExtendStatus.“ups-nut” = INTEGER: active(1)
NET-SNMP-EXTEND-MIB::nsExtendOutput1Line.“ups-nut” = STRING: 100
NET-SNMP-EXTEND-MIB::nsExtendOutputFull.“ups-nut” = STRING: 100
NET-SNMP-EXTEND-MIB::nsExtendOutNumLines.“ups-nut” = INTEGER: 8
NET-SNMP-EXTEND-MIB::nsExtendResult.“ups-nut” = INTEGER: 0
NET-SNMP-EXTEND-MIB::nsExtendOutLine.“ups-nut”.1 = STRING: 100
NET-SNMP-EXTEND-MIB::nsExtendOutLine.“ups-nut”.2 = STRING: Unknown
NET-SNMP-EXTEND-MIB::nsExtendOutLine.“ups-nut”.3 = STRING: Unknown
NET-SNMP-EXTEND-MIB::nsExtendOutLine.“ups-nut”.4 = STRING: 27.40
NET-SNMP-EXTEND-MIB::nsExtendOutLine.“ups-nut”.5 = STRING: 24
NET-SNMP-EXTEND-MIB::nsExtendOutLine.“ups-nut”.6 = STRING: 240
NET-SNMP-EXTEND-MIB::nsExtendOutLine.“ups-nut”.7 = STRING: 233.6
NET-SNMP-EXTEND-MIB::nsExtendOutLine.“ups-nut”.8 = STRING: 11

Just a question …I never understand UPS NUT… why not just add the UPS into librenms we already pull of that data and more.
lIbrenms pulls all the data UPS Nut does. so why use NUT?
just curious

Update. In librenms I removed the UPs nut app. Then reselected it.

1 Like

Most consumer grade UPS’ only have USB or serial interfaces with no SNMP support. I’ve got little micro-pops that justify a cheap $100 UPS not a $500 one with network support.

1 Like

makes sense thanks for the reply :slight_smile:

I’d appreciate any help on how to set up an alert for application UPS-nut for when say, voltage input dropping below 220V?

check the database look the table for applications… you can alert in the that. run this query.

select * from applications;

I don’t use UPS NUT so im not sure exactly how the table looks like but your alert rule may look something like this,

%applications.app_type = "ups-nut" && %applications.app_status < "220" &&

Hmm. Thanks for the help Kevin. Nothing in app_status seems to be stored in the DB.

mysql -u librenms -p
use librenms
select * from applications;

Im not sure where that data is stored in the DB then. :frowning:

Does anyone has a guideline to connect NUT and upsd to an APC SNMP Network Mgmt Card 2 (AP9630) via SNMP instead of connecting locally via USB?

Thanks in advance!