Solved

SNMP to monitor windows services

Posted on 2010-11-30
2
874 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

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!
Use of TCL script on Cisco devices:  - create file and merge it with running configuration to apply configuration changes
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…

813 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now