posts/NUT-server-guide/ #195
Replies: 20 comments 8 replies
-
Awesome tutorial - thank you for sharing. Helped me a lot as NUT is not the most intuitive system to config. |
Beta Was this translation helpful? Give feedback.
-
great guide, thank you! |
Beta Was this translation helpful? Give feedback.
-
In upssched-cmd, i see cases for onbat and earlyshutdown, that map to the events in upssched.conf, but i dont see how shutdowncritical and upsgone every get passed to the script. shouldnt they be powerdown and commbad to match upssched.conf??? totally noob here, what am i missing! |
Beta Was this translation helpful? Give feedback.
-
Great tutorial. I do, however, want to disable broadcast messages but haven't been able to figure out how to do it (kind of a noob to Linux). Can you help? thanks. oh...one more question. Occasionally the service stops working and I have to issue "sudo service nut-server restart" to get it going again. Don't know why this is happening and I know that the server did not restart. Any insight on this? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the guide! Looks like a typo on the Linux client install process. |
Beta Was this translation helpful? Give feedback.
-
great guide!! Thanks a lot for the time you invest. Another typo at the end of linux client: |
Beta Was this translation helpful? Give feedback.
-
hi, on the /etc/nut/upssched.conf i had use this config on: ========================================== RUN_AS_USER root MONITOR your-ups-name@ip-of-your-NUT-server username yourpassword slave ========================================== CMDSCRIPT /etc/nut/upssched-cmd PIPEFN /var/run/nut/upssched.pipe Timer to shutdown machine after 300 secondsAT ONBATT * START-TIMER onbattwarn 300 ======================================== /etc/nut/upssched-cmd #!/bin/sh ============================= base on my testing it will shutdown the server or pc base on how long you want but it will cancel the shutdown timer if the AC power return |
Beta Was this translation helpful? Give feedback.
-
Can I configure it with Nginx web server? |
Beta Was this translation helpful? Give feedback.
-
How would you do this to shutdown on battery % or give longer run time. My UPS can run my server for around an hour so I don't need it shutting down in seconds. |
Beta Was this translation helpful? Give feedback.
-
So according to https://networkupstools.org/ the upsmon types are
not
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Thanks for a treat tutorial - just about perfect for my level of expertise. I started testing on my server and the battery died before it could shut down. New battery ordered. (It lasted ~2 minutes so it carries me through the situations where the lights flicker.) I did have an issue with NUT unable to communicate with the UPS (via USB) on Debian Buster. Likely some sort of permissions problem. I had been meaning to upgrade to Bookworm so I did that (rather than track down the permissions) and that solved the issue. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm trying to install a NUT-client on my MacMini. Trying to set my macmini up to listen to the nut-server. So far, I have installed the NUT-software using MacPorts. However, that is where I'm stuck:( Can you help me in the right direction? Thanks, kind regards Jordy |
Beta Was this translation helpful? Give feedback.
-
I've found this alternative upssched-cmd script that I thought you might find useful. https://forum.proxmox.com/threads/nut-client-configuration-help-needed-for-shutdown-proxmox-host.126278/ EMAIL= case $1 in Also, I've found that on my NUT server, I can't seem to find any loggings. But found you can tell Nut Server to write logs to /var/log/nut.log via 99-nut.conf by adding this to /etc/rsyslog.d/99-nut.conf This may also bring even more functionality to this guide how to use the 99-nut.conf found here |
Beta Was this translation helpful? Give feedback.
-
Eg: 5sec refresh: |
Beta Was this translation helpful? Give feedback.
-
Hi i use synology as NUT server, and i tested nut client over ETH on Debian 12 with config from post. The NUT is kind of overcomplicated config so i dont trust my config yet. My planned behaviour:
What from sudo nano /etc/nut/upsmon.conf and sudo nano /etc/nut/upssched.conf is bare minimum to run cleanlly. RUN_AS_USER root MONITOR ups@ 1 slave MINSUPPLIES 1 Ditch all commands i don't likePOWERDOWNFLAG /etc/killpower # I deem this is the dangerous call to UPS !!!NOTIFYMSG ONLINE "UPS %s on line power"NOTIFYFLAG ONLINE SYSLOG+WALL+EXECRBWARNTIME 43200 # What is this? CMDSCRIPT /etc/nut/upssched-cmd AT ONBATT * START-TIMER onbatt 30 !/bin/sh MQTT_HOST="192.168.1.222" publish_mqtt() { case $1 in |
Beta Was this translation helpful? Give feedback.
-
[DEPRECATION NOTICE] Docker Image Format v1 and Docker Image manifest version 2, schema 1 support is disabled by default and will be removed in an upcoming release. Suggest the author of docker.io/teknologist/webnut:latest to upgrade the image to the OCI Format or Docker Image manifest v2, schema 2. More information at https://docs.docker.com/go/deprecated-image-specs/ Any way around this? |
Beta Was this translation helpful? Give feedback.
-
I've been hitting a weird stumbling block that I have not been able to resolve. I have the nut-server installed and running fine on a RasPi4, no problems there. It can see my TrippLite UPS and I can load the stats via browser and upsc on my main Linux workstation just fine. $ sudo systemctl status nut-client Jul 20 07:45:07 Fenrir systemd[1]: Started nut-monitor.service - Network UPS Tools - power device monitor and shutdown controller. -------upsmon.conf--------- RUN_AS_USER root MONITOR [email protected] 1 admin complexpassword slave MINSUPPLIES 1 NOTIFYMSG ONLINE "UPS %s on line power" NOTIFYFLAG ONLINE SYSLOG+WALL+EXEC RBWARNTIME 43200 NOCOMMWARNTIME 600 FINALDELAY 5 |
Beta Was this translation helpful? Give feedback.
-
Hi there. Got directed to your YT video (and then found this updated guide). I've been working for the past week or so, trying to get my Tripp Lite AVR900U seen by my Proxmox server. Between other Proxmox specific guides and yours (with a more Tripplite angle) I believe I have it set up properly. Yet still it fails to properly connect... DMESG seems to imply it's not doing the rapid fire disconnect/reconnect these devices are known for. But I'm not sure how well it's being seen, either. From within the last 10 minutes, after I've tried tweaking things based on your guide:
I know I had this working with a previous version of Proxmox (VE 7) but I can't seem to recrate (or start fresh) with NUT on VE 8. |
Beta Was this translation helpful? Give feedback.
-
I like NUT but it is overcomplicated to set up and to misterious for me. So i have written bash script that runs as service pools the nut data and sends it to MQTT for devices to read and react on it. It is more custom so i can underatand it. Idk if MQTT is best, but i feel like it cant be reliable the original way as its too complicated. |
Beta Was this translation helpful? Give feedback.
-
posts/NUT-server-guide/
Documentation for Techno Tim YouTube videos for all your copy pasta needs!
https://technotim.live/posts/NUT-server-guide/
Beta Was this translation helpful? Give feedback.
All reactions