useddiskspace errors

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

useddiskspace errors

Postby RayH » Thu Apr 20, 2017 9:11 am

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
}
RayH
 
Posts: 2
Joined: Fri Jun 12, 2015 9:54 am

Re: useddiskspace errors

Postby tgriep » Thu Apr 20, 2017 3:28 pm

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

Re: useddiskspace errors

Postby RayH » Fri Apr 21, 2017 8:35 am

That worked all drives responding
RayH
 
Posts: 2
Joined: Fri Jun 12, 2015 9:54 am

Re: useddiskspace errors

Postby tgriep » Fri Apr 21, 2017 9:43 am

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


Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 35 guests