Xymon Mailing List Archive search

Disable Single Test after Hours

5 messages in this thread

list Vernon Everett · Fri, 30 May 2014 09:28:19 +0800 ·
Hi all

I have a host, running an HTTP server.
We need to monitor the host, 24x7, but the HTTP test goes down overnight
for regular updates, or refueling or something.  Ours not reason why....
I want to disable just the HTTP test after hours..
And before you say I should put a TIME entry in alerts.cfg, it's not that
simple.

Every morning, a remote co-worker, looks at the EvenLog Report, and
generates an "Incident Report" for the PHBs.
The alerts.cfg entry simply stops the alerts from going out. The test still
goes red, and shows up as an event.

You might think he could exclude the host in the appropriate exclude field,
but there are other aspects of the host that need to be monitored, and
included in the report.
We could exclude HTTP from the report, but we have other hosts running HTTP
services that must remain up, and need to be in the report too.

So how to disable a single HTTP test for a specific time period, on a
single server so it doesn't generate events?
Alternatively, leave a single host:test combo out of the EventLog report.

Regards
Vernon
-- 
"Accept the challenges so that you can feel the exhilaration of victory"
- General George Patton
list Ralph Mitchell · Thu, 29 May 2014 21:42:19 -0400 ·
Does the test still show up in the report if you send a "disable" for it?
 You should be able to do something like this with cron:

   xymon localhost "disable yadda,bling,com.http 60 Nap Time"

Ralph Mitchell


On Thu, May 29, 2014 at 9:28 PM, Vernon Everett <user-b3f8dacb72c8@xymon.invalid>
quoted from Vernon Everett
wrote:
Hi all

I have a host, running an HTTP server.
We need to monitor the host, 24x7, but the HTTP test goes down overnight
for regular updates, or refueling or something.  Ours not reason why....
I want to disable just the HTTP test after hours..
And before you say I should put a TIME entry in alerts.cfg, it's not that
simple.

Every morning, a remote co-worker, looks at the EvenLog Report, and
generates an "Incident Report" for the PHBs.
The alerts.cfg entry simply stops the alerts from going out. The test
still goes red, and shows up as an event.

You might think he could exclude the host in the appropriate exclude
field, but there are other aspects of the host that need to be monitored,
and included in the report.
We could exclude HTTP from the report, but we have other hosts running
HTTP services that must remain up, and need to be in the report too.

So how to disable a single HTTP test for a specific time period, on a
single server so it doesn't generate events?
Alternatively, leave a single host:test combo out of the EventLog report.

Regards
Vernon
--
"Accept the challenges so that you can feel the exhilaration of victory"
- General George Patton

list Vernon Everett · Fri, 30 May 2014 10:03:07 +0800 ·
Didn't think of that approach.
It will probably not show up, since the report only lists yellow and red
status incidents.
Sound like a bit of a kludge, but in the absence of any other option, I
might do that that.
Will give it a couple of days first, see if anybody else has something more
elegant.
But thanks. I think that will work.

Regards
Vernon
quoted from Ralph Mitchell


On 30 May 2014 09:42, Ralph Mitchell <user-00a5e44c48c0@xymon.invalid> wrote:
Does the test still show up in the report if you send a "disable" for it?
 You should be able to do something like this with cron:

   xymon localhost "disable yadda,bling,com.http 60 Nap Time"

Ralph Mitchell


On Thu, May 29, 2014 at 9:28 PM, Vernon Everett <user-b3f8dacb72c8@xymon.invalid>
wrote:
Hi all

I have a host, running an HTTP server.
We need to monitor the host, 24x7, but the HTTP test goes down overnight
for regular updates, or refueling or something.  Ours not reason why....
I want to disable just the HTTP test after hours..
And before you say I should put a TIME entry in alerts.cfg, it's not that
simple.

Every morning, a remote co-worker, looks at the EvenLog Report, and
generates an "Incident Report" for the PHBs.
The alerts.cfg entry simply stops the alerts from going out. The test
still goes red, and shows up as an event.

You might think he could exclude the host in the appropriate exclude
field, but there are other aspects of the host that need to be monitored,
and included in the report.
We could exclude HTTP from the report, but we have other hosts running
HTTP services that must remain up, and need to be in the report too.

So how to disable a single HTTP test for a specific time period, on a
single server so it doesn't generate events?
Alternatively, leave a single host:test combo out of the EventLog report.

Regards
Vernon
--
"Accept the challenges so that you can feel the exhilaration of victory"
- General George Patton

-- 
"Accept the challenges so that you can feel the exhilaration of victory"
- General George Patton
list Torsten Richter · Fri, 30 May 2014 11:14:38 +0200 (CEST) ·
Hi Vernon,

what about the DOWNTIME parameter in hosts.cfg?
Just add

0.0.0.0 mywebserver # DOWNTIME:http:*:STARTTIME:STOPPTIME:"no need to go wild -
updating the internet"

where the star indicates every night but you can also use W for weekdays and
1,3,5 for Monday, Wednesday, Friday.
And so every night your http service goes down within the timeframe it would go
to blue with the statline "Planned Downtime" and the text you'll put into the
quotation marks.

BUT be aware if you already have a DOWNTIME statement for this host quotation
marks don't work. You'll have to remove them and replace every whitespace with
an underscore to work correctly.

HTH
Torsten
Vernon Everett <user-b3f8dacb72c8@xymon.invalid> hat am 30. Mai 2014 um 03:28
geschrieben:
quoted from Vernon Everett

 Hi all

 I have a host, running an HTTP server.
 We need to monitor the host, 24x7, but the HTTP test goes down overnight for
regular updates, or refueling or something.  Ours not reason why....
 I want to disable just the HTTP test after hours..
 And before you say I should put a TIME entry in alerts.cfg, it's not that
simple.

 Every morning, a remote co-worker, looks at the EvenLog Report, and generates
an "Incident Report" for the PHBs.
 The alerts.cfg entry simply stops the alerts from going out. The test still
goes red, and shows up as an event.

 You might think he could exclude the host in the appropriate exclude field,
but there are other aspects of the host that need to be monitored, and
included in the report.
 We could exclude HTTP from the report, but we have other hosts running HTTP
services that must remain up, and need to be in the report too.

 So how to disable a single HTTP test for a specific time period, on a single
server so it doesn't generate events?
 Alternatively, leave a single host:test combo out of the EventLog report.

 Regards
 Vernon
 --
 "Accept the challenges so that you can feel the exhilaration of victory"
 - General George Patton
 
list Paul Root · Fri, 30 May 2014 13:33:30 +0000 ·
You can schedule ahead of time to disable that test in the gui.

I don’t know, but I bet there is a way to schedule the disable from a cron script as well.
quoted from Vernon Everett

From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Vernon Everett
Sent: Thursday, May 29, 2014 8:28 PM
To: Xymon mailinglist
Subject: [Xymon] Disable Single Test after Hours

Hi all

I have a host, running an HTTP server.
We need to monitor the host, 24x7, but the HTTP test goes down overnight for regular updates, or refueling or something.  Ours not reason why....
I want to disable just the HTTP test after hours..
And before you say I should put a TIME entry in alerts.cfg, it's not that simple.

Every morning, a remote co-worker, looks at the EvenLog Report, and generates an "Incident Report" for the PHBs.
The alerts.cfg entry simply stops the alerts from going out. The test still goes red, and shows up as an event.

You might think he could exclude the host in the appropriate exclude field, but there are other aspects of the host that need to be monitored, and included in the report.
We could exclude HTTP from the report, but we have other hosts running HTTP services that must remain up, and need to be in the report too.

So how to disable a single HTTP test for a specific time period, on a single server so it doesn't generate events?
Alternatively, leave a single host:test combo out of the EventLog report.

Regards
Vernon
--
"Accept the challenges so that you can feel the exhilaration of victory"
- General George Patton