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

Slashes on %Reply%

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



Joined: 03 Apr 2002
Posts: 261
Location: Brasil

PostPosted: Mon May 22, 2017 8:25 am    Post subject: Slashes on %Reply% Reply with quote

Hi, is it possible to make hostmon remove the slashes at the end of the %Reply% variable? I´m getting "\r\n" at the end of the variable and is causing me some troubles.

Thanks for helping.

Regards,

Joao.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 11916
Location: USA

PostPosted: Mon May 22, 2017 8:49 am    Post subject: Reply with quote

There is no such option but HostMonitor can get some word or number.
Do you need to keep many words in Reply and remove just \r\n (CRLF)?

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



Joined: 03 Apr 2002
Posts: 261
Location: Brasil

PostPosted: Mon May 22, 2017 10:34 am    Post subject: Reply with quote

Hi Alex,

I only noticed this appending CRLF after upgrading from 9.90 to the current version of Hostmon. I just need to remove CRLF and keep the reply as it was before.

Regards,

Joao.
Back to top
View user's profile Send private message
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Mon May 22, 2017 11:01 am    Post subject: Reply with quote

What exactly test method returns Reply with CRLF?
What test settings do you use?
What is your current HostMontor version?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jromariz



Joined: 03 Apr 2002
Posts: 261
Location: Brasil

PostPosted: Mon May 22, 2017 11:16 am    Post subject: Reply with quote

Test method "SSH test".

Hostmon version without CRLF: 9.90
Hostmon version with CRLF: 10.64

Test settings:

- Check for: shell script result;

Only change was the upgrade from version 9.90 to version 10.64.

Action on this test is to write the result to a database that expects numerical result.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 11916
Location: USA

PostPosted: Mon May 22, 2017 3:25 pm    Post subject: Reply with quote

>Action on this test is to write the result to a database that expects numerical result.

As I said HostMonitor can get some word or number.
Use Tune up Reply value option with expression like
['%SuggestedReply%' getword 1]
or
['%SuggestedReply%' getnumber 1]

We will make adjustments in next version of 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
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