Xymon Mailing List Archive search

debbuging DOWNTIME

7 messages in this thread

list Olivier Audry · Tue, 28 Feb 2012 14:47:05 +0100 (CET) ·
hello

how can I know witch host config line is wrong when I got this in the logs ?

Latest error messages:
Bad timespec (missing colon or wrong weekdays): 0
Invalid timespec - expected 4 digits, got: 'maintenance'
Invalid timespec - expected 4 digits, got: 'maintenance'
Invalid timespec - expected 4 digits, got: 'maintenance'
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Invalid timespec - expected 4 digits, got: 'maintenance'
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Invalid timespec - expected 4 digits, got: 'maintenance'
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0

thx for your help

oau
list Olivier Audry · Tue, 28 Feb 2012 15:25:59 +0100 (CET) ·
hello

how can I know witch host config line is wrong when I got this in the logs ?

Latest error messages:
Bad timespec (missing colon or wrong weekdays): 0
Invalid timespec - expected 4 digits, got: 'maintenance'
Invalid timespec - expected 4 digits, got: 'maintenance'
Invalid timespec - expected 4 digits, got: 'maintenance'
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Invalid timespec - expected 4 digits, got: 'maintenance'
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Invalid timespec - expected 4 digits, got: 'maintenance'
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0

thx for your help

oau
list Paul Root · Tue, 28 Feb 2012 08:33:42 -0600 ·
Well, I would start by finding out what config file you have the word 'maintenance' in.

Paul Root    - Senior Engineer
Managed Services Systems - CenturyLink

-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On
Behalf Of Olivier AUDRY
Sent: Tuesday, February 28, 2012 8:26 AM
To: xymon at xymon.com
Subject: [Xymon] debbuging DOWNTIME
quoted from Olivier Audry

hello

how can I know witch host config line is wrong when I got this in the
logs ?

Latest error messages:
Bad timespec (missing colon or wrong weekdays): 0
Invalid timespec - expected 4 digits, got: 'maintenance'
Invalid timespec - expected 4 digits, got: 'maintenance'
Invalid timespec - expected 4 digits, got: 'maintenance'
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Invalid timespec - expected 4 digits, got: 'maintenance'
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Invalid timespec - expected 4 digits, got: 'maintenance'
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0

thx for your help

oau
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 Olivier Audry · Tue, 28 Feb 2012 15:38:04 +0100 (CET) ·
hello

unfortunately

xymoncfg | grep maintenance | wc -l
2401

and everything is in one file because the config come from our cmdb.

oau

----- Mail original -----
quoted from Paul Root
De: "Paul Root" <user-76fdb6883669@xymon.invalid>
À: "Olivier AUDRY" <user-0dc286edb094@xymon.invalid>, xymon at xymon.com
Envoyé: Mardi 28 Février 2012 15:33:42
Objet: RE: [Xymon] debbuging DOWNTIME

Well, I would start by finding out what config file you have the word 'maintenance' in.

Paul Root    - Senior Engineer
Managed Services Systems - CenturyLink

-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On
Behalf Of Olivier AUDRY
Sent: Tuesday, February 28, 2012 8:26 AM
To: xymon at xymon.com
Subject: [Xymon] debbuging DOWNTIME

hello

how can I know witch host config line is wrong when I got this in the
logs ?

Latest error messages:
Bad timespec (missing colon or wrong weekdays): 0
Invalid timespec - expected 4 digits, got: 'maintenance'
Invalid timespec - expected 4 digits, got: 'maintenance'
Invalid timespec - expected 4 digits, got: 'maintenance'
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Invalid timespec - expected 4 digits, got: 'maintenance'
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Invalid timespec - expected 4 digits, got: 'maintenance'
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0

thx for your help

oau
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 David W David Gore · Tue, 28 Feb 2012 14:06:02 -0500 ·
Either hosts.cfg or alerts.cfg or both.  Config file names may be different depending on your version of Xymon.

~David

Ps. Try grepping for 'downtime', grep -i downtime 
quoted from Olivier Audry

-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Olivier AUDRY
Sent: Tuesday, February 28, 2012 09:26
To: xymon at xymon.com
Subject: [Xymon] debbuging DOWNTIME

hello

how can I know witch host config line is wrong when I got this in the logs ?

Latest error messages:
Bad timespec (missing colon or wrong weekdays): 0
Invalid timespec - expected 4 digits, got: 'maintenance'
Invalid timespec - expected 4 digits, got: 'maintenance'
Invalid timespec - expected 4 digits, got: 'maintenance'
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Invalid timespec - expected 4 digits, got: 'maintenance'
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Invalid timespec - expected 4 digits, got: 'maintenance'
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0

thx for your help

oau
list Steven Carr · Wed, 29 Feb 2012 08:20:27 +0000 ·
The format for DOWNTIME is the following:
DOWNTIME=day:starttime:endtime[,day:starttime:endtime]
DOWNTIME=columns:day:starttime:endtime:cause[,columns:day:starttime:endtime:cause]So
search for lines which don't match those formats. The error would seem to
suggest that instead of one of the attributes it got the word maintenance
so you could search for "=maintenance" or ":maintenance" to see where the
value is.

If you have dynamically generated your config file from a CMDB then the
template you have used for the line has gone wrong somewhere, I'd suggest
debugging that code to find out why it has corrupted an entry.

Steve
quoted from David W David Gore


On 28 February 2012 19:06, Gore, David W (David) <user-368fd67cc6bd@xymon.invalid>wrote:
Either hosts.cfg or alerts.cfg or both.  Config file names may be
different depending on your version of Xymon.

~David

Ps. Try grepping for 'downtime', grep -i downtime

-----Original Message-----
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf
Of Olivier AUDRY
Sent: Tuesday, February 28, 2012 09:26
To: xymon at xymon.com
Subject: [Xymon] debbuging DOWNTIME

hello

how can I know witch host config line is wrong when I got this in the logs
?

Latest error messages:
Bad timespec (missing colon or wrong weekdays): 0
Invalid timespec - expected 4 digits, got: 'maintenance'
Invalid timespec - expected 4 digits, got: 'maintenance'
Invalid timespec - expected 4 digits, got: 'maintenance'
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Invalid timespec - expected 4 digits, got: 'maintenance'
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Invalid timespec - expected 4 digits, got: 'maintenance'
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0

thx for your help

oau

list Ken Connell · Wed, 29 Feb 2012 13:22:09 +0000 ·
I still investigating this, so I'm not entirely sure if its a bug or just me, but....

I too had a hard time getting the DOWNTIME tag to work (adding it to already existing hosts). 

I finally got it working by deleting the host entry out of the hosts.cfg file, deleting history, then re-adding the host with the DOWNTIME tag and it was all good.


Ken Connell
Intermediate Network Engineer
Computer & Communication Services
Ryerson University
XXX Victoria St
RM AB50
Toronto, Ont
M5B 2K3
XXX-XXX-XXXX x6709


-----Original Message-----
From: Olivier AUDRY <user-3327dc1e85bd@xymon.invalid>
Sender: xymon-bounces at xymon.com
Date: Tue, 28 Feb 2012 14:47:05 
quoted from Steven Carr
To: <xymon at xymon.com>
Subject: [Xymon] debbuging DOWNTIME

hello

how can I know witch host config line is wrong when I got this in the logs ?

Latest error messages:
Bad timespec (missing colon or wrong weekdays): 0
Invalid timespec - expected 4 digits, got: 'maintenance'
Invalid timespec - expected 4 digits, got: 'maintenance'
Invalid timespec - expected 4 digits, got: 'maintenance'
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Invalid timespec - expected 4 digits, got: 'maintenance'
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0
Invalid timespec - expected 4 digits, got: 'maintenance'
Bad timespec (missing colon or wrong weekdays): 0
Bad timespec (missing colon or wrong weekdays): 0

thx for your help

oau