NUT file /usr/local/etc/nut/cmdvartab not present on FreeNAS even though UPS service is up and running
Closed: Not To Be Fixed
Reason for Closing:
Reason for Blocked:
Support Suite Ticket:
- FN build
[root@miniref2] /etc/local/nut# cat /etc/version
- while testing NUT/UPS functionality, I found that the file /usr/local/etc/nut/cmdvartab is not on the appliance even though it seems like it should be.
[root@miniref2] /etc/local/nut# ls -l /usr/local/etc/nut/cmdvartab ls: /usr/local/etc/nut/cmdvartab: No such file or directory [root@miniref2] /etc/local/nut# pkg which /usr/local/etc/nut/cmdvartab /usr/local/etc/nut/cmdvartab was installed by package nut-2.7.3_4 [root@miniref2] /etc/local/nut# pkg info nut-2.7.3_4 nut-2.7.3_4 Name : nut Version : 2.7.3_4 Installed on : Wed Aug 3 12:51:18 2016 PDT Origin : sysutils/nut Architecture : freebsd:10:x86:64 Prefix : /usr/local Categories : sysutils Licenses : Maintainer : cy@FreeBSD.org WWW : http://www.networkupstools.org/ Comment : Network UPS Tools Options : AVAHI : off BASH : off CGI : off DOCS : off FREEIPMI : off IPMIPSU : off IPMI_OFF : on NEON : off OPENSSL : off PDU : off SERIAL : on SNMP : on USB : on Shared Libs required: libpkg.so.3 libnetsnmp.so.30 Shared Libs provided: libnutclient.so.0 libupsclient.so.4 Annotations : repo_type : binary repository : local Flat size : 5.10MiB Description : This is a developing project to monitor a large assortment of UPS hardware. Network communications are used so that multiple systems can monitor a single physical UPS and shut down together if necessary without any special "sharing hardware" on the UPS itself. CGI scripts are provided to monitor UPS status via a WEB browser. WWW: http://www.networkupstools.org/
- saw that the file was missing when I went looking for logs and found this:
Sep 21 13:27:59 miniref2 notifier: /usr/local/etc/nut/cmdvartab not found - disabling descriptions
- what led to that was using the client side command "upscmd" to fire off "instant commands" to the upsmon running on the FreeNAS and when running this command it does indeed say "description unavailable" found
root@jsteve-vm-fbsd:~ # upscmd -l firstname.lastname@example.org:3493 Instant commands supported on UPS [fn-ups]: beeper.disable - Description unavailable beeper.enable - Description unavailable beeper.mute - Description unavailable beeper.off - Description unavailable beeper.on - Description unavailable load.off - Description unavailable load.off.delay - Description unavailable load.on - Description unavailable load.on.delay - Description unavailable shutdown.reboot - Description unavailable shutdown.return - Description unavailable shutdown.stayoff - Description unavailable shutdown.stop - Description unavailable test.battery.start.deep - Description unavailable test.battery.start.quick - Description unavailable test.battery.stop - Description unavailable test.panel.start - Description unavailable test.panel.stop - Description unavailable
- It would be helpful to have the descriptions available to the upsmon client and it seems like they would be fetched from the file above. Why it's missing from the NUT pkg or why it's not installed on the target system, I have no idea, thus this ticket.