Hi Christian,
one of the main features of Xymon is the unlimited history. And the most basic test is conn, so the first line in every conn history file will give you the starting date for every server. I just tested a script snippet which will extract and sort all these dates:
cd $XYMONHISTDIR
for f in ls *.conn;do
echo -n "$f :";head -1 $f;
echo;
done |
awk '!/^$/{
host=$1;
esecs=$8;
date=strftime("%d.%m.%Y %H:%m:%d.%S",esecs);
gsub(/\.conn/,"",host);
printf("host: %10s, first ping: %s ( %s )\n",host,date,esecs)}'
|
sort -rk 8
Hope that helps. (And for those reasons I never used trimhistory, and I have environments with thousands of devices and years of uptime... :-) )
Norbert
Am Fr., 14. März 2025 um 14:45 Uhr schrieb Tom Schmidt <tom@4schmidts.com>:
Christian, Perhaps the closest you might get would be to look for the oldest history log for each device on your Xymon server. Something like this:
[xymon@xymon1 ~]$ ls -t data/histlogs/HP-OfficejetPro7740/conn/ | tail -1 Tue_May_18_15:24:24_2021
So I first started monitoring the conn test of my HP-OfficejetPro7740 printer on May 18, 2021.
Tom
On Fri, Mar 14, 2025 at 7:02 AM Becker Christian via Xymon < xymon@xymon.com> wrote:
Hi to the list,
i’m working with xymon since 2008 and i thought i can help myself out whereever it’s necessary.
Now we are in the situation that we need kind of a query to show the first occurance of a system configured in xymon (currently 956 monitored devices and services).
Looking through the man-pages i didn’t find any helpful hint, neither using command-line nor using any xymon report tool.
Due to the fact that we have different types of configured systems (linux servers configured as xymon client, linux servers that are pulled using xymon rclient, windows systems running either BBWin or PowerShell client) it’s hard to find a way to get such a list.
Looking through every single monitored system, then looking in any graph history to see if this is beginning within the last 576 days, this is not an option for us.
Further i’m aware of the fact, that -for many systems- this begins with the xymon server’s rollout.
Does anyone of you have an idea or a hint?
Regards from Germany
Christian
Xymon mailing list -- xymon@xymon.com To unsubscribe send an email to xymon-leave@xymon.com
Xymon mailing list -- xymon@xymon.com To unsubscribe send an email to xymon-leave@xymon.com