Page 1 of 1
Unable to monitor all Windows 2000 drives
Posted: Tue Oct 04, 2011 10:24 am
by TLHKayaker
The server that is having this issue has many drive letters in use. Most of them are monitored with no problems. However, a few of the drives I cannot monitor. In Nagios Core they show up as "Free disk space: Invalid drive". I have been searching for another post concerning this, but have not found one yet.
Re: Unable to monitor all Windows 2000 drives
Posted: Wed Oct 05, 2011 9:57 am
by mguthrie
Can you post the command and service definitions that you're using for this check?
Re: Unable to monitor all Windows 2000 drives
Posted: Wed Oct 05, 2011 12:25 pm
by TLHKayaker
Do they all begin with check_ ? I am new to this and did not set it up. I apologize in advance!
Re: Unable to monitor all Windows 2000 drives
Posted: Wed Oct 05, 2011 1:01 pm
by mguthrie
No worries, you're looking for a file called commands.cfg, located under the one of the following directories:
/etc/nagios
/usr/local/nagios/etc
You'll likely have a definition in there that looks something like:
Code: Select all
define command {
command_name check_service_nsclient
command_line $USER1$/check_nt -H $HOSTADDRESS$ -s "$ARG1$" -p 12489 -v $ARG2$ $ARG3$ $ARG4$
}
And a service definition for that host would look something like this:
Code: Select all
define service {
host_name MikesWinBox
service_description Drive C: Disk Usage
use xiwizard_windowsdesktop_nsclient_service
check_command check_service_nsclient!!USEDDISKSPACE!-l C -w 90 -c 95
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notification_options n
contacts nagiosadmin
_xiwizard windowsdesktop
register 1
}
Not sure if those will help, but if you can find your definitions and post them we'll see if we can help you out.