« Monitoring UPS Eaton avec Nut » : différence entre les versions
Aller à la navigation
Aller à la recherche
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 66 : | Ligne 66 : | ||
Pour voir la durée restante sur batterie : | Pour voir la durée restante sur batterie : | ||
<pre>upsc eaton@localhost battery.runtime</pre> | <pre>upsc eaton@localhost battery.runtime</pre> | ||
==Automatisation== | |||
Créez un utilisateur dans <code>/etc/nut/upsd.users</code> : | |||
<pre> | |||
[upsmon] | |||
password = <Password> | |||
actions = SET | |||
instcmds = ALL | |||
MONITOR eaton@localhost 1 upsmon <Password> slave | |||
</pre> | |||
Relancez les services : | |||
<pre> | |||
systemctl restart nut-server.service | |||
systemctl restart nut-monitor.service | |||
</pre> | |||
Vous pouvez a modifier la charge batterie minimale avant shutdown (20 par défaut) : | |||
<pre>upsrw -s battery.charge.low=15 -u upsmon -p <Password> eaton</pre> |