Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SNMP to monitor windows services

Posted on 2010-11-30
2
Medium Priority
?
885 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

WatchGuard Case Study: NCR

With business operations for thousands of customers largely depending on the internal systems they support, NCR can’t afford to waste time or money on security products that are anything less than exceptional. That’s why they chose WatchGuard.

Question has a verified solution.

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

Use of TCL script on Cisco devices:  - create file and merge it with running configuration to apply configuration changes
In this article, the configuration steps in Zabbix to monitor devices via SNMP will be discussed with some real examples on Cisco Router/Switch, Catalyst Switch, NAS Synology device.
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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

916 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