Perform action on Bad status, perform action when 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
jstarry
Posts: 2
Joined: Fri Feb 24, 2012 8:36 am

Perform action on Bad status, perform action when Good

Post by jstarry »

Due to policies on our network, we have a screen saver policy that locks the computer so I can't see the HostMonitor screen. So what I am looking for is a way to hook up some type of external light that will come on when there are any tests (1+) in a Bad status and then turn off the light when there is nothing in Bad status. I have a view that shows me all tests in Bad status but I have to login to view the screen.

I can do an External Command action to turn the light on and off, but is there a way to execute the action when any test goes bad to turn on the light, and then execute the light off action when all tests are good?

Thanks
Joe
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Due to policies on our network, we have a screen saver policy that locks the computer so I can't see the HostMonitor screen. So what I am looking for is a way to hook up some type of external light that will come on when there are any tests (1+) in a Bad status and then turn off the light when there is nothing in Bad status. I have a view that shows me all tests in Bad status but I have to login to view the screen.
You do not want to use RCC or Web Service for some reason?
http://www.ks-soft.net/hostmon.eng/rcc/index.htm
http://www.ks-soft.net/hostmon.eng/webservice/index.htm
I can do an External Command action to turn the light on and off, but is there a way to execute the action when any test goes bad to turn on the light, and then execute the light off action when all tests are good?
You may setup additional test (e.g. Ping localhost) and set "Use Warning status if %HM_BadItems%>0" option, then assign alert profile with External action to this test

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

Post by KS-Soft Europe »

HostMonitor provides %HM_BadItems% macro variable.
It shows number of tests with "Bad" status.
You may setup simple Ping 127.0.0.1 test and use "Use Warning status if" option with expression like the following:
%HM_BadItems%>2

Please check the manual or visit our web site for more information at:
http://www.ks-soft.net/hostmon.eng/mfra ... #statmacro
jstarry
Posts: 2
Joined: Fri Feb 24, 2012 8:36 am

Post by jstarry »

That worked like a charm. I have the test and it activates on error. I then used an Arduino that accepts serial input and created a batch file to send an on and off command to the Arduino to activate and deactivate the light.
Thanks for the info
Joe
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

That worked like a charm.
Great !
Thanks for the info
You are welcome.
Post Reply