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
check disk monitor
-
dwasswa
Re: check disk monitor
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?
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
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:
***** 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:
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: check disk monitor
@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
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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: check disk monitor
Thanks for the suggestion. This can be closed.