...
Code Block |
---|
'nmis_master_poll_cycle' => 'false', |
To run from cron add this line to the crontab which runs your nmis collections. This This line will push or pull (depending on which one you pick) to all servers. If you would only like to push or pull to a specific server replace "all" with the server name:
Code Block |
---|
*/2 * * * * wget -q http://localhost:8042/omk/opHA/servers/all/[push|pull] -o O/dev/null# all servers */2 * * * * wget -q http://localhost:8042/omk/opHA/servers/vali/pull -o O/dev/null # just pull server vali |
This will get your collections running every 2 minutes regardless of any other polling operations.
To run If you want to run the opHA transfers immediately after an NMIS collect, put a script like this in /usr/local/nmis8/bin/nmis_post_proc.pl
...
we recommend that you add the wget
lines above to your NMIS cron schedule, for example like this:
Code Block |
---|
###################################################### # NMIS8 Config ###################################################### # Run Statistics Collection */5 * * * * /usr/local/nmis8/bin/nmis.pl type=collect mthread=true maxthreads=10; wget -q http://localhost:8042/omk/opHA/servers/all/pullpush -o O/dev/null"); return 1; } |
Alternatively, if you use NMIS 8.5.6G or newer you can use its plugin system to hook into the post-collect phase and execute Perl code of your choice then.
Logs
Logs can be found in /usr/local/omk/log or also viewed from the GUI at http://server_name:8042/omk/opHA/logs
...