Unable to monitor all Windows 2000 drives

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
TLHKayaker
Posts: 4
Joined: Tue Oct 04, 2011 9:51 am

Unable to monitor all Windows 2000 drives

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Unable to monitor all Windows 2000 drives

Post by mguthrie »

Can you post the command and service definitions that you're using for this check?
TLHKayaker
Posts: 4
Joined: Tue Oct 04, 2011 9:51 am

Re: Unable to monitor all Windows 2000 drives

Post by TLHKayaker »

Do they all begin with check_ ? I am new to this and did not set it up. I apologize in advance!
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Unable to monitor all Windows 2000 drives

Post 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.
Locked