How to trigger an HMS Script

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
MartinOwen
Posts: 4
Joined: Thu Oct 13, 2016 4:17 am

How to trigger an HMS Script

Post by MartinOwen »

Hi All,

I'm new to Host Monitor and this forum, so be gentle!

I have a simple requirement to trigger an hms script from a web page hosted on the same server as HM (Veriosn 10.30)

All I need is a button on the web page that acknowledges a specific test and resets the status.
The script body looks fine, but I can't work out the trigger mechanism to actually run the HMS script.

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

Post by KS-Soft »

>The script body looks fine

how exactly your script sends data to HostMonitor? Does it send SNMP Trap message? creates some file? adds record into log file? changes some SNMP agent counter? sends e-mail?

Regards
Alex
MartinOwen
Posts: 4
Joined: Thu Oct 13, 2016 4:17 am

Post by MartinOwen »

Hi ALex,

Thanks for getting back to me.

By the body of the script, I meant this bit.

AckTestStatusByID 15 StopAlerts maintenance

How I get this information to HostMonitor is my problem.

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

Post by KS-Soft »

HostMonitor offers many test methods. Choose one and use it to start HMS script.
E.g. create empty file and use "File/Folder Availability" test method to start script when file exist and newer then N minutes

Regards
Alex
MartinOwen
Posts: 4
Joined: Thu Oct 13, 2016 4:17 am

Post by MartinOwen »

Hi Alex,

Thanks for that. It was the missing piece and it works well now. Thanks for your help.
KS-Soft
Posts: 12821
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You are welcome

Regards
Alex
Post Reply