USEDDISKSPACE -> Invalid drive

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ByAccident
Posts: 2
Joined: Wed Dec 30, 2015 2:35 am

USEDDISKSPACE -> Invalid drive

Post by ByAccident »

Hello all.

Just wondering , today someone in the team removed a disk from the server resulting in a warning (unknown) from the monitoring service for that disk.
why is this a warning? If a disk goes missing on a server I would like it to be Critical.
Is there any way to change this setting?

Code: Select all

COMMAND: /usr/local/nagios/libexec/check_nt -H x.x.x.x -s "mypassword" -p 12489 -v USEDDISKSPACE -l G -w 80 -c 95 
OUTPUT: Free disk space : Invalid drive
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: USEDDISKSPACE -> Invalid drive

Post by scottwilkerson »

What verison of NSClient are you using? I just tested this on my current machine and got the following:

Code: Select all

/usr/local/nagios/libexec/check_nt -H x.x.x.x -s "welcome" -p 12489 -v USEDDISKSPACE -l G -w 80 -c 95
Free disk space : Invalid drive
# echo $?
3
3 is unknown, not a warning.

If you would like unknowns to report as critical you can look into the NEGATE plugin
https://support.nagios.com/kb/article.php?id=287
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked