Xymon Mailing List Archive search

Poling interval at specific time.

10 messages in this thread

list Jayanta Kundu · Sun, 22 May 2011 18:27:52 +0430 ·
Hi All,

I want to make poling interval at specific time.
(i) In the KPI(client side custom script), I want to configure poling
interval 15 minutes in business hours(from 8:00 AM to 8:00 PM). Rest
of the time KPI(client side custom script) should not execute.
(ii) In the KPI(client side custom script), I want to execute script
specific time (like 10:00 am, 5:00 pm, 9:00 pm etc.).

Kindly help me for the same.

With Thanks & Regards,
Jayanta.
list Henrik Størner · Sun, 22 May 2011 16:02:40 +0200 ·
quoted from Jayanta Kundu
I want to make poling interval at specific time.
(i) In the KPI(client side custom script)
Since it is a custom script you want to run at specific times, use the 
"CRONDATE" setting in tasks.cfg to specify when it should run.

Regards,
Henrik
list Jayanta Kundu · Sun, 22 May 2011 18:43:40 +0430 ·
Hi Henrik,

I am using Xymon 4.2.3.
I didn't found any file named "tasks.cfg" file in client side. In
$HOBBITCLIENTHOME/etc/ path following .cfg files are available:
(i) clientlaunch.cfg
(ii) hobbitclient.cfg
(iii) localclient.cfg
Could you please describe me in details how can i achieve this.

With Thanks & Regards,
Jayanta.
quoted from Henrik Størner

On Sun, May 22, 2011 at 6:32 PM, Henrik Størner <user-ce4a2c883f75@xymon.invalid> wrote:
I want to make poling interval at specific time.
(i) In the KPI(client side custom script)
Since it is a custom script you want to run at specific times, use the
"CRONDATE" setting in tasks.cfg to specify when it should run.

Regards,
Henrik

list Henrik Størner · Sun, 22 May 2011 16:25:04 +0200 ·
quoted from Jayanta Kundu
I am using Xymon 4.2.3.
I didn't found any file named "tasks.cfg" file in client side.
Then you'll have to run the script via your system 'cron' utility.


Regards,
Henrik
list Jayanta Kundu · Mon, 23 May 2011 18:32:36 +0430 ·
Hi All,

I am using Xymon 4.2.3.
Could anyone please let me know how can I write a sample script in
Client side which should execute every 15 minutes on business
hours(9:00 am to 6 pm) every day.
quoted from Henrik Størner

With Thanks & Regards,
Jayanta.

On Sun, May 22, 2011 at 6:55 PM, Henrik Størner <user-ce4a2c883f75@xymon.invalid> wrote:
I am using Xymon 4.2.3.
I didn't found any file named "tasks.cfg" file in client side.
Then you'll have to run the script via your system 'cron' utility.


Regards,
Henrik
list Phil Meech · Mon, 23 May 2011 15:13:28 +0100 ·
Hi Jayanta,

Create a cron job as follows:

*/15     9-18     *     *     *         $PATH_TO_BBCMD $PATH_TO_YOUR_SCRIPT

Optionally if business hours were only Monday to Friday the last
asterix would be replaced by 1-5.

Phil
quoted from Jayanta Kundu

On 23 May 2011 15:02, Jayanta Kundu <user-d0758a3e63c3@xymon.invalid> wrote:
Hi All,

I am using Xymon 4.2.3.
Could anyone please let me know how can I write a sample script in
Client side which should execute every 15 minutes on business
hours(9:00 am to 6 pm) every day.

With Thanks & Regards,
Jayanta.

On Sun, May 22, 2011 at 6:55 PM, Henrik Størner <user-ce4a2c883f75@xymon.invalid> wrote:
I am using Xymon 4.2.3.
I didn't found any file named "tasks.cfg" file in client side.
Then you'll have to run the script via your system 'cron' utility.


Regards,
Henrik
list Ralph Mitchell · Mon, 23 May 2011 10:26:52 -0400 ·
And at 18:30 every weekday that'll go purple...

It would be better to add code to the top of the script to check the
date/time and to send an automatic green (or perhaps blue) status whenever
the date/time falls outside the times you want to watch.

Ralph Mitchell
quoted from Phil Meech


On Mon, May 23, 2011 at 10:13 AM, Phil Meech <user-472323a743c7@xymon.invalid> wrote:
Hi Jayanta,

Create a cron job as follows:

*/15     9-18     *     *     *         $PATH_TO_BBCMD $PATH_TO_YOUR_SCRIPT

Optionally if business hours were only Monday to Friday the last
asterix would be replaced by 1-5.

Phil

On 23 May 2011 15:02, Jayanta Kundu <user-d0758a3e63c3@xymon.invalid> wrote:
Hi All,

I am using Xymon 4.2.3.
Could anyone please let me know how can I write a sample script in
Client side which should execute every 15 minutes on business
hours(9:00 am to 6 pm) every day.

With Thanks & Regards,
Jayanta.

On Sun, May 22, 2011 at 6:55 PM, Henrik Størner <user-ce4a2c883f75@xymon.invalid> wrote:
I am using Xymon 4.2.3.
I didn't found any file named "tasks.cfg" file in client side.
Then you'll have to run the script via your system 'cron' utility.


Regards,
Henrik
list Phil Meech · Mon, 23 May 2011 16:02:48 +0100 ·
Oops, good point!  I wrote that wondering how much it had to do with
Xymon; perhaps had I considered it going purple I would have realised
it was more to do with Xymon!
quoted from Ralph Mitchell

On 23 May 2011 15:26, Ralph Mitchell <user-00a5e44c48c0@xymon.invalid> wrote:
And at 18:30 every weekday that'll go purple...
It would be better to add code to the top of the script to check the
date/time and to send an automatic green (or perhaps blue) status whenever
the date/time falls outside the times you want to watch.
Ralph Mitchell

On Mon, May 23, 2011 at 10:13 AM, Phil Meech <user-472323a743c7@xymon.invalid> wrote:
Hi Jayanta,

Create a cron job as follows:

*/15     9-18     *     *     *         $PATH_TO_BBCMD
$PATH_TO_YOUR_SCRIPT

Optionally if business hours were only Monday to Friday the last
asterix would be replaced by 1-5.

Phil

On 23 May 2011 15:02, Jayanta Kundu <user-d0758a3e63c3@xymon.invalid> wrote:
Hi All,

I am using Xymon 4.2.3.
Could anyone please let me know how can I write a sample script in
Client side which should execute every 15 minutes on business
hours(9:00 am to 6 pm) every day.

With Thanks & Regards,
Jayanta.

On Sun, May 22, 2011 at 6:55 PM, Henrik Størner <user-ce4a2c883f75@xymon.invalid> wrote:
I am using Xymon 4.2.3.
I didn't found any file named "tasks.cfg" file in client side.
Then you'll have to run the script via your system 'cron' utility.


Regards,
Henrik
list Jayanta Kundu · Mon, 23 May 2011 21:02:14 +0430 ·
Hi,

To avoid the status goes from green/red to purple we can add "+2000"
like some big positive value after $BB $BBDISP "status+2000 ........
in the client side custom script.

Where can i get the "$PATH_TO_BBCMD".
In the "clientlaunch.cfg" file i configured as follows:
[Test]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/script/TEST/TEST.sh
        LOGFILE $HOBBITCLIENTHOME/logs/TEST/TEST.log
        INTERVAL 15m


In the cron job file named ("corn.txt") i configured as follows for
testing purpose:
20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58 20,21 * *
* /home/xymon/client/start /home/xymon/client/script/TEST/TEST.sh

Every 2 minutes .log file should update. But here it is not updating.
TEST.log file updating after every 15 minutes only.
quoted from Phil Meech

Kindly help me for the same.

With Thanks & Regards,
Jayanta.

On Mon, May 23, 2011 at 7:32 PM, Phil Meech <user-472323a743c7@xymon.invalid> wrote:
Oops, good point!  I wrote that wondering how much it had to do with
Xymon; perhaps had I considered it going purple I would have realised
it was more to do with Xymon!

On 23 May 2011 15:26, Ralph Mitchell <user-00a5e44c48c0@xymon.invalid> wrote:
And at 18:30 every weekday that'll go purple...
It would be better to add code to the top of the script to check the
date/time and to send an automatic green (or perhaps blue) status whenever
the date/time falls outside the times you want to watch.
Ralph Mitchell

On Mon, May 23, 2011 at 10:13 AM, Phil Meech <user-472323a743c7@xymon.invalid> wrote:
Hi Jayanta,

Create a cron job as follows:

*/15     9-18     *     *     *         $PATH_TO_BBCMD
$PATH_TO_YOUR_SCRIPT

Optionally if business hours were only Monday to Friday the last
asterix would be replaced by 1-5.

Phil

On 23 May 2011 15:02, Jayanta Kundu <user-d0758a3e63c3@xymon.invalid> wrote:
Hi All,

I am using Xymon 4.2.3.
Could anyone please let me know how can I write a sample script in
Client side which should execute every 15 minutes on business
hours(9:00 am to 6 pm) every day.

With Thanks & Regards,
Jayanta.

On Sun, May 22, 2011 at 6:55 PM, Henrik Størner <user-ce4a2c883f75@xymon.invalid> wrote:
I am using Xymon 4.2.3.
I didn't found any file named "tasks.cfg" file in client side.
Then you'll have to run the script via your system 'cron' utility.


Regards,
Henrik
list Ryan Novosielski · Mon, 23 May 2011 17:35:54 -0400 ·
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

There are not enough stars in that crontab entry. There are 5 fields
total and you've only used the one with the minutes so there should be
four more. Check man 5 crontab -- I always have to check which field is
which.

Also, I don't know your platform or care to look it up, but there is
normally a log associated with cron execution that probably would have
alerted you to that problem. Might want to Google a bit.
quoted from Jayanta Kundu

On 05/23/2011 12:32 PM, Jayanta Kundu wrote:
Hi,

To avoid the status goes from green/red to purple we can add "+2000"
like some big positive value after $BB $BBDISP "status+2000 ........
in the client side custom script.

Where can i get the "$PATH_TO_BBCMD".
In the "clientlaunch.cfg" file i configured as follows:
[Test]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/script/TEST/TEST.sh
        LOGFILE $HOBBITCLIENTHOME/logs/TEST/TEST.log
        INTERVAL 15m


In the cron job file named ("corn.txt") i configured as follows for
testing purpose:
20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58 20,21 * *
* /home/xymon/client/start /home/xymon/client/script/TEST/TEST.sh

Every 2 minutes .log file should update. But here it is not updating.
TEST.log file updating after every 15 minutes only.

Kindly help me for the same.

With Thanks & Regards,
Jayanta.

On Mon, May 23, 2011 at 7:32 PM, Phil Meech <user-472323a743c7@xymon.invalid> wrote:
Oops, good point!  I wrote that wondering how much it had to do with
Xymon; perhaps had I considered it going purple I would have realised
it was more to do with Xymon!

On 23 May 2011 15:26, Ralph Mitchell <user-00a5e44c48c0@xymon.invalid> wrote:
And at 18:30 every weekday that'll go purple...
It would be better to add code to the top of the script to check the
date/time and to send an automatic green (or perhaps blue) status whenever
the date/time falls outside the times you want to watch.
Ralph Mitchell

On Mon, May 23, 2011 at 10:13 AM, Phil Meech <user-472323a743c7@xymon.invalid> wrote:
Hi Jayanta,

Create a cron job as follows:

*/15     9-18     *     *     *         $PATH_TO_BBCMD
$PATH_TO_YOUR_SCRIPT

Optionally if business hours were only Monday to Friday the last
asterix would be replaced by 1-5.

Phil

On 23 May 2011 15:02, Jayanta Kundu <user-d0758a3e63c3@xymon.invalid> wrote:
Hi All,

I am using Xymon 4.2.3.
Could anyone please let me know how can I write a sample script in
Client side which should execute every 15 minutes on business
hours(9:00 am to 6 pm) every day.

With Thanks & Regards,
Jayanta.

On Sun, May 22, 2011 at 6:55 PM, Henrik Størner <user-ce4a2c883f75@xymon.invalid> wrote:
I am using Xymon 4.2.3.
I didn't found any file named "tasks.cfg" file in client side.
Then you'll have to run the script via your system 'cron' utility.


Regards,
Henrik
- -- 
- ---- _  _ _  _ ___  _  _  _

|Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems Programmer
|$&| |__| |  | |__/ | \| _| |user-ae4522577e16@xymon.invalid - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/CST-Academic Svcs. - ADMC 450, Newark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3a0zkACgkQmb+gadEcsb4cxQCeLuP+EpsVYAvtPVDYCq1uE1Vo
17IAn0OSENRu3hhaQCQpgsVzZykmnEs4
=BQU4
-----END PGP SIGNATURE-----