Creating a Tune Up Reply conversion table?

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
mrw
Posts: 195
Joined: Mon Oct 08, 2012 6:11 am

Creating a Tune Up Reply conversion table?

Post by mrw »

Hi,

On one Dell server with OMSA installed I can get using snmp a "Virtual Disk State".
This is a number between 0 to 60. I have set the alert to trigger on anything besides the result 1 and that works fine.

But I would like to convert the result to a textstring since I know what all those 60 numbers really stand for.
1=Ready
2=Failed
4=Offline
26=Formatting
..and so on..

Is there a way I can create a Tune up Result table/list or similar to convert a number to the corresponding Textstring?

//Andreas..
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Your "Tune up Reply value" expression may look like the following:
if ('%SuggestedReply%'=='1') Ready; if ('%SuggestedReply%'=='2') Failed; if ('%SuggestedReply%'=='3') Offline; if ('%SuggestedReply%'=='26') Formatting; else %SuggestedReply%

or like this:
if ('%SuggestedReply%'=='1') Ready (%SuggestedReply%); if ('%SuggestedReply%'=='2') Failed (%SuggestedReply%); if ('%SuggestedReply%'=='3') Offline (%SuggestedReply%); if ('%SuggestedReply%'=='26') Formatting (%SuggestedReply%); else Unknown (%SuggestedReply%)
mrw
Posts: 195
Joined: Mon Oct 08, 2012 6:11 am

Post by mrw »

Thanks!
That worked perfectly!

One little suggestion though:
In the windows where I enter the code for the Tune up Reply, I´d like to be able to hit Enter after each ; so I can have one translation per line. Just to have the code a little cleaner and neater.
Now it´s all on just one line with window edge wrap.

Would that be possible to fix in a later version perhaps?

//Andreas..
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

H'm, I am not sure
Export, import, all internal procedures consider expression strings as single line and converts any text into single line for purpose :roll:

Regards
Alex
mrw
Posts: 195
Joined: Mon Oct 08, 2012 6:11 am

Post by mrw »

I´m talking visually only. If it was possible to insert line breaks to make it visually easier(atleast for me).
I guess that single line work for most cases, but in this case the whole expression takes up lots of space in the text window.

When I typed in the above expression I automatically hit enter after each ; so it´looked good. And obviously the expression worked fine. But when I opened up that window again the linefeeds were not saved and everything was back on single line.

Do understand what I am talking about? If that´s not possible to fix then I´m fine with that.

//Andreas..
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Yes, I understand. But its not a fix. We have to redesign some procedures so HostMonitor will store text as you want and convert it just before processing...
I can add this task into "to do" list but as low priority task

Regards
Alex
Post Reply