Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
amitmund
byamitmund, August 2, 2012
1 of 1 people found this review helpful
The script is really good.
Just few updated needed:
as the new version is using vmstat and not iostat, so it would be nice to check vmstat:
here is my modification:
#IOSTAT=/usr/bin/iostat
VMSTAT=/usr/bin/vmstat
and the check:
# if [ ! -x $IOSTAT ]; then
if [ ! -x $VMSTAT ]; then
# echo "UNKNOWN: iostat not found or is not executable by the nagios user."
echo "UNKNOWN: vmstat not found or is not executable by the nagios user."
exit $STATE_UNKNOWN
fi
Just few updated needed:
as the new version is using vmstat and not iostat, so it would be nice to check vmstat:
here is my modification:
#IOSTAT=/usr/bin/iostat
VMSTAT=/usr/bin/vmstat
and the check:
# if [ ! -x $IOSTAT ]; then
if [ ! -x $VMSTAT ]; then
# echo "UNKNOWN: iostat not found or is not executable by the nagios user."
echo "UNKNOWN: vmstat not found or is not executable by the nagios user."
exit $STATE_UNKNOWN
fi