Current situation: The company installed in a number of monitoring rooms hostmonitor monitoring software, synchronization configuration files became a big problem, a server needs to adjust, the workload doubled.
Requirements: Automatically synchronize profiles.
The test process: Because the log was previously saved with the Hostmonitor when using the database. So want to use the database to synchronize the configuration file, carefully read the official manual, no this function, Khan. Then think of using the script to achieve, the problem is to support what scripts, and finally follow the document to find a script configuration method, success.
The final implementation method:
1. Write script file, Hostmonitor supported script is. In HMS Format.
Create a file such as reload. HMS, the suffix is HMS.
Add the following, TEST.HML is the test configuration file
Loadtestlist C:\HOSTMONITORCONFIG\TEST.HML
2. Test run
Select File->execute script-> Reload. HMS selects the script file to execute.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/8C/wKiom1SzuSaQtGpKAADP7uelUPk725.jpg "title=" 4.JPG " alt= "Wkiom1szusaqtgpkaadp7uelupk725.jpg"/>
3. Configure Autorun Scripts
Select Options->scheduler
Schedule Select Regular so that you can choose to run every n minutes.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/88/wKioL1SzuZezPSP4AAGuaKdLkpQ592.jpg "title=" 1.JPG " alt= "Wkiol1szuzezpsp4aaguakdlkpq592.jpg"/>
Add the Execute action to the run HMS script, and select the script location on the inside.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/8C/wKiom1SzuKTg6Z2sAAF1Am4yVR4356.jpg "title=" 3.JPG " alt= "Wkiom1szuktg6z2saaf1am4yvr4356.jpg"/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/88/wKioL1SzuSCg7mG9AAHxJsnPX2A854.jpg "title=" 2.JPG " alt= "Wkiol1szuscg7mg9aahxjsnpx2a854.jpg"/>
Back all the way OK, save ah. You can do it.
There is a small problem in the back, that is, we have a machine is in a special network segment, some machines can not be monitored, so the script is required to disable the monitoring of these hosts. The script that is disabled is also simple. Alas, too simple, no content.
Disabletest Financial Database Server
Disabletest Headquarters FTP Server
Official Documentation: Http://www.hostmonitor.biz/hostmon.eng/mframe.htm
This article is from the "Worry and Sorrow" blog, please be sure to keep this source http://wangyublues.blog.51cto.com/516298/1602620
Hostmonitor Automatic load Configuration