useddiskspace errors

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
RayH
Posts: 5
Joined: Fri Jun 12, 2015 9:54 am

useddiskspace errors

Post 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
}
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: useddiskspace errors

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
RayH
Posts: 5
Joined: Fri Jun 12, 2015 9:54 am

Re: useddiskspace errors

Post by RayH »

That worked all drives responding
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: useddiskspace errors

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked