Sunday, June 7, 2020

USV / UPS an Raspi

Raspberrymatic: 
https://github.com/wolwin/WW-mySHT/blob/master/SHT_RM_Nut/RM-NUT_Client.md


Ich habe mich für die Vorgehensweise mit Nut entschlossen:




Nagios check_raid Bug for non Dm users:

since an update, the query for DM causes an error. Workaround for md Raid users is:
-p mdstat:

define command {
 command_name    check_raid
 command_line    /usr/lib/nagios/plugins/check_raid $ARG1$
}


define service{
    use                  generic-service
    host_name            localhost
    service_description  Linux RAID
    check_command        check_raid!-p mdstat!
    normal_check_interval  120
    retry_check_interval 5
}


Script extension:
https://unix.stackexchange.com/questions/164788/run-various-shell-commands-when-nut-reports-a-low-ups-battery

No comments:

Post a Comment