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
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 <rich at corporationpop.co.uk> Sent: Tuesday, November 14, 2017 5:42 AM To: xymon at xymon.com Subject: [Xymon] Custom plugin Interval/Crondate turning purple quickly
EXTERNAL
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
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.
I do now. That looks to have solved it, cheers.
On 14 November 2017 at 14:33, Root, Paul T <Paul.Root at centurylink.com> 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 * * 2This 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.
participants (3)
-
Galen.Johnson@sas.com
-
Paul.Root@CenturyLink.com
-
rich@corporationpop.co.uk