Commit 3b086273 authored by Rene Hadler's avatar Rene Hadler

Add nagios plugins check_smart & check_hddtemp.sh

parent 9899caa0
......@@ -628,6 +628,8 @@ class Installer():
run_cmd('wget -O /usr/lib/nagios/plugins/check_proc_backuppc.sh https://cloud.iteas.at/nextcloud/s/aJqEYa5znggxRsd/download?path=%2Fsoftware%2Fnagios%2Fplugins&files=check_proc_backuppc.sh')
run_cmd('wget -O /usr/lib/nagios/plugins/check_smb https://cloud.iteas.at/nextcloud/s/aJqEYa5znggxRsd/download?path=%2Fsoftware%2Fnagios%2Fplugins&files=check_smb')
run_cmd('wget -O /usr/lib/nagios/plugins/check_apcupsd https://cloud.iteas.at/nextcloud/s/aJqEYa5znggxRsd/download?path=%2Fsoftware%2Fnagios%2Fplugins&files=check_apcupsd')
run_cmd('wget -O /usr/lib/nagios/plugins/check_smart https://cloud.iteas.at/nextcloud/s/aJqEYa5znggxRsd/download?path=%2Fsoftware%2Fnagios%2Fplugins&files=check_smart')
run_cmd('wget -O /usr/lib/nagios/plugins/check_hddtemp.sh https://cloud.iteas.at/nextcloud/s/aJqEYa5znggxRsd/download?path=%2Fsoftware%2Fnagios%2Fplugins&files=check_hddtemp.sh')
run_cmd('chmod +x /usr/lib/nagios/plugins/check_vg_size')
run_cmd('chmod +x /usr/lib/nagios/plugins/check_zpool-1.sh')
run_cmd('chmod +x /usr/lib/nagios/plugins/check_zpool.sh')
......@@ -635,6 +637,8 @@ class Installer():
run_cmd('chmod +x /usr/lib/nagios/plugins/check_proc_backuppc.sh')
run_cmd('chmod +x /usr/lib/nagios/plugins/check_smb')
run_cmd('chmod +x /usr/lib/nagios/plugins/check_apcupsd')
run_cmd('chmod +x /usr/lib/nagios/plugins/check_smart')
run_cmd('chmod +x /usr/lib/nagios/plugins/check_hddtemp.sh')
file_append("/etc/nagios/nrpe.cfg", "command[check_disk1]=/usr/lib/nagios/plugins/check_disk -w 7% -c 3% -p / -p /var/lib/vz")
file_append("/etc/nagios/nrpe.cfg", "command[check_swap]=/usr/lib/nagios/plugins/check_swap -w 30% -c 20%")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment