Nagios – how to determine the name of a service in Windows

By Ronald Bruintjes. Filed in Linux, Network, Windows  |   
Tags: , , , , , ,
TOP del.icio.us digg

I’ve recently set up Nagios on one of our test servers, and the Windows client for Nagios allows you to monitor services (whether they started, stopped, etc.). However, the name of the service to monitor isn’t always the same as the name in the Services application in Administrative Tools.

To find out the name of the service, you’ll have to look at the registry:

  1. Open up regedit (Run, regedit)
  2. Navigate to HKEY_LOCAL_MACHINE
  3. Navigate to SYSTEM
  4. Navigate to CurrentControlSet
  5. Navigate to Services
  6. Find the service you plan on monitoring. The name of the node is the name you need to enter on the Nagios server as the name of the service.

Related posts:

  1. Wow64: How to get the Progress Debugger to run in Vista 64-bit
  2. Cursor keys not working in Ubuntu Terminal Services client
  3. Tomcat uses 100% of CPU
  4. TiVo launches Amazon Unbox service
  5. Setting up MXP to run under Linux

10 Comments

  1. Comment by Jason Filley:

    Just open a command prompt and enter:

    sc query

  2. Comment by Shawn:

    Hi, I can

  3. Comment by PRABAL:

    Hi ALl,

    I am stuck in a strange problem that my windows server ar egiving error when we ar echecking their nagios service as “No Data Recieved from the host even for the existing server after reboot as well as for newly configured hosts.

    Please suggest me step by step so as how to use NSCLIENT++ or NC_NET.

    Thanks in advance.

  4. Comment by Rudolf Labsuchagne:

    Just open a command prompt and enter:

    set

  5. Comment by Prometeus:

    sc query |findstr /i “service_name”

    • Comment by Ronald Bruintjes:

      Ah, but if I know the service name, I don’t have to determine the service name…:-)

      And if you use the displayed name of the service this will just output the line with that displayed name, not the actual service name.

      What would help is redirecting the output of “sc query” to a file, and then do a find in that file – that will give you some context.

  6. Comment by br_nar:

    Or from the Services (mmc) console:
    * double-click the service you want to monitor, in order to open up the properties (or right-click + properties)
    * look at the ‘Service Name’ at the top

  7. Comment by DC Computer Support:

    Yuor web blog looks fantastic. Being a blog writer personally, I truly value the time you took in composing this article.

  1. Ping from Top 5 articles over 2009 | Automation Adventures

Leave a Reply