« 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 |
||
(3 versions intermédiaires par le même utilisateur non affichées) | |||
Ligne 2 : | Ligne 2 : | ||
[[category:monitoring]] | [[category:monitoring]] | ||
=Eaton 3S= | |||
<pre> | <pre> | ||
#$ lsusb | #$ lsusb | ||
Ligne 25 : | Ligne 26 : | ||
<pre>MODE=standalone</pre> | <pre>MODE=standalone</pre> | ||
Lancez le driver : | |||
<pre> | <pre> | ||
#$ upsdrvctl start | #$ upsdrvctl start | ||
Ligne 62 : | Ligne 64 : | ||
upsc eaton@localhost | upsc eaton@localhost | ||
</pre> | </pre> | ||
Pour voir la durée restante sur batterie : | |||
<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@localhost</pre> |