Page 1 of 1

USEDDISKSPACE -> Invalid drive

Posted: Tue Apr 12, 2016 4:14 am
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

Re: USEDDISKSPACE -> Invalid drive

Posted: Tue Apr 12, 2016 2:47 pm
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