Solved

SNMP to monitor windows services

Posted on 2010-11-30
2
872 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
Comment Utility
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
Comment Utility
I answered it
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

Is your computer hacked? learn how to detect and delete malware in your PC
Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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…

763 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

9 Experts available now in Live!

Get 1:1 Help Now