cassiusdrow

Members
  • Posts

    169
  • Joined

  • Last visited

Everything posted by cassiusdrow

  1. My apologies. False alarm. I should know better than to do upgrades after 11 PM. It was the change from nut version 2.8.1 to 2.8.2 along with a configuration error on my part. I had a bad listener entry in upsd.conf. This didn't cause any issues for 2.8.1, but 2.8.2 now forces upsd to exit with an error if any listeners fail. Removing the bad listener entry allowed upsd to start. They added the ALLOW_NOT_ALL_LISTENERS setting in upsd.conf to control this behavior. See this issue: https://github.com/networkupstools/nut/issues/723 Thank you for the quick reply and for all the work you have been doing on this plugin.
  2. The latest plugin update is not working on 6.12.8. I'm seeing this in the syslog: Apr 3 23:50:27 hp root: plugin: skipping: nut-2.8.1-x86_64-5master.ssl31.txz - Unraid version too low, requires at least version 6.13 Apr 3 23:50:27 hp root: plugin: skipping: nut-2.8.2-x86_64-1stable.ssl31.txz - Unraid version too low, requires at least version 6.13 Apr 3 23:50:27 hp root: plugin: skipping: nut-2.8.1-x86_64-3stable.ssl31.txz - Unraid version too low, requires at least version 6.13 Apr 3 23:50:27 hp root: plugin: skipping: nut-2.8.0-x86_64-3stable.ssl31.txz - Unraid version too low, requires at least version 6.13 Apr 3 23:50:27 hp root: plugin: skipping: nut-2.7.4.20200318-x86_64-1.txz - Unraid version too low, requires at least version 6.13 Apr 3 23:50:27 hp root: plugin: skipping: - Unraid version too low, requires at least version 6.13
  3. I sent a pull request to @bonienl for this issue. Hopefully they can update the plugin soon.
  4. I'm having the same issue. Writes showing read speed, read is zero.
  5. I'm sorry, I can't help. I stopped running influx/telegraf/grafana a few months ago. The influx database was getting very large and I wasn't really looking at the data so I removed them.
  6. I use the NUT plugin in manual config mode. I do not use the SNMP plugin. The only part of the NUT configuration that is specific to SNMP is the UPS driver in ups.conf: [ups] driver = snmp-ups desc = "APC Smart-UPS SMT1000RM2U" port = 192.168.1.13 community = private snmp_version = v1 snmp_timeout = 5 pollfreq = 15 Is there something else you were looking for?
  7. Hi @SimonF, I've been using 2.8 with SNMP and USB drivers since you accepted the pull request without any issues.
  8. Try changing your "Extra Parameters" to: --user=root --entrypoint=/etc/telegraf/entrypoint.sh
  9. Hi @SimonF, I created a pull request in github with some changes.
  10. driver.parameter.runtimecal = 180,100,618,50 "Full load backup time [min]" = 3.0 * 60 = 180 seconds "Half load backup time [min]" = 10.3 * 60 = 618 seconds
  11. I have two unraid servers, each has its own UPS, and each runs the NUT plugin in netserver mode. Each unraid server has other computers (not running unraid OS) on the same UPSs, running NUT in netclient (slave) mode and communicating with the unraid servers. Thank you. I'll check it out as soon as I can. It may be a few days.
  12. Thank you. I appreciate it. I've started using your plugin on both of my servers. I am using my go script commands to modify it to work with NUT 2.8 and everything runs ok for plugin version 2023.02.14.
  13. I didn't look at using APCUPSD at all. I have a lot of time invested in the NUT configuration and I run it in netserver mode for other computers. Originally, I was using a Cyberpower CST135XLU and switched to the APC SMT1000RM2U after moving the Unraid server to a rack in my basement. The Cyberpower CST135XLU is now used with a different Unraid server and I prefer the simplicity of using similar UPS control configurations for both servers. I also monitor both UPSs with telegraf/grafana/influxdb. Replacing the NUT and net-snmp packages while still using dmacias's plugin was the easiest solution. I think there was a feature in NUT 2.8 that I wanted but I don't remember what it was. However, the NUT 2.8 package I found is compiled with different locations for the configuration files and process ID file, so I modified the plugin scripts from the go script since it looked unlikely that dmacias would update the plugin. I looked at the changes in your plugin vs dmacias's plugin, and I think my solution will continue to work with your plugin, although I haven't tested it. I'll switch to your plugin on one of my servers and test it.
  14. @SimonF I really appreciate that you are taking over maintenance of the NUT plugin. Would you be willing to update your plugin to use NUT 2.8? I am using dmacias's plugin with an APC SMT1000RM2U with a AP9630 network management card. It uses the snmp-ups driver but the net-snmp package included dmacias's plugin does not work on Unraid 6.11.5. I use some commands in my go script that alter dmacias's plugin scripts to use NUT 2.8 and net-snmp 5.9.3 as explained in this post:
  15. In this page, the author uses this command to trigger a UPS shutdown in the section "Testing with actual results": upsmon -c fsd It appears to activate the actual shutdown process that nut will use during a real low power event.
  16. I've found a way to use the latest telegraf docker image while allowing installation of smartmontools and any other packages needed. This is using the "telegraf:alpine" image. This technique can probably be used with the "telegraf:latest" image but the package commands will be different. 1. Create your telegraf configuration file as /mnt/user/appdata/telegraf/telegraf.conf 2. Create the /mnt/user/appdata/telegraf/entrypoint.sh file: #!/bin/sh # Add packages apk update apk upgrade apk add smartmontools nvme-cli lm-sensors lm-sensors-detect perl curl ipmitool # Update smart database /usr/sbin/update-smart-drivedb --no-verify # Start telegraf telegraf --watch-config poll --config '/etc/telegraf/telegraf.conf' 3. Make the file executable: chmod 777 /mnt/user/appdata/telegraf/entrypoint.sh 4. Install atribe's official telegraf docker 5. Set Repository: telegraf:alpine 6. Set Extra Parameters: --user=root --entrypoint=/etc/telegraf/entrypoint.sh 7. Edit "Host Path 7" 7.a. Change "Container Path" to /etc/telegraf 7.b. change "Host Path" to /mnt/user/appdata/telegraf 7.c. change "Default Value" to /mnt/user/appdata/telegraf 7.d. Save the changes. 8. Click Apply to start the container.
  17. The "netclient" machines must use the IP address of the "netserver" machine, not 127.0.0.1.
  18. I have 2.8.0 running on unraid 6.10.3. I am using an APC SMT1000RM2U with a AP9630 network management card. It uses the snmp-ups driver and it was failing with this error: /usr/libexec/nut/snmp-ups: error while loading shared libraries: libnetsnmp.so.35: cannot open shared object file: No such file or directory Driver failed to start (exit status=127) This post suggested installing net-snmp v5.8, but the file no longer exists. Instead I decided to try to get nut 2.8.0 to run. I downloaded these package files to the directory /pkg on the flash drive: https://ftp.sotirov-bg.net/pub/contrib/slackware/packages/slackware64-15.0/nut-2.8.0-x86_64-1gds.txz https://slackware.uk/slackware/slackware64-15.0/patches/packages/net-snmp-5.9.3-x86_64-1_slack15.0.txz Then added commands to the go script to install the packages and modify the NUT plugin to work with them: # Stop nut plugin /usr/local/emhttp/plugins/nut/scripts/stop # Install upgraded nut and net-snmp packages installpkg /boot/pkg/net-snmp-5.9.3-x86_64-1_slack15.0.txz installpkg /boot/pkg/nut-2.8.0-x86_64-1gds.txz # Link nut config to NUT plugin config rm -rf /etc/ups ln -s /etc/nut /etc/ups # Modify the NUT plugin to look for upsmon.pid in new location sed -i 's@/var/run/nut/upsmon.pid@/var/run/upsmon.pid@' /usr/local/emhttp/plugins/nut/NUTsettings.page sed -i 's@/var/run/nut/upsmon.pid@/var/run/upsmon.pid@' /usr/local/emhttp/plugins/nut/include/nut_config.php sed -i 's@/var/run/nut/upsmon.pid@/var/run/upsmon.pid@' /usr/local/emhttp/plugins/nut/include/nut_footer.php sed -i 's@/var/run/nut/upsmon.pid@/var/run/upsmon.pid@' /usr/local/emhttp/plugins/nut/include/nut_status.php # Start nut plugin /usr/local/emhttp/plugins/nut/scripts/start Nut 2.8.0 appears to be working with these changes. EDIT 2023-03-26: This post was originally written for dmacias's version 2023.02.14. It also works for SimonF's version 2023.02.14. SimonF suggested using the SNMP plugin to install net-snmp but I have not tried it.
  19. That may have been the problem. I changed the version to decimals instead of underscores. Looks like it's working now. Thanks!
  20. It's added Hi, I thought this package was working but after a reboot it was not reinstalling the package. I checked /boot/config/plugins/NerdPack/packages/6.5 and the package file is not there. NerdPack.cfg has a line ksh93-2012_08_01="yes" and the plugin page switch is "on" but the status is uninstalled and not downloaded. If I try to re-download and install using the plugin page, it says: Downloading ksh93-2012_08_01-x86_64-2.txz package... ksh93-2012_08_01-x86_64-2.txz package download sucessful! Installing ksh93-2012.08.01 package... But there is no package file and it is not installed. I can install it manually for now, but I'd appreciate it if you could take a look. Thanks EDIT: I just noticed that the download filename in the output above has underscores in the version date "2012_08_01" and the install package has dots "2012.08.01". Could that have something to do with it?
  21. Could you add Korn Shell? https://packages.slackware.com/?r=slackware64-current&p=ksh93-2012_08_01-x86_64-2.txz Thanks!
  22. I keep a spare drive the same size as the parity drive that has been fully tested and precleared. It has saved me time recovering from a drive fail on three occasions, including a time where another drive failed within a week of the first drive failure. Considering that it takes several days to do the testing, I might have lost data from the second drive failure if I had ordered the drive when the first failure occurred. So far I've always used the spare within a year to replace an older or failed drive.
  23. 1266 pending failed sectors. Based on that, I'd say take it out of the array. You can try running several preclears on it to see if the pending failed sectors are corrected, but I wouldn't trust the drive anymore.
  24. It looks like the disk management page only knows how to check a ReiserFS partition. It knows nothing about XFS.
  25. I'd err on the side of caution. I wouldn't use it for anything I cared about. I've had three failures of this model drive in the last two months with drives aged about two years.