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

TUNE UP REPLY and LASTREPLY

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Bug reports
View previous topic :: View next topic  
Author Message
seelye



Joined: 17 Sep 2005
Posts: 40
Location: USA

PostPosted: Mon Feb 04, 2013 2:12 pm    Post subject: TUNE UP REPLY and LASTREPLY Reply with quote

HostMonitor v.9.38
Windows Server 2003 32bit

I'm always hesitent to post a bug report but it's either a bug or a can't follow the logic of how %LASTREPLY% works.

I'm trying to utilize the TUNE UP REPLY to mask when I get unexpected results from various pieces of equipment.

To keep the question simple, one example is a piece of temperature equipment. I use an SNMP GET and then I tune up the reply value to account for specific situations.

If ('%SuggestedReply%'=='185.0' or '%SuggestedReply%'=='Timeout' or '%SuggestedReply%'=='RMA: 301 - Timeout' or '%SuggestedReply%'=='RMA not connected') [%LastReply%]; else [%SuggestedReply%]

The idea is, if I get a out-of-spec reply of "185.0" (Common for this device when it can't read the real value) OR if there is a connectivity or RMA failure then I want the REPLY value to be replaced with the previous valid reply %LastReply%. In other words I was to assume the same reply value indefinitely until I know for certain I get a new reply from a %SimpleStatus%=OK. And for real replies it processes them normally using the %SuggestedReply%.

The Real responses work fine as the %SuggestedReply% simply passes through to the %Reply%.

It seems however that the %LastReply% when used in the TUNE UP REPLY field always pulls the %Reply% value from two tests prior rather than the immediately preceding result.

Perhaps explaining it differently, it appears the %LastReply% isn't being set properly when the Tune Up Reply Value function is used. It appears out of step with what the last reply truly was.

Is this a bug or am I missing logic in the %LastReply%, %Reply% features when used with the Tune-up-Reply feature?

I have many other tests I'm trying to build which will use this similar logic. Another test that may be affected by this is when doing an SNMP test and comparing the previous value. I've long wanted to run a SNMP test to determine if the current reply was less than the previous reply. (e.g. UPTIME and did the device reboot) I know you have this value comparison as part of the SNMP GET test. However I get inconsistent results when a TIMEOUT or RMA issue occurs. I tried to fix it with a similar TUNE UP formula so the value will essentially flat-line. That way when the test is next able to actually read the value it can still do a comparison. However it fails to work and seems to flip between the previous two read values.

Perhaps the solution is to have a new variable that allows the reference of the %LastGoodReply% that is only set each time the %SimpleStatus%="OK". Make sense?

Thanks and let me know your thoughts?
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Mon Feb 04, 2013 2:47 pm    Post subject: Reply with quote

Quote:
Perhaps explaining it differently, it appears the %LastReply% isn't being set properly when the Tune Up Reply Value function is used. It appears out of step with what the last reply truly was.

Of course, nothing set at this stage except "Suggested" variables.
Quote from the manual
=================
HostMonitor checks "Tune up Reply" expression after test probe is done and "reverse alert" option is processed.
I.e.
- HostMonitor performs the test;
- processes "Reverse alert" option;
- sets "suggested" macro variables (%SuggestedStatus%, %SuggestedSimpleStatus%, %SuggestedReply%, %SuggestedRecurrences% and %FailureIteration%) without touching regular counters (%Status%, %Reply%, %Recurrences%, etc);
- then HostMonitor evaluates "Warning", "Normal" and "Tune up Reply" expressions and finally modifies current test status, reply field and statistics counters (Status, Reply, Alive%, Passed tests, Failed tests, etc).
=================

Why don't you use %Reply% variable instead of %LastReply%?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
seelye



Joined: 17 Sep 2005
Posts: 40
Location: USA

PostPosted: Mon Feb 04, 2013 3:03 pm    Post subject: Reply with quote

Duh! I read the thread from December (two down from mine) and figured it out as you were replying to me. YES I just changed by TUNE UP to use %Reply% instead of %LastReply% and BINGO! Now I'm getting the flat-line results I was looking for.

No bug, No issue except for a user who couldn't understand the manual. Yes I read it over and over but I got lost in the details. Thanks for the prompt nudge in the right direction.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Mon Feb 04, 2013 4:47 pm    Post subject: Reply with quote

No problem

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 -> Bug reports All times are GMT - 6 Hours
Page 1 of 1

 
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