Solved

SNMP to monitor windows services

Posted on 2010-11-30
2
876 Views
Last Modified: 2012-05-10
I am running snmp on some of our Windows 2008 servers and am attempting to monitor the status of a number of services using the OID branch 1.3.6.1.2.1.25.4.2.1.7 and appending the services index number to get back the current status. What I am finding though is that if the service is restarted then the service index changes thus my snmp check on the OID returns and invalid response.

Is there a way to query snmp with the service name in order to get the current OID of the service? Also, I find that if the service is not running then the service does not show up at all in the results of my snmpwalk. Am I missing something in my setup or query logic?

Thanks!
0
Comment
Question by:GCaron
  • 2
2 Comments
 

Accepted Solution

by:
GCaron earned 0 total points
ID: 34344771
As I am programming a proprietary internal monitoring application that needs to work across multiple OS, I needed to find another way to make SNMP work for this.

In the end I just get the result from HOST-RESOURCES-MIB::hrSWRunName which gives an array of running services. From there I just search for the known service name to make sure it's listed.
0
 

Author Closing Comment

by:GCaron
ID: 35067414
I answered it
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How does VLAN work? Scenario: (please read the question) 11 131
fabric 1 35
Network Switches 3 26
Cisco router 4400 and switch connection. 27 9
Microservice architecture adoption brings many advantages, but can add intricacy. Selecting the right orchestration tool is most important for business specific needs.
David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question