Monitoring multiple drives on Windows?


#1

In the windows.cfg file how do you configure the service_description c:\ Drive Space if you need to monitor multiple drives on one server? In other words I have a c: drive d: drive and e: drive how to add those for monitoring?

I tried something like this and it didn’t work:

service_description c:\ Drive Space
service_description d:\ Drive Space
service_description e:\ Drive Space

I also tried:
service_description c:\ Drive Space;d:\ drive space

Does anyone know how to do this?

thanks


#2

Hi

Service_description is just the ‘friendly name’ of the check. You need to define a new service for each drive and ensure you alter the -l parameter in the check_command i.e.

define service{
        use                     generic-service
        host_name               winserver
        service_description     C:\ Drive Space
        check_command           check_nt!USEDDISKSPACE!-l c -w 80 -c 90
        }
define service{
        use                     generic-service
        host_name               winserver
        service_description     D:\ Drive Space
        check_command           check_nt!USEDDISKSPACE!-l d -w 80 -c 90
        }
define service{
        use                     generic-service
        host_name               winserver
        service_description     E:\ Drive Space
        check_command           check_nt!USEDDISKSPACE!-l e -w 80 -c 90
        }

HTH

/S


#3

Thanks!!!