Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
pylgrym
bypylgrym, November 1, 2017
It mostly works, and does what we need.
However, I fixed a few things to make it work better.
- The volstatus check, I change -le (less-equal) to -ge (greater-equal)
e.g.
if [ "$VOLPCT" -ge "$strCritical" ]; then
.. Otherwise, it would report as 'critical', that you haven't flooded the drive..
- also in volstat, I change the awk part to this:
awk -F: '{print substr($2,2)}'
otherwise it can't handle spaces in the status text,
which in our case meant it wouldnt show the relevant error text.
but otherwise, a great plugin that is easy to adjust.
However, I fixed a few things to make it work better.
- The volstatus check, I change -le (less-equal) to -ge (greater-equal)
e.g.
if [ "$VOLPCT" -ge "$strCritical" ]; then
.. Otherwise, it would report as 'critical', that you haven't flooded the drive..
- also in volstat, I change the awk part to this:
awk -F: '{print substr($2,2)}'
otherwise it can't handle spaces in the status text,
which in our case meant it wouldnt show the relevant error text.
but otherwise, a great plugin that is easy to adjust.