0

We use nagios to monitor our network. Has anyone found a sample map file containing entries that correspond to the services in nsclient++

Stewart Robinson
  • 1,145
  • 4
  • 12
  • 24

1 Answers1

-1

i usually get the 4 main metrics for all windows boxes: cpu usage, uptime (for graphing), memory utilization, free space on drive c - via a cfg file in the etc/services folder, as follows below, and then capture particular windows performance counters through something like I described on another answer.

define service{
        use                     default_service
        hostgroup               windows-boxes
        service_description     C_Drive_Space
        check_command           check_nt!USEDDISKSPACE!-l c -w 80 -c 90
        }

define service{
        use                     default_service
        hostgroup               windows-boxes
        service_description     Memory_Usage
        check_command           check_nt!MEMUSE!-w 80 -c 90
        }

define service{
        use                     default_service
        hostgroup               windows-boxes
        service_description     CPU_Load
        check_command           check_nt!CPULOAD!-l 5,80,90
        }

define service{
        use                     default_service
        hostgroup               windows-boxes        service_description     Uptime
        check_command           check_nt!UPTIME
        }

define service{
        use                     default_service
        hostgroup               windows-boxes
        service_description     NSClient_Version
        check_command           check_nt!CLIENTVERSION
        }

the cool thing with the check_nt and check_nrpe is that you can easily deploy your own checks to windows boxes, even batch file scripts! make sure you encrypt and secure that connection by modifying the nsc.ini file. also, make sure your windows hosts only accept inbound connections from the nagios server(s) (also on the nsc.ini file).

Peter Carrero
  • 437
  • 2
  • 10