Changes of Revision 11
[-] | Changed | nagios-plugins-disks.changes |
x 1
2 ------------------------------------------------------------------- 3 +Tue Mar 30 15:32:41 UTC 2021 - Local OBS User <cs@linux-administrator.com> 4 + 5 +- version 0.11 6 + * define thresholds for inode warning/critical 7 + definition for single volumes can be set like this: 8 + create directory /etc/nagios/check_disks/ 9 + create file for block device name and substitute / with _ 10 + e.g. _dev_mapper_vg--data-root 11 + file format is: <warn>%:<crit>%:<iwarn>%:<icrit>% 12 + 13 +------------------------------------------------------------------- 14 Sat Feb 27 10:33:08 UTC 2016 - cs@linux-administrator.com 15 16 - version 0.10 17 |
||
[-] | Changed | nagios-plugins-disks.spec ^ |
8 1
2 Name: nagios-plugins-disks 3 -Version: 0.10 4 +Version: 0.11 5 Release: 1 6 Url: http://www.linux-administrator.com 7 Group: System/Monitoring 8 |
||
[+] | Changed | check_disks ^ |
@@ -15,19 +15,29 @@ # format is 20%:10% warn=`cat /etc/nagios/check_disks/${b} | awk -F: '{print $1}'` crit=`cat /etc/nagios/check_disks/${b} | awk -F: '{print $2}'` + iwarn=`cat /etc/nagios/check_disks/${b} | awk -F: '{print $3}'` + icrit=`cat /etc/nagios/check_disks/${b} | awk -F: '{print $4}'` if [ -z "${warn}" ] || [ -z "${crit}" ] ; then warn="20%" crit="10%" fi + if [ -z "${iwarn}" ] || [ -z "${icrit}" ] ; then + iwarn="20%" + icrit="10%" + fi else warn="20%" crit="10%" + iwarn="20%" + icrit="10%" fi else warn="20%" crit="10%" + iwarn="20%" + icrit="10%" fi - echo "command[check_disk_${CNT}]=/usr/lib/nagios/plugins/check_disk -w ${warn} -c ${crit} -p ${a}" >> ${CHECK_MULTI_CMD_FILE} + echo "command[check_disk_${CNT}]=/usr/lib/nagios/plugins/check_disk -w ${warn} -c ${crit} -W ${iwarn} -K ${icrit} -p ${a}" >> ${CHECK_MULTI_CMD_FILE} CNT=`expr ${CNT} + 1` done if [ -x /usr/lib/nagios/plugins/check_multi ] ; then @@ -35,7 +45,7 @@ /usr/lib/nagios/plugins/check_multi -f ${CHECK_MULTI_CMD_FILE} -s dont_be_paranoid=1 else if [ -x /usr/lib/nagios/plugins/check_disk ] ; then - /usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p / + /usr/lib/nagios/plugins/check_disk -w 20% -c 10% -W 20% -K 10% -p / else echo "Couldn't find any valid filesystem to check and i'm unable to execute check_disk plugin" exit 2 |