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

How to trigger an HMS Script

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



Joined: 13 Oct 2016
Posts: 4

PostPosted: Thu Oct 13, 2016 4:46 am    Post subject: How to trigger an HMS Script Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12793
Location: USA

PostPosted: Thu Oct 13, 2016 6:22 am    Post subject: Reply with quote

>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
View user's profile Send private message Visit poster's website
MartinOwen



Joined: 13 Oct 2016
Posts: 4

PostPosted: Thu Oct 13, 2016 6:38 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12793
Location: USA

PostPosted: Thu Oct 13, 2016 7:50 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
MartinOwen



Joined: 13 Oct 2016
Posts: 4

PostPosted: Thu Oct 13, 2016 9:41 am    Post subject: Reply with quote

Hi Alex,

Thanks for that. It was the missing piece and it works well now. Thanks for your help.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12793
Location: USA

PostPosted: Thu Oct 13, 2016 11:38 am    Post subject: Reply with quote

You are welcome

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