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

set Use normal status if "reply" value

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



Joined: 06 Nov 2014
Posts: 120

PostPosted: Wed Jan 10, 2024 4:29 am    Post subject: set Use normal status if "reply" value Reply with quote

Hello,

I would like to set a "normal" status for certain reply values.

A reply value would be for example in QNAP Health Status

Volume [Single Disk Volume: Host Drive: '3.5" SATA HDD 3'] status Global Spare

If is set to "Use normal status if"

("%SuggestedReply%"=="Volume [Single Disk Volume: Host Drive: 3] status Global Spare")

then the message comes back from the RMA: Invalid expression: ConditionEval: Unknown operator: "SATA"

I would also like to classify the return value as "normal".

358:Power Supply 3 Unknown Power Supply 4 Unknown

(Whereby the number at the front unfortunately always changes)

Use normal Status if: ("%SuggestedReply%"=="*Power Supply 3 Unknown Power Supply 4 Unknown") unfortunately does not work.

Am I missing something here?

How can I generally classify a longer "reply" message as "normal"?

Thanks


Hostmon 14.28
Windows Server 2022
Windows Defender Up2Date
RCC 9.28
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Wed Jan 10, 2024 6:08 am    Post subject: Reply with quote

HostMonitor supports single and double quotation marks for expressions.
If you have some string (e.g. reply) with single quotation marks, you may use double quotation marks for expression, like "%SuggestedReply%"
If you have some string (e.g. reply) with double quotation marks, you may use single quotation marks for expression, like '%SuggestedReply%'

Unfortunately this string contains all possible quotation marks so it will not work regardless of expression
Volume [Single Disk Volume: Host Drive: '3.5" SATA HDD 3'] status Global Spare

May be you can rename volume on target device? E.g. remove " after 3.5, then use '%SuggestedReply%' variable with single quotation marks.

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



Joined: 06 Nov 2014
Posts: 120

PostPosted: Wed Jan 10, 2024 6:23 am    Post subject: Reply with quote

Hi Alex,

thanks for the answer.
I will rename the volume as a test because there are really a lot of quotation marks in here.

For the second example.
Is it possible to specify the "Reply" value with a placeholder?

("%SuggestedReply%"=="*Power Supply 3 Unknown Power Supply 4 Unknown")
--> if, for example, "Power Supply 3" occurs then set normal status?

("%SuggestedReply%"=="*Power Supply 3*")

With " * " I can also exclude services from the check using placeholders.

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



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Wed Jan 10, 2024 8:28 am    Post subject: Reply with quote

There is operator IN
("Power Supply 3" in "%SuggestedReply%")

BTW: HostMonitor offers context sensitive help system (over 700 pages), just press F1 when "warning" expression field is selected and you will see the answer to all questions

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



Joined: 06 Nov 2014
Posts: 120

PostPosted: Thu Jan 11, 2024 4:54 am    Post subject: aw Reply with quote

Hi Alex,

thanks, that was the operator I was looking for.

Have a nice day
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Jan 11, 2024 8:29 am    Post subject: Reply with quote

You are welcome.
Have a nice day

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