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
}
useddiskspace errors
Re: useddiskspace errors
In your Drive E check, there is an invalid option in the command. Change the check_command from
to
You should fix the D Drive check at the same time. Change the check from
to
If it still fails, post the nsclient.log file from one of the hosts that are failing.
Code: Select all
check_command check_nt!USEDDISKSPACE!-l e -w 80 -e 90
Code: Select all
check_command check_nt!USEDDISKSPACE!-l e -w 80 -c 90
Code: Select all
check_command check_nt!USEDDISKSPACE!-l d -w 80 -d 90
Code: Select all
check_command check_nt!USEDDISKSPACE!-l d -w 80 -c 90
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: useddiskspace errors
That worked all drives responding
Re: useddiskspace errors
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!