| | | Forum 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 |
| | | | Forum 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? |
| | | | 
Time 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. |
| | | | Forum 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 |
| | | | Time 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. |
| | | | Forum 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. |
| | | | Forum 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 |
| | | | Time 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. |
| | | | Forum 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 |
| | | |
|