User Tools

Site Tools


software:nut:master

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
software:nut:master [2025/04/14 22:32] rodolicosoftware:nut:master [2025/07/03 02:45] (current) rodolico
Line 39: Line 39:
  
 This is the nasty part. We need to have ups.conf set up with the correct stanza to read the snmp UPS. Normally we would just point nut-scanner at it, but nut-scanner has some issues, at least on 2.7.4, under Debian where it can not find the snmp libraries. So, autodetect does not work. This is the nasty part. We need to have ups.conf set up with the correct stanza to read the snmp UPS. Normally we would just point nut-scanner at it, but nut-scanner has some issues, at least on 2.7.4, under Debian where it can not find the snmp libraries. So, autodetect does not work.
 +<code bash>
 nut-scanner --snmp_scan --mask_cidr 192.168.100.0/24 --disp_nut_conf nut-scanner --snmp_scan --mask_cidr 192.168.100.0/24 --disp_nut_conf
 +</code>
 returns "SNMP library not found. SNMP search disabled." even though the snmp libraries are there. It is supposed to be fixed with later versions. If it is working on your system, it will output a stanza that can be directly pasted into ups.conf. Otherwise, we have to do it the hard way. returns "SNMP library not found. SNMP search disabled." even though the snmp libraries are there. It is supposed to be fixed with later versions. If it is working on your system, it will output a stanza that can be directly pasted into ups.conf. Otherwise, we have to do it the hard way.
  
-So, we'll do it the way that is more susceptible to error. Modify the following to match your setup, then put it in ups.conf+If, you are running a distribution that does have a working nut-scanner, you can use the following command (modified for your system). This was tested on FreeBSD running on a Raspberry Pi. It will look for SNMP and USB attached UPS' 
 +<code bash> 
 +nut-scanner -U -S -m 192.168.100.0/24 -c public 
 +</code> 
 + 
 + 
 +On systems without a working nut-scanner, we'll do it the way that is more susceptible to error. Modify the following to match your setup, then put it in ups.conf
  
 <file autoconf ups.conf> <file autoconf ups.conf>
software/nut/master.txt · Last modified: 2025/07/03 02:45 by rodolico