Page 1 of 1

useddiskspace errors

Posted: Thu Apr 20, 2017 9:11 am
by RayH
Recently upgraded and moved Nagios core to new server having problems checking useddiskspace on drive letters higher than "D". Under status I get "UNKNOWN" and under status information I get "Usage:" drives "C and D' are working fine here is the code for d and e drives cut from the config file.

# Create a service for monitoring D:\ disk usage
# Change the host_name to match the name of the host you defined above

define service{
use generic-service
host_name ETSQL1
service_description D:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l d -w 80 -d 90
}



# Create a service for monitoring E:\ disk usage
# Change the host_name to match the name of the host you defined above

define service{
use generic-service
host_name ETSQL1
service_description E:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l e -w 80 -e 90
}

Re: useddiskspace errors

Posted: Thu Apr 20, 2017 3:28 pm
by tgriep
In your Drive E check, there is an invalid option in the command. Change the check_command from

Code: Select all

check_command check_nt!USEDDISKSPACE!-l e -w 80 -e 90
to

Code: Select all

check_command check_nt!USEDDISKSPACE!-l e -w 80 -c 90
You should fix the D Drive check at the same time. Change the check from

Code: Select all

check_command check_nt!USEDDISKSPACE!-l d -w 80 -d 90
to

Code: Select all

check_command check_nt!USEDDISKSPACE!-l d -w 80 -c 90
If it still fails, post the nsclient.log file from one of the hosts that are failing.

Re: useddiskspace errors

Posted: Fri Apr 21, 2017 8:35 am
by RayH
That worked all drives responding

Re: useddiskspace errors

Posted: Fri Apr 21, 2017 9:43 am
by tgriep
That is good to hear. I'll close and mark the post as solved. If you have any new questions, please open a new post.