Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
nagios-plugins-plesk
> check_disks_plesk
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File check_disks_plesk of Package nagios-plugins-plesk (Revision 2)
Currently displaying revision
2
,
show latest
#!/bin/bash CHECK_MULTI_CMD_FILE="/tmp/check_disks.cmd" CNT=0 rm -rf ${CHECK_MULTI_CMD_FILE} for a in `grep -E '(xfs|ext2|ext3|ext4|btrfs|reiserfs|vfat)' /proc/mounts | awk '{print $1}'` ; do echo "command[check_disk_${CNT}]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p ${a}" >> ${CHECK_MULTI_CMD_FILE} CNT=`expr ${CNT} + 1` done if [ -x /usr/lib/nagios/plugins/check_multi ] ; then /usr/lib/nagios/plugins/check_multi -f ${CHECK_MULTI_CMD_FILE} -s dont_be_paranoid=1 else echo "Plugin: /usr/lib/nagios/plugins/check_multi not executable" exit 2 fi