monitor window service from SNMP, anyone tried this?

To the Ipswitch web site

Ipswitch Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



monitor window service from SNMP, anyone tried this?Expand / Collapse
Author
Message
Posted 7/5/2006 11:34:29 PM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 10/31/2006 11:25:00 PM
Posts: 45, Visits: 1
hi, has anyone tried this? i need some pointers
Post #20001
Posted 7/6/2006 2:11:08 AM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 10/31/2006 11:25:00 PM
Posts: 45, Visits: 1

as a follow up, I tried to do this myself. I open up SNMP viewer, and tried to query this service. It is OID for Microsoft ISA Server Control.

1.3.6.1.4.1.77.1.2.3.1.3.28.77.105.99.114.111.115.111.102.116.32.73.83.65.32.83.101.114.118.101.114.32.67.111.110.116.114.111.108

Strangely when i tried to create snmp monitory by copying the OID and did the test on the same server, i got error saying

SNMP check (ISA Server test) for -deleted-
OID=1.3.6.1.4.1.77.1.2.3.1.3.28.77.105.99.114.111.115.111.102.116.32.73.83.65.32.83.101.114.118.101.114.32.83.116.111.114.97.103.101  Instance=0  Argument=
ReadCommunity=public  Timeout=2  Retries=1
Comment=
Failed to read SNMP value. Error=Response packet contained the error: No Such Name

where did i go wrong?

 

Post #20003
Posted 7/6/2006 1:16:53 PM


Time Traveler

Time TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime Traveler

Group: WhatsUp Gold Expert
Last Login: 2 days ago @ 1:59:45 PM
Posts: 1,408, Visits: 3,639
You need to remove the instance number of 0 that what's up adds by default. It will work better

Reading, writing and arithmetic - If you need to choose, please take option 1.
Post #20018
Posted 12/14/2007 5:50:52 PM
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 12/14/2007 5:49:58 PM
Posts: 39, Visits: 8
Hi All,

It appears that performing WMI calls is very flakey (in general? in Whatsup?)
Using SNMP seems more stable and faster, so make SNMP equivalant service checks instead of the WMI ones.
The only downside is that it won't automatically restart the service.

To do this, go into Whatsup, then Tools and SNMP Viewer.  Put in the IP of the machine that has the service on it that you wish to monitor, and put in the approprate Community and click OK. Then right-click cht computer and choose View MIB. Now look under iso.org.dod.internet.private.enterprises.lanmanager.lanmgr-2.lmServer.lmsvSvcTable
Now find the service you wish to monitor and double click it so you see the lmsvSvcName on the right pane.
Double click the lmsvSvcName - we will use the EXACT name listed as the value to check for and the Object OID (get rid of the instance number) as the OID.
To actually setup the monitor perform the following steps:
In Whatsup, Configure->Active Monitor Library->New->SNMP Monitor
Put "Windows Service - Service name" for the name (replace Service name with your service name - duh)
Put in the Object Id you got in the previous step and remove the Instance (make it blank)
Leave the Check type as Constant Value and then put in the EXACT service name as shown in the previous value as the Constant Value - this will match for the UP condition.

That's it.

Jim

Post #39388
Posted 12/17/2007 4:36:33 AM
Time Traveler

Time TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime Traveler

Group: Forum Members
Last Login: 8/25/2008 6:03:53 AM
Posts: 534, Visits: 1,877
Awesome, this means one can get rid of 99% of his WMI checks.
By the way, you can use Actions to restart the service if you want.
Post #39411
Posted 2/6/2008 9:21:02 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 2/6/2008 9:43:22 AM
Posts: 2, Visits: 6
snmp it is then, thanks for clearing that up.
Post #40742
Posted 2/13/2008 7:17:16 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 8/7/2008 5:42:07 AM
Posts: 3, Visits: 13
Hello world,

maybe I did not understand jnickel's post correctly, but:

I wonder how you all use SNMP to check the availability of a windows service, when
the OIDs of the service disappear from SNMP as soon as the service stops.

Service is running:

 SNMP check (#myservice#) for #myip#
 OID=1.3.6.1.4.1.77.1.2.3.1.1.8.67.108.105.101.110.116.51.50  Instance=  Argument=
 ReadCommunity=#mycommunity#  Timeout=2  Retries=1
 Comment=
 Constant Value Check: Polled Value=#servicename#, Constant Value=#servicename#
 Polled value MATCHED constant value. Monitor is UP

Service is not running:

 SNMP check (#myservicename#) for #myip#
 OID=1.3.6.1.4.1.77.1.2.3.1.1.8.67.108.105.101.110.116.51.50  Instance=  Argument=
 ReadCommunity=#mycommunity#  Timeout=2  Retries=1
 Comment=
 Failed to read SNMP value. Error=Response packet contained the error: No Such Name

Nice error, but this will not cause WUG to scream, but to show the monitor still up
and everything ok.

Could somebody please show me where the errors is?
Thanks.

CH


 

Post #40921
Posted 2/13/2008 10:03:32 AM
Time Traveler

Time TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime TravelerTime Traveler

Group: Forum Members
Last Login: 8/25/2008 6:03:53 AM
Posts: 534, Visits: 1,877
WUG screams if it doesn't find the OID.
Post #40927
Posted 2/13/2008 10:47:44 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 8/7/2008 5:42:07 AM
Posts: 3, Visits: 13
WUG screams if it doesn't find the OID.

You are right.

Turned wug-server off and on once more after receiving your message.

State changes now up and down as designed.

Thank you.

CH

Post #40932