software:nut:master
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
software:nut:master [2025/04/14 18:44] – rodolico | software:nut:master [2025/07/03 02:45] (current) – rodolico | ||
---|---|---|---|
Line 9: | Line 9: | ||
* One opnSense firewall/ | * One opnSense firewall/ | ||
* One FreeBSD NAS | * One FreeBSD NAS | ||
+ | |||
+ | **Note:** a Raspberry Pi works very well as a stand alone NUT server. See https:// | ||
===== Set up UPS ===== | ===== Set up UPS ===== | ||
Line 37: | 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/ | nut-scanner --snmp_scan --mask_cidr 192.168.100.0/ | ||
+ | </ | ||
returns "SNMP library not found. SNMP search disabled." | returns "SNMP library not found. SNMP search disabled." | ||
- | 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, |
+ | <code bash> | ||
+ | nut-scanner -U -S -m 192.168.100.0/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | 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> | ||
Line 116: | Line 126: | ||
==== NUT ups commands ==== | ==== NUT ups commands ==== | ||
- | * upsc - lightweight UPS client. Really, set up to be an example of what you can create, but very useful | + | * upsc - lightweight UPS client. Really, set up to be an example of what you can create, but very useful. <code bash> |
* upscmd - send commands to UPS if it will accept. Try <code bash> | * upscmd - send commands to UPS if it will accept. Try <code bash> | ||
* upsd - This is the primary daemon that should always run to provide information about one or more UPS'. Generally auto started by the init system | * upsd - This is the primary daemon that should always run to provide information about one or more UPS'. Generally auto started by the init system |
software/nut/master.1744674283.txt.gz · Last modified: 2025/04/14 18:44 by rodolico