Running server-side custom test more often than every 5 minutes
list Glauber Ribeiro
I have the a server side test that my manager wants to run once a minute. I set it up in (a file included by) tasks.cfg, like this:
[VHRPING]
ENVFILE /usr/local/xymon/server/etc/xymonserver.cfg
NEEDS xymond
CMD /usr/local/xymon/server/ext/bbvhr_rrd.sh
LOGFILE $XYMONSERVERLOGS/vhrping.log
INTERVAL 5m
I changed this so the last line reads
INTERVAL 1m
but it still seems to be running only every 5 minutes.
Is there anything else I need to change in order to run this test once a minute?
(Xymon version 4.3.10)
Thanks,
glauber
list Glauber Ribeiro
I think I got it…
Changed to
INTERVAL 60
(i.e. 60 seconds) and it is working. Not sure why the “1m” didn’t. I see that syntax elsewhere in tasks.cfg.
g
▸
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Ribeiro, Glauber
Sent: Friday, February 13, 2015 12:15
To: xymon at xymon.com
Subject: [Xymon] Running server-side custom test more often than every 5 minutes
I have the a server side test that my manager wants to run once a minute. I set it up in (a file included by) tasks.cfg, like this:
[VHRPING]
ENVFILE /usr/local/xymon/server/etc/xymonserver.cfg
NEEDS xymond
CMD /usr/local/xymon/server/ext/bbvhr_rrd.sh
LOGFILE $XYMONSERVERLOGS/vhrping.log
INTERVAL 5m
I changed this so the last line reads
INTERVAL 1m
but it still seems to be running only every 5 minutes.
Is there anything else I need to change in order to run this test once a minute?
(Xymon version 4.3.10)
Thanks,
glauber
list Japheth Cleaver
On Fri, February 13, 2015 10:20 am, Ribeiro, Glauber wrote:
I think I got itâ¦
Changed to
INTERVAL 60
(i.e. 60 seconds) and it is working. Not sure why the â1mâ didnât. I
▸
see that syntax elsewhere in tasks.cfg.
g
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Ribeiro,
Glauber
Sent: Friday, February 13, 2015 12:15
To: xymon at xymon.com
Subject: [Xymon] Running server-side custom test more often than every 5
minutes
I have the a server side test that my manager wants to run once a minute.
I set it up in (a file included by) tasks.cfg, like this:
[VHRPING]
ENVFILE /usr/local/xymon/server/etc/xymonserver.cfg
NEEDS xymond
CMD /usr/local/xymon/server/ext/bbvhr_rrd.sh
LOGFILE $XYMONSERVERLOGS/vhrping.log
INTERVAL 5m
I changed this so the last line reads
INTERVAL 1m
but it still seems to be running only every 5 minutes.
Is there anything else I need to change in order to run this test once a
minute?
(Xymon version 4.3.10)
Hmm. 1m *should* be a valid syntax since, as you'd indicated, it's used elsewhere. The appropriate parts are in xymonlaunch.c as well, even in 4.3.10. You mentioned it was an include file; I seem to recall occasional issues back then where include'd files didn't always get walked for changes, but my testing shows this to be working. Do you know about how long xymonlaunch was running it in 5m intervals after having changed it to 1m? Regards, -jc
list Glauber Ribeiro
I waited about 15 minutes, before I changed from "1m" to "60". I was suspicious it wouldn't pick up a change in an include file, so I restarted xymon server after each change. g
▸
-----Original Message-----
From: J.C. Cleaver [mailto:user-87556346d4af@xymon.invalid]
Sent: Friday, February 13, 2015 13:52
To: Ribeiro, Glauber
Cc: xymon at xymon.com
Subject: Re: [Xymon] Running server-side custom test more often than every 5 minutes
Hmm.
1m *should* be a valid syntax since, as you'd indicated, it's used
elsewhere. The appropriate parts are in xymonlaunch.c as well, even in
4.3.10.
You mentioned it was an include file; I seem to recall occasional issues
back then where include'd files didn't always get walked for changes, but
my testing shows this to be working.
Do you know about how long xymonlaunch was running it in 5m intervals
after having changed it to 1m?
Regards,
-jc
list Japheth Cleaver
▸
On Fri, February 13, 2015 11:57 am, Ribeiro, Glauber wrote:
-----Original Message----- From: J.C. Cleaver [mailto:user-87556346d4af@xymon.invalid] Sent: Friday, February 13, 2015 13:52 To: Ribeiro, Glauber Cc: xymon at xymon.com Subject: Re: [Xymon] Running server-side custom test more often than every 5 minutes Hmm. 1m *should* be a valid syntax since, as you'd indicated, it's used elsewhere. The appropriate parts are in xymonlaunch.c as well, even in 4.3.10. You mentioned it was an include file; I seem to recall occasional issues back then where include'd files didn't always get walked for changes, but my testing shows this to be working. Do you know about how long xymonlaunch was running it in 5m intervals after having changed it to 1m? Regards, -jcI waited about 15 minutes, before I changed from "1m" to "60". I was suspicious it wouldn't pick up a change in an include file, so I restarted xymon server after each change. g
Can you run xymonlaunch in --debug mode with the task set to "1m"? (You
can also send it a -USR2 signal if it's already running, which will toggle
this state.)
Regards,
-jc
list Glauber Ribeiro
[jc] > Can you run xymonlaunch in --debug mode with the task set to "1m"? (You [jc] > can also send it a -USR2 signal if it's already running, which will toggle [jc] > this state.) [glauber] Unfortunately, no. This is production and very high visibility right now. But I'll keep this in mind, maybe I can rig a test on another server. g
list Glauber Ribeiro
I had this problem again today... this time I used the "1m" syntax, and it worked (good), but it still took 2 xymon server restarts (after waiting about 1/2 hour and not seeing a change) for xymon to pick up the change. I even made innocuous changes to tasks.cfg to see if that would trigger an update. It's not a big deal anyway. g
▸
-----Original Message-----
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Ribeiro, Glauber
Sent: Friday, February 13, 2015 13:57
To: J.C. Cleaver
Cc: xymon at xymon.com
Subject: Re: [Xymon] Running server-side custom test more often than every 5 minutes
I waited about 15 minutes, before I changed from "1m" to "60".
I was suspicious it wouldn't pick up a change in an include file, so I restarted xymon server after each change.
g
-----Original Message-----
From: J.C. Cleaver [mailto:user-87556346d4af@xymon.invalid]
Sent: Friday, February 13, 2015 13:52
To: Ribeiro, Glauber
Cc: xymon at xymon.com
Subject: Re: [Xymon] Running server-side custom test more often than every 5 minutes
Hmm.
1m *should* be a valid syntax since, as you'd indicated, it's used
elsewhere. The appropriate parts are in xymonlaunch.c as well, even in
4.3.10.
You mentioned it was an include file; I seem to recall occasional issues
back then where include'd files didn't always get walked for changes, but
my testing shows this to be working.
Do you know about how long xymonlaunch was running it in 5m intervals
after having changed it to 1m?
Regards,
-jc