Page 1 of 1

check disk monitor

Posted: Fri Oct 20, 2017 12:56 pm
by jh129666
Is there an existing check disk plugin that can do the following:

- when a threshold has been met, only list the file systems in a warning/critical state
- if there are multiple file systems, display each one on a separate line

Thanks,

Jeff

Re: check disk monitor

Posted: Fri Oct 20, 2017 1:42 pm
by bolson
Do you wish to monitor disk usage on Linux or Windows hosts?

Re: check disk monitor

Posted: Fri Oct 20, 2017 1:49 pm
by dwasswa
Hi @ jh129666,

check_disk plugin checks the amount of used disk space on a mounted file system and generates an alert if free space is less than one of the threshold values

Here are details about the check_disk plugin...check_disk plugin usage
Looking at what you want to accomplish,the -A option in check command will be your best option.


Also,What operating system is the on host your are trying to monitor for disk?

Re: check disk monitor

Posted: Wed Nov 01, 2017 10:09 am
by jh129666
The hosts being monitored are Linux and solaris. Here's an example notification for a linux host. I'd like the "Info" field to only list the file systems that are critical instead of listing all of them, and if there is more than one that's critical put each of them on a separate line (maybe it's not possible with check_disk).

***** Nagios XI Alert *****

Nagios has detected a problem with this service.

Notification Type: PROBLEM

Service: Disk Usage:/usr /var /opt /home /boot /tmp /
Host: xxxxxxxxxxxxxx
Address: xxx.xx.xx.xxx
State: CRITICAL
Info: DISK CRITICAL - free space: / 456 MB (49% inode=82%): /usr 1776 MB (63% inode=64%): /var 2762 MB (74% inode=99%): /opt 625 MB (67% inode=84%): /home 922 MB (99% inode=99%): /boot 5 MB (4% inode=99%): /tmp 923 MB (96% inode=99%):
Date/Time: 2017-11-01 14:18:14
Additional Info:

Re: check disk monitor

Posted: Wed Nov 01, 2017 11:31 am
by npolovenko
@jh129666
I'd recommend this plugin from Nagios Exchange. It works the same way as check_disk but by default, it only outputs critical/warning paths.
https://exchange.nagios.org/directory/P ... sk/details

Code: Select all

./check_disk.pl  -w 20 -c 60

Re: check disk monitor

Posted: Tue Nov 21, 2017 10:59 am
by jh129666
Thanks for the suggestion. This can be closed.