Xymon Mailing List Archive search

Xymonnet on single host.

4 messages in this thread

list Ricardo L. · Wed, 12 Aug 2015 10:42:06 -0700 (PDT) ·
I have xymonnet set to run weekly via crondate.


Now I have the need to monitor a single host ping and ssh every 5 minutes. How would I go about doing this ?


Thanks
list Japheth Cleaver · Wed, 12 Aug 2015 11:15:30 -0700 ·
quoted from Ricardo L.
On Wed, August 12, 2015 10:42 am, Ricardo L. wrote:
I have xymonnet set to run weekly via crondate.


Now I have the need to monitor a single host ping and ssh every 5 minutes.
How would I go about doing this ?
That's an interesting config.

If you're okay with running all of the tests for that host (not just ping
and SSH), then the easiest method would be to set up another invocation of
xymonnet (in tasks.cfg) using the normal "INTERVAL" directive. Keep the
options the same, but simply specify the particular host you're interested
in at the end of the command line.

Per https://xymon.com/help/manpages/man1/xymonnet.1.html, xymonnet will
restrict itself to that/those if hostnames are given.

It's not an especially efficient way to run xymonnet, but for most sized
configs and on normal hardware that shouldn't be an issue.


Might I ask, any particular reason for the 1 week, fixed-time run cycle?


HTH,

-jc
list Ricardo L. · Wed, 12 Aug 2015 11:50:37 -0700 (PDT) ·
Almost all of our servers have the noconn defined but we want ssh , in each ext script ( also ran via CRONDATE) I test for the status of ssh if it's green I run the ext test. This was set because the ext scripts are ssh based and were hanging. 


I also noticed the same thing you did in the man pages. I just wasn't sure if copying the entire xymonnet , having two duplicate  stanzas was supported.

On Wed, Aug 12, 2015 at 1:15 PM, J.C. Cleaver <user-87556346d4af@xymon.invalid>
quoted from Japheth Cleaver
wrote:
On Wed, August 12, 2015 10:42 am, Ricardo L. wrote:
I have xymonnet set to run weekly via crondate.


Now I have the need to monitor a single host ping and ssh every 5 minutes.
How would I go about doing this ?
That's an interesting config.
If you're okay with running all of the tests for that host (not just ping
and SSH), then the easiest method would be to set up another invocation of
xymonnet (in tasks.cfg) using the normal "INTERVAL" directive. Keep the
options the same, but simply specify the particular host you're interested
in at the end of the command line.
Per https://xymon.com/help/manpages/man1/xymonnet.1.html, xymonnet will
restrict itself to that/those if hostnames are given.
It's not an especially efficient way to run xymonnet, but for most sized
configs and on normal hardware that shouldn't be an issue.
Might I ask, any particular reason for the 1 week, fixed-time run cycle?
HTH,
-jc
list Japheth Cleaver · Wed, 12 Aug 2015 13:23:59 -0700 ·
quoted from Ricardo L.

On Wed, August 12, 2015 11:50 am, Ricardo L. wrote:
Almost all of our servers have the noconn defined but we want ssh , in
each ext script ( also ran via CRONDATE) I test for the status of ssh if
it's green I run the ext test. This was set because the ext scripts are

ssh based and were hanging. 


I also noticed the same thing you did in the man pages. I just wasn't sure
if copying the entire xymonnet , having two duplicate  stanzas was
supported.
Ahh, I see.

You can run as many copies of the (non-persistent) executions as you like,
however you'll need to name each [section] uniquely. Note that 'DISABLE'd
and 'ONHOST'd sections are still included in the config, so the header
should be unique there as well.


Regards,

-jc
quoted from Ricardo L.

On Wed, Aug 12, 2015 at 1:15 PM, J.C. Cleaver <user-87556346d4af@xymon.invalid>
wrote:
On Wed, August 12, 2015 10:42 am, Ricardo L. wrote:
I have xymonnet set to run weekly via crondate.


Now I have the need to monitor a single host ping and ssh every 5
minutes.
How would I go about doing this ?
That's an interesting config.
If you're okay with running all of the tests for that host (not just
ping
and SSH), then the easiest method would be to set up another invocation
of
xymonnet (in tasks.cfg) using the normal "INTERVAL" directive. Keep the
options the same, but simply specify the particular host you're
interested
in at the end of the command line.
Per https://xymon.com/help/manpages/man1/xymonnet.1.html, xymonnet will
restrict itself to that/those if hostnames are given.
It's not an especially efficient way to run xymonnet, but for most sized
configs and on normal hardware that shouldn't be an issue.
Might I ask, any particular reason for the 1 week, fixed-time run cycle?
HTH,
-jc