Show test always as good?

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
mp1
Posts: 199
Joined: Tue Mar 07, 2006 3:24 am

Show test always as good?

Post by mp1 »

Hi,

We have some snmp/wmi queries and I want that the test will be always shown as good, regardless of the returned value.
I think, this should work with an expression?

Thanks in advance

Martin
Paul_NHS
Posts: 59
Joined: Wed Feb 25, 2009 6:17 am

Post by Paul_NHS »

Get your script to return the following:
scriptRes:Ok

cheers, Paul
mp1
Posts: 199
Joined: Tue Mar 07, 2006 3:24 am

Post by mp1 »

Get your script to return the following:
scriptRes:Ok
We don't use any script, we use the "normal" snmp or wmi test method, I think it should work "Use normal statuf if" and expression

Regards,

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

Post by KS-Soft Europe »

mp1 wrote:[I think it should work "Use normal statuf if" and expression
Correct. You may use "Use normal statuf if" option with expression like this one:

Code: Select all

'%SuggestedSimpleStatus%' <> 'DUMB'
With this expression test will always be 'Normal'.

Regards,
Max
mp1
Posts: 199
Joined: Tue Mar 07, 2006 3:24 am

Post by mp1 »

As always, thanks for the quick reply.

That's it.

Thanks,

Martin
User avatar
greyhat64
Posts: 246
Joined: Fri Mar 14, 2008 9:10 am
Location: USA

Post by greyhat64 »

Martin,
This may be acceptable, but remember this is going to return OK even for non-responsive statuses, which you may want to deal with differently. I know I have tests that are OK regardless of response, until there is no response at all.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

BTW In many cases you may simply setup test to check for a value that never will be retrieved. E.g. set "Alert when OID ... is < than -5" for some counter that always returns positive value.

Regards
Alex
mp1
Posts: 199
Joined: Tue Mar 07, 2006 3:24 am

Post by mp1 »

Martin,
This may be acceptable, but remember this is going to return OK even for non-responsive statuses, which you may want to deal with differently. I know I have tests that are OK regardless of response, until there is no response at all.
Thanks for your note, I have no problem with this.
We have some "tests", which have only informational character, so f.e. we have snmp queries on our different blade server systems to get the actual blade assignments. And with reports, we can see with one view which server is in which blade and in which slot.

We "abuse" HM also for only statistical information, f.e. performance counter checks - How many printed pages we have per hour, day, ...

Regards,

Martin
User avatar
greyhat64
Posts: 246
Joined: Fri Mar 14, 2008 9:10 am
Location: USA

Post by greyhat64 »

Martin,
Cool, as long as you know. I use AHM for some stats too, but for me persistant 'Null' results, in some cases, skews the info/stats I'm trying to build.
Post Reply