load.sh for only a couple of servers generate

Hi,

for now I got following crontab entries on the lpar2rrd server:

0 * * * * /home/xormon/lpar2rrd/load.sh > /home/xormon/lpar2rrd/load.out 2>&1
0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/xormon/lpar2rrd/load_hea.sh > /home/xormon/lpar2rrd/load_hea.out 2>&1


Is it possible to run the load.sh script for only a couple of server to generate the lpar2rrd graphics for them quicker?


thanks

Comments

  • Check how long takes load.sh
    time ./load.sh

    It might take even a few minutes.
    then you can schedulle it every 20 - 15 minutes like
    0,20,40 * * * * /home/xormon/lpar2rrd/load.sh > /home/xormon/lpar2rrd/load.out 2>&1

  • thanks, that's a good hint.

    my load.sh script runs about 30secs.


    but there is no easy way to create the lpar2rrd client graphics only for a couple of clients?

  • I do not understand
  • Hi Pavel,

    it's okay. I have changed my crontab so it runs every 5 minutes:

    0,5,10,15,20,25,30,35,40,45,50,55 * * * * /home/xormon/lpar2rrd/load.sh > /home/xormon/lpar2rrd/load.out 2>&1

    thanks for your support

Sign In or Register to comment.