Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To run from cron add this line to the  crontab which runs your nmis collectionsto an appropriate file in your /etc/cron.d/ directory (you could create a new one or re-use your nmis file). 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
#### SYNTAX FOR ALL servers with ether push or pull
*/2 * * * * root wget -q http://localhost:8042/omk/opHA/servers/all/[push|pull] -O/dev/null# all servers null   
#### an EXAMPLE with Pull for one server called Vali
*/2 * * * * root wget -q http://localhost:8042/omk/opHA/servers/vali/pull -O/dev/null # just pull server vali

This will get your collections running every 2 minutes regardless of any other polling operations.

If you want to run the opHA transfers immediately after an NMIS collect, we recommend that you add the wget lines above line to your NMIS cron schedule, for example like this:

Code Block
######################################################
# NMIS8 Config
######################################################
# Run Statistics CollectionCollection 
*/5 * * * * /usr/local/nmis8/bin/nmis.pl type=collect mthread=true maxthreads=10; wget -q http://localhost:8042/omk/opHA/servers/all/push -O/dev/null
# so add   ; wget -q http://localhost:8042/omk/opHA/servers/all/push -O/dev/null

...