Pages: [1]   Go Down
Author Topic: Windows servics monitoring  (Read 759 times)
0 Members and 1 Guest are viewing this topic.
Bty
Full Member
***

Karma: 0
Offline Offline

Posts: 26


View Profile
« on: December 01, 2010, 11:16:18 AM »

Using SNMP I'm able to retrieve the windows service status, but the problem is I'm unable to trigger an alarm when the service is down.

Using the snmp query
snmpwalk -v2c -c password HOSTNAME SNMPv2-SMI::enterprises.77.1.2.3.1.1.17.65.117.116.111.109.97.116. 105.99.32.85.112.100.97.116.101.115

I can get the status of Automatic update service, Pandora does read correctly when the service is available, but I can't find a way to trigger the alarm when there is no response.

In Pandora I can see the "Last contact" being red when the service is down.

Any idea on how to trigger an alarm when "Last contact" is red?


* Capture.JPG (35.1 KB, 769x196 - viewed 21 times.)
Logged

raul
Administrator
Expert member
*****

Karma: 1
Offline Offline

Posts: 576



View Profile
« Reply #1 on: December 01, 2010, 07:34:10 PM »

I think the problem is the response. As you can see, it gives some text. Maybe you need to parse it to get 0 or 1, and then use it to launch the alert if it¡s 0.
Logged

Bty
Full Member
***

Karma: 0
Offline Offline

Posts: 26


View Profile
« Reply #2 on: December 02, 2010, 11:02:30 AM »

The problem is, if the service is down there won't be a response from the SNMP query.
Logged

raul
Administrator
Expert member
*****

Karma: 1
Offline Offline

Posts: 576



View Profile
« Reply #3 on: December 02, 2010, 01:01:53 PM »

Maybe you can create a small script that gives you 0 if no answer from snmpwalk, and 1 if you get the answer
Logged

reditina1
Newbie
*

Karma: 0
Offline Offline

Posts: 1


View Profile
« Reply #4 on: April 29, 2011, 08:11:16 AM »

thank you!!!
Logged

It is elevate for me wholly to receive research papers for sale invisibly, because richly they are turned by fair writers attentively, who move their clever opinion and formative reasoning in decent recitation.

Pages: [1]   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST