How to create check for disk space below 10gb
How to create check for disk space below 10gb
Hi, I am trying to create a Nagios check to send an alert for servers with <10gb disk space. ive found articles for disk space checks for Nagios xi but couldn't find anything for core. any help would be much appreciated. thanks
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: How to create check for disk space below 10gb
It depends on the type of server and agent.
Here are some guides
https://assets.nagios.com/downloads/nag ... start.html
Here are some guides
https://assets.nagios.com/downloads/nag ... start.html
Re: How to create check for disk space below 10gb
thank you for your prompt response. will be monitoring windows servers and using nsclient++
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: How to create check for disk space below 10gb
https://docs.nsclient.org/reference/windows/CheckDisk/sho7x wrote:thank you for your prompt response. will be monitoring windows servers and using nsclient++
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: How to create check for disk space below 10gb
thanks for the link. Do you know how I could tweak the command to alert when there is <10gb instead of a percentage of space available.
./check_nrpe -H 10.25.11.3 -c check_drivesize -a drive=C: 'warning=free<20%' 'critical=free<10%' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${free_pct}% free / ${size} total}' top-syntax='${status}: ${problem_list}'
Also, what is the ip for that is provided in the command?
./check_nrpe -H 10.25.11.3 -c check_drivesize -a drive=C: 'warning=free<20%' 'critical=free<10%' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${free_pct}% free / ${size} total}' top-syntax='${status}: ${problem_list}'
Also, what is the ip for that is provided in the command?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: How to create check for disk space below 10gb
sho7x wrote:thanks for the link. Do you know how I could tweak the command to alert when there is <10gb instead of a percentage of space available.
Code: Select all
./check_nrpe -H 10.25.11.3 -c check_drivesize -a drive=C: 'warning=free<10g' 'critical=free<10g' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${free_pct}% free / ${size} total}' top-syntax='${status}: ${problem_list}'
The IP is the IP of your windows hostsho7x wrote: Also, what is the ip for that is provided in the command?
Re: How to create check for disk space below 10gb
Thank you so much for your help man. What if I want to select a host group in ql for the check to run against and not just a specific ip because im I want to run it against all windows hosts in my env. Do I just take out the -h along with the ip?
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: How to create check for disk space below 10gb
You can create the command like this
$HOSTADDRESS$ will be replaced with the address field of each of the hosts in the host group when Nagios runs the command
Code: Select all
$USER1$/check_nrpe -H $HOSTADDRESS$ -c check_drivesize -a drive=C: 'warning=free<10g' 'critical=free<10g' show-all 'perf-config=*(unit:G)' detail-syntax='{${drive_or_name} ${free_pct}% free / ${size} total}' top-syntax='${status}: ${problem_list}'