View previous topic :: View next topic |
Author |
Message |
jromariz
Joined: 03 Apr 2002 Posts: 264 Location: Brasil
|
Posted: Mon May 22, 2017 8:25 am Post subject: Slashes on %Reply% |
|
|
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 |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12805 Location: USA
|
Posted: Mon May 22, 2017 8:49 am Post subject: |
|
|
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 |
|
|
jromariz
Joined: 03 Apr 2002 Posts: 264 Location: Brasil
|
Posted: Mon May 22, 2017 10:34 am Post subject: |
|
|
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 |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Mon May 22, 2017 11:01 am Post subject: |
|
|
What exactly test method returns Reply with CRLF?
What test settings do you use?
What is your current HostMontor version? |
|
Back to top |
|
|
jromariz
Joined: 03 Apr 2002 Posts: 264 Location: Brasil
|
Posted: Mon May 22, 2017 11:16 am Post subject: |
|
|
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 |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12805 Location: USA
|
Posted: Mon May 22, 2017 3:25 pm Post subject: |
|
|
>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 |
|
|
|