Unable to monitor all Windows 2000 drives
-
- Posts: 4
- Joined: Tue Oct 04, 2011 9:51 am
Unable to monitor all Windows 2000 drives
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
Can you post the command and service definitions that you're using for this check?
-
- Posts: 4
- Joined: Tue Oct 04, 2011 9:51 am
Re: Unable to monitor all Windows 2000 drives
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
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:
And a service definition for that host would look something like this:
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.
/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$
}
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
}