View previous topic :: View next topic |
Author |
Message |
MartinOwen
Joined: 13 Oct 2016 Posts: 4
|
Posted: Thu Oct 13, 2016 4:46 am Post subject: How to trigger an HMS Script |
|
|
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. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Thu Oct 13, 2016 6:22 am Post subject: |
|
|
>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 |
|
Back to top |
|
|
MartinOwen
Joined: 13 Oct 2016 Posts: 4
|
Posted: Thu Oct 13, 2016 6:38 am Post subject: |
|
|
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 |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Thu Oct 13, 2016 7:50 am Post subject: |
|
|
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 |
|
Back to top |
|
|
MartinOwen
Joined: 13 Oct 2016 Posts: 4
|
Posted: Thu Oct 13, 2016 9:41 am Post subject: |
|
|
Hi Alex,
Thanks for that. It was the missing piece and it works well now. Thanks for your help. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Thu Oct 13, 2016 11:38 am Post subject: |
|
|
You are welcome
Regards
Alex |
|
Back to top |
|
|
|