posts/NUT-server-guide/ #195
Replies: 15 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.
-
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