Solved

SNMP to monitor windows services

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

Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
gns3 with layer 3 switch 6 47
SPAM and Ransomware and Backup 11 90
cutting over to a new network 9 69
slow vpn connection 9 42
This article is a step by step guide on how to create a basic PTP link using Ubiquiti airOS devices. This guide can be used on the following Ubiquiti AirMAX devices. Nanostation, Bullets, AirBridge, Nanobeam, NanoBridge to name a few. Please review …
Use of TCL script on Cisco devices:  - create file and merge it with running configuration to apply configuration changes
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
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…

896 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

17 Experts available now in Live!

Get 1:1 Help Now