Xymon Mailing List Archive search

'Invalid timespec' in xymond.log

list John Thurston
Mon, 27 Nov 2023 10:23:54 -0900
Message-Id: <user-2710983ab568@xymon.invalid>

I'm seeing messages like this
Invalid timespec - expected 4 digits, got: '*:*'
Invalid timespec - expected 4 digits, got: '*'
Invalid timespec - expected 4 digits, got: '*:*'
Invalid timespec - expected 4 digits, got: '*'
pop up in my xymond.log. They've been there for ages, so this is nothing new. I've poked at them before, to no satisfaction.

I think this came out of the 'minutes' function in lib/timefunc.c

But what was the input which was passed through that function, to generate the error?

I have 'DOWNTIME' specifications like
DOWNTIME=60:*:*;*:1630:0800
But there are 21 of those in hosts.cfg, and I don't have that many complaints in the log.

Does anyone else have a suggestion where to look? or how to interactively run some parsing commands to tease out the source?

Maybe that function is used for more than parsing the configs? Could the source of the errors be from messages passed into the server from clients?

-- 
--
Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Department of Administration
State of Alaska