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

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. Cursor keys not working in Ubuntu Terminal Services client
  2. TiVo launches Amazon Unbox service
  3. Revision3 suffered Denial of Service attack from… MediaDefender?
  4. How to stop Windows vulnerabilities before they are known – with DEP
  5. 100 Things people are really saying about Windows Vista

Comments

  1. Jason Filley says:

    Just open a command prompt and enter:

    sc query

  2. Jason Filley says:

    Just open a command prompt and enter:

    sc query

  3. Shawn says:

    Hi, I can

  4. Shawn says:

    Hi, I can

  5. PRABAL says:

    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.

  6. PRABAL says:

    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.

  7. Rudolf Labsuchagne says:

    Just open a command prompt and enter:

    set

  8. Rudolf Labsuchagne says:

    Just open a command prompt and enter:

    set

  9. Prometeus says:

    sc query |findstr /i “service_name”

    • 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.

  10. Prometeus says:

    sc query |findstr /i “service_name”

    • 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.

  11. br_nar says:

    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

  12. br_nar says:

    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

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

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

  15. aiman says:

    how i find the (service name) my computer for D-LINK router dir 300

    • Do you mean you want to monitor a service running on your D-Link router? I don’t think that is possible without modifying the router, and allowing a nagios client to run on the router. Or am I misunderstanding your question?

Trackbacks

  1. [...] Nagios – how to determine the name of a service in Windows [...]

Speak Your Mind

*