KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

SNMP Trap values from vcenter
Goto page Previous  1, 2
 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
cshenberger



Joined: 11 Aug 2008
Posts: 26

PostPosted: Thu Sep 22, 2016 12:36 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Thu Sep 22, 2016 1:13 pm    Post subject: Reply with quote

Quote:
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.

Quote:
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

Quote:
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
Back to top
View user's profile Send private message Visit poster's website
cshenberger



Joined: 11 Aug 2008
Posts: 26

PostPosted: Thu Sep 22, 2016 1:23 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
cshenberger



Joined: 11 Aug 2008
Posts: 26

PostPosted: Thu Sep 22, 2016 1:39 pm    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Thu Sep 22, 2016 1:47 pm    Post subject: Reply with quote

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
Quote:
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/viewtopic.php?t=7895&postdays=0&postorder=asc&start=13
Could you please send screen shots to support@ks-soft.net

Quote:
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
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index