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

question status processing

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
menno



Joined: 21 May 2010
Posts: 157

PostPosted: Fri Nov 30, 2018 12:48 am    Post subject: question status processing Reply with quote

Hi guys

small question here

i have a check that checks if the word "true" is avail able on this test website.
when its not it gives me a "Bad contents" , so far so good

when i try to use another replay it fails
can you please tell me what am i doing wrong here ?
i use :
use "Normal" status if ("%Reply%"=="Bad contents")

see screenshot
[img=//www84.zippyshare.com/scaled/vKgAa9Kn/file.html][/img]

but this doen't look to work...
i just want the test to be "Normal" if the website cannot find the word : true

many thanks in advance
menno
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Fri Nov 30, 2018 2:23 am    Post subject: Reply with quote

"%Reply%"=="Bad contents"?

1) %Reply% variable is not set at this stage, %SuggestedReply% should be used
2) Why do you compare Reply to Status?? "Bad content" is test status, not reply
Expression may look like "%SuggestedStatus%"=="Bad contents"

Quote from the manual
Quote:
IMPORTANT note: HostMonitor checks logical expressions after test check 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 checks "Warning" and "Normal" expressions, processes "Tune up Reply" option and finally modifies current test status and statistisc counters (Status, Reply, Alive%, Passed tests, Failed tests, etc)

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



Joined: 21 May 2010
Posts: 157

PostPosted: Fri Nov 30, 2018 2:41 am    Post subject: Reply with quote

YESS!!! this works
many thanks Alex !
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12792
Location: USA

PostPosted: Fri Nov 30, 2018 2:47 am    Post subject: Reply with quote

You are welcome

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