check disk monitor

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jh129666
Posts: 98
Joined: Mon Feb 11, 2013 3:45 pm

check disk monitor

Post 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
bolson

Re: check disk monitor

Post by bolson »

Do you wish to monitor disk usage on Linux or Windows hosts?
dwasswa

Re: check disk monitor

Post 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?
jh129666
Posts: 98
Joined: Mon Feb 11, 2013 3:45 pm

Re: check disk monitor

Post 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:
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: check disk monitor

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jh129666
Posts: 98
Joined: Mon Feb 11, 2013 3:45 pm

Re: check disk monitor

Post by jh129666 »

Thanks for the suggestion. This can be closed.
Locked