Slashes on %Reply%

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
jromariz
Posts: 264
Joined: Wed Apr 03, 2002 6:00 pm
Location: Brasil

Slashes on %Reply%

Post by jromariz »

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.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
jromariz
Posts: 264
Joined: Wed Apr 03, 2002 6:00 pm
Location: Brasil

Post by jromariz »

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.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

What exactly test method returns Reply with CRLF?
What test settings do you use?
What is your current HostMontor version?
jromariz
Posts: 264
Joined: Wed Apr 03, 2002 6:00 pm
Location: Brasil

Post by jromariz »

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.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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