sown / tasks

Tasks for sown projects
0 stars 0 forks source link

Add monitoring for dual PSU servers #39

Closed TimStallard closed 6 months ago

TimStallard commented 4 years ago

Would be nice if icinga could spot if a PSU is disconnected or fails for dual PSU servers

Currently just VMS I think?

TimStallard commented 4 years ago

now deployed on both VMS hosts

this uses the following sudo config, which is manually deployed on both for now

root@vms-b53-1:~# cat /etc/sudoers.d/check_psu 
Defaults:nagios !requiretty
nagios ALL=(root) NOPASSWD: /usr/bin/ipmitool -c sdr type Power\ Supply
nagios ALL=(root) NOPASSWD: /usr/bin/ipmitool -c sdr type Current
nagios ALL=(root) NOPASSWD: /usr/bin/ipmitool -c sdr type Voltage
TimStallard commented 1 year ago

I didn't bother ansible-ising the sudo config back when I first did this as we only had one dual PSU machine, but I think it's worthwhile doing now we have more

Perhaps install on all physical machines excluding backup servers? We should install ipmitool as well as it requires that.