Xymon Mailing List Archive search

How do I run a hobbit ext script at 1st day of every month ?

6 messages in this thread

list T.J. Yang · Thu, 26 Jul 2007 05:57:35 -0500 ·
Is there a way to configure a scrip to be run at specific day of the 
moth/year ?
like cronjob or at command.

I have a metric script that need to be run at first day of each 
month.Following
example is not really what I need.

[metrics]
        ENVFILE /etc/opt/hobbitserver42/hobbitserver.cfg
        CMD $BBHOME/ext/metrics/avail.ksh
        LOGFILE $BBSERVERLOGS/avail.ksh.log
        INTERVAL 4320m
bash-3.00$


T.J. Yang

http://liveearth.msn.com
list Stewart L · Thu, 26 Jul 2007 07:02:13 -0400 ·
I think you would be better off doing that via a cron job.   Why the desire
to do it via hobbit?

Stew
quoted from T.J. Yang

On 7/26/07, T.J. Yang <user-8e841282cda5@xymon.invalid> wrote:
Is there a way to configure a scrip to be run at specific day of the
moth/year ?
like cronjob or at command.

I have a metric script that need to be run at first day of each
month.Following
example is not really what I need.

[metrics]
        ENVFILE /etc/opt/hobbitserver42/hobbitserver.cfg
        CMD $BBHOME/ext/metrics/avail.ksh
        LOGFILE $BBSERVERLOGS/avail.ksh.log
        INTERVAL 4320m
bash-3.00$


T.J. Yang

http://liveearth.msn.com

list Rolf Schrittenlocher · Thu, 26 Jul 2007 13:07:10 +0200 ·
Hi,

workaround: let it run every day and exit if it isn't the first day of the month

Rolf
quoted from Stewart L
Is there a way to configure a scrip to be run at specific day of the moth/year ?
like cronjob or at command.

I have a metric script that need to be run at first day of each month.Following
example is not really what I need.

[metrics]
       ENVFILE /etc/opt/hobbitserver42/hobbitserver.cfg
       CMD $BBHOME/ext/metrics/avail.ksh
       LOGFILE $BBSERVERLOGS/avail.ksh.log
       INTERVAL 4320m
bash-3.00$


T.J. Yang

http://liveearth.msn.com

-- 

Mit freundlichen Gruessen
Rolf Schrittenlocher

HRZ/BDV, Senckenberganlage 31, 60054 Frankfurt
Tel: (XX) XX - XXX XXXXX   Fax: (XX) XX XXX XXXXX
LBS: user-1e39a1813094@xymon.invalid
Persoenlich: user-6ea8e907e200@xymon.invalid
list Asif Iqbal · Thu, 26 Jul 2007 07:17:10 -0400 ·
On 7/26/07, Rolf Schrittenlocher <user-af137d856faa@xymon.invalid>
quoted from Rolf Schrittenlocher
wrote:
Hi,

workaround: let it run every day and exit if it isn't the first day of
the month

And you can use this ` date +%b ' as the extension of a lock file
quoted from Rolf Schrittenlocher


Rolf
Is there a way to configure a scrip to be run at specific day of the
moth/year ?
like cronjob or at command.

I have a metric script that need to be run at first day of each
month.Following
example is not really what I need.

[metrics]
       ENVFILE /etc/opt/hobbitserver42/hobbitserver.cfg
       CMD $BBHOME/ext/metrics/avail.ksh
       LOGFILE $BBSERVERLOGS/avail.ksh.log
       INTERVAL 4320m
bash-3.00$


T.J. Yang

http://liveearth.msn.com

--
Mit freundlichen Gruessen
Rolf Schrittenlocher

HRZ/BDV, Senckenberganlage 31, 60054 Frankfurt
Tel: (XX) XX - XXX XXXXX   Fax: (XX) XX XXX XXXXX
LBS: user-1e39a1813094@xymon.invalid
Persoenlich: user-6ea8e907e200@xymon.invalid

-- 

Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
list Ralph Mitchell · Thu, 26 Jul 2007 07:02:07 -0500 ·
quoted from T.J. Yang
On 7/26/07, T.J. Yang <user-8e841282cda5@xymon.invalid> wrote:
Is there a way to configure a scrip to be run at specific day of the
moth/year ?
like cronjob or at command.

I have a metric script that need to be run at first day of each
month.Following
example is not really what I need.

[metrics]
        ENVFILE /etc/opt/hobbitserver42/hobbitserver.cfg
        CMD $BBHOME/ext/metrics/avail.ksh
        LOGFILE $BBSERVERLOGS/avail.ksh.log
        INTERVAL 4320m

Why not run it out of cron, in the same way you might test a script:

     bbcmd $BBHOME/ext/metrics/avail.ksh

That'll set up the environment for you as if Hobbit were running it.

Ralph Mitchell
list T.J. Yang · Thu, 26 Jul 2007 08:10:04 -0500 ·
Thanks for all the replies,

I like the idea of adding the checking 1st day of the month algorithm into 
the script.


T.J. Yang

From: "Ralph Mitchell" <user-00a5e44c48c0@xymon.invalid>
Reply-To: user-ae9b8668bcde@xymon.invalid
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] How do I run a hobbit ext script at 1st day of every 
month ?
Date: Thu, 26 Jul 2007 07:02:07 -0500
quoted from T.J. Yang

On 7/26/07, T.J. Yang <user-8e841282cda5@xymon.invalid> wrote:
Is there a way to configure a scrip to be run at specific day of the
moth/year ?
like cronjob or at command.

I have a metric script that need to be run at first day of each
month.Following
example is not really what I need.

[metrics]
        ENVFILE /etc/opt/hobbitserver42/hobbitserver.cfg
        CMD $BBHOME/ext/metrics/avail.ksh
        LOGFILE $BBSERVERLOGS/avail.ksh.log
        INTERVAL 4320m

Why not run it out of cron, in the same way you might test a script:

    bbcmd $BBHOME/ext/metrics/avail.ksh

That'll set up the environment for you as if Hobbit were running it.

Ralph Mitchell

http://liveearth.msn.com