SNMP Trap values from vcenter

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
cshenberger
Posts: 26
Joined: Mon Aug 11, 2008 5:32 am

Post by cshenberger »

if that is the case then the trap should set because the previous value was gray and the new is red neither of which = green but still no trap

if I set the first part to just the vshield part then there is no way to use

('vShield' in '%1.3.6.1.4.1.6876.4.3.306.0%') and ('%1.3.6.1.4.1.6876.4.3.305.0%' == 'Green') to clear the alarm


I tried the first part with != 'Green' and it doesn't work either
KS-Soft
Posts: 12827
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

if that is the case then the trap should set because the previous value was gray and the new is red neither of which = green but still no trap
HostMonitor does not care about previous value in this case.
You set expression
('vShield' in '%1.3.6.1.4.1.6876.4.3.306.0%') and ('%1.3.6.1.4.1.6876.4.3.305.0%' <> 'Green')

You said Trap Values: 1.3.6.1.4.1.6876.4.3.305.0 = Green
its GREEN, not RED. That's why HostMonitor did not set Bad test status.
there is no way to use .. to clear the alarm
HostMonitor allows you to set 2 different conditions
- for "bad" status
- for "good" status
Please look at test settings and check the manual
Filters:

When you setup SNMP Trap test item, you should provide filters (one or more conditions) that will separate "Bad" and "Good" messages. Message passes the filter only when it matches ALL specified requirements of the filter.
When HostMonitor receives message that fits "Bad" filter conditions, it changes status of the test item to "Bad". If HostMonitor receives message that fits "Good" filter conditions, it changes status of the test item to "Ok".
Different test items may react on different trap messages. For example one test item may react on router configuration changes, while another test reacts on incoming connections received by your firewall.
It is also possible to change status of the test if no "Bad" (or "Good") trap messages were received within specified time interval. For example, you may setup 3rd test item alerting you when a temperature-monitoring device does not send any messages for 5 min.

The following options define which situation will be reported as "bad":

set "Bad" status if received message satisfies...
with this option selected HostMonitor will set "Bad" status when received trap message meets all conditions of the "Bad" filter.
set "Bad" status if no "Good" trap received within NN sec
with this option selected HostMonitor will assign "Bad" status to the test item when there were no messages received within specified interval of time or when received messages don't meet conditions of the "Good" filter.


The same options are available for "Good" messages:

Set "Ok" status if received message satisfies...
Set "Ok" status if no "Bad" trap received within NN sec

Plus there is one more option for "Good" status:

Set Ok status by acknowlegement (manually)

With this option enabled, test item will remain "Bad" until operator Acknowledge status (then status will be changed to Ok)
...
Regards
Alex
cshenberger
Posts: 26
Joined: Mon Aug 11, 2008 5:32 am

Post by cshenberger »

Alex,

if you look at the values I posted If I set trap to "any" the value of

1.3.6.1.4.1.6876.4.3.305.0 = RED

if I set expression to

1.3.6.1.4.1.6876.4.3.305.0 = RED and no other itiems it will work

sorry about the confusion its almost as if the <> 'Green' doesn't work or it doesn't read that value correctly for the expression
cshenberger
Posts: 26
Joined: Mon Aug 11, 2008 5:32 am

Post by cshenberger »

Alex,

with more testing it is definitely that <> 'Green' seems to be an incorrect operator for this field.

Shoudl it be ! 'Green' or != 'Green' or something instead?
KS-Soft
Posts: 12827
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

cshenberger wrote:Alex,
if you look at the values I posted If I set trap to "any" the value of
1.3.6.1.4.1.6876.4.3.305.0 = RED
if I set expression to
1.3.6.1.4.1.6876.4.3.305.0 = RED and no other itiems it will work
sorry about the confusion its almost as if the <> 'Green' doesn't work or it doesn't read that value correctly for the expression
Sorry, I don't see where did you post this.
I see
1.3.6.1.4.1.6876.4.3.304.0 = Red
1.3.6.1.4.1.6876.4.3.305.0 = Green
I see Green, not Red
http://www.ks-soft.net/cgi-bin/phpBB/vi ... c&start=13
Could you please send screen shots to support@ks-soft.net
with more testing it is definitely that <> 'Green' seems to be an incorrect operator for this field.
Shoudl it be ! 'Green' or != 'Green' or something instead?
Use <> operator.
There is no != operator in HostMonitor

Regards
Alex
Post Reply