Xymon Mailing List Archive search

Custom plugin Interval/Crondate turning purple quickly

4 messages in this thread

list Richard Jones · Tue, 14 Nov 2017 10:42:16 +0000 ·
I have a custom plugin that is set to run every Tuesday at 10am on the
server itself, that all runs fine and as expected, however it seems that
shortly after the task has reported back to Xymon (20/30 mins) the task
turns purple. I was expecting the status to stay green (or red etc) until
the next run time. Any ideas why this is happening?

Running Xymon 4.3.28 and the server side tasks.cfg looks like this:

[sometask]
        ENVFILE /usr/local/xymon/server/etc/xymonserver.cfg
        CMD /usr/local/xymon/server/ext/sometask.sh
        LOGFILE $XYMONSERVERLOGS/sometask.log
        CRONDATE 0 10 * * 2

This did happen last week when I originally implemented the task, but I
figured it was due to manually running xymoncmd... though that doesn't seem
to be the case.

Cheers
list Galen Johnson · Tue, 14 Nov 2017 14:26:33 +0000 ·
When you send your status from your test did you include a delay?  Something like status+7d?  Otherwise, the test will default to 5m and go purple after whatever delay the server is configured to do after it hasn't received an update in that time (pretty sure it defaults to 30m).  You'll also want to add "INTERVAL 7d" to your task config.


=G=


From: Xymon <xymon-bounces at xymon.com> on behalf of Richard Jones <user-6806fa693bf5@xymon.invalid>
Sent: Tuesday, November 14, 2017 5:42 AM
To: xymon at xymon.com
Subject: [Xymon] Custom plugin Interval/Crondate turning purple quickly


EXTERNAL
quoted from Richard Jones

I have a custom plugin that is set to run every Tuesday at 10am on the server itself, that all runs fine and as expected, however it seems that shortly after the task has reported back to Xymon (20/30 mins) the task turns purple. I was expecting the status to stay green (or red etc) until the next run time. Any ideas why this is happening?

Running Xymon 4.3.28 and the server side tasks.cfg looks like this:

[sometask]
        ENVFILE /usr/local/xymon/server/etc/xymonserver.cfg
        CMD /usr/local/xymon/server/ext/sometask.sh
        LOGFILE $XYMONSERVERLOGS/sometask.log
        CRONDATE 0 10 * * 2

This did happen last week when I originally implemented the task, but I figured it was due to manually running xymoncmd... though that doesn't seem to be the case.

Cheers
list Paul Root · Tue, 14 Nov 2017 14:33:48 +0000 ·
When you send the results to xymon do you have “status+1w” set?
quoted from Richard Jones

From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Richard Jones
Sent: Tuesday, November 14, 2017 4:42 AM
To: xymon at xymon.com
Subject: [Xymon] Custom plugin Interval/Crondate turning purple quickly

I have a custom plugin that is set to run every Tuesday at 10am on the server itself, that all runs fine and as expected, however it seems that shortly after the task has reported back to Xymon (20/30 mins) the task turns purple. I was expecting the status to stay green (or red etc) until the next run time. Any ideas why this is happening?

Running Xymon 4.3.28 and the server side tasks.cfg looks like this:

[sometask]
        ENVFILE /usr/local/xymon/server/etc/xymonserver.cfg
        CMD /usr/local/xymon/server/ext/sometask.sh
        LOGFILE $XYMONSERVERLOGS/sometask.log
        CRONDATE 0 10 * * 2

This did happen last week when I originally implemented the task, but I figured it was due to manually running xymoncmd... though that doesn't seem to be the case.

Cheers

This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
list Richard Jones · Tue, 14 Nov 2017 14:49:36 +0000 ·
I do now.
That looks to have solved it, cheers.


On 14 November 2017 at 14:33, Root, Paul T <user-76fdb6883669@xymon.invalid>
quoted from Paul Root
wrote:
When you send the results to xymon do you have “status+1w” set?


*From:* Xymon [mailto:xymon-bounces at xymon.com] *On Behalf Of *Richard
Jones
*Sent:* Tuesday, November 14, 2017 4:42 AM
*To:* xymon at xymon.com
*Subject:* [Xymon] Custom plugin Interval/Crondate turning purple quickly


I have a custom plugin that is set to run every Tuesday at 10am on the
server itself, that all runs fine and as expected, however it seems that
shortly after the task has reported back to Xymon (20/30 mins) the task
turns purple. I was expecting the status to stay green (or red etc) until
the next run time. Any ideas why this is happening?


Running Xymon 4.3.28 and the server side tasks.cfg looks like this:


[sometask]

        ENVFILE /usr/local/xymon/server/etc/xymonserver.cfg

        CMD /usr/local/xymon/server/ext/sometask.sh

        LOGFILE $XYMONSERVERLOGS/sometask.log

        CRONDATE 0 10 * * 2


This did happen last week when I originally implemented the task, but I
figured it was due to manually running xymoncmd... though that doesn't seem
to be the case.


Cheers
This communication is the property of CenturyLink and may contain
confidential or privileged information. Unauthorized use of this
communication is strictly prohibited and may be unlawful. If you have
received this communication in error, please immediately notify the sender
by reply e-mail and destroy all copies of the communication and any
attachments.