Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

share|improve this question
    
Do you mean something other than what's covered in the sample config and the docs? –  John Gardeniers Mar 19 '10 at 11:57

1 Answer 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).

share|improve this answer
    
These aren't map file entries. They are service commands. –  Stewart Robinson Mar 30 '10 at 10:33
    
Ok, I guess I don't understand what the RP means by "nsclient++ map entries". Care to clarify? –  Peter Carrero Mar 30 '10 at 18:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.