From tom@4schmidts.com Wed Jun 24 08:25:20 2026 From: tom@4schmidts.com To: xymon@xymon.com Subject: [Xymon] How to retrieve the global state of Xymon? Date: Fri, 16 Feb 2024 09:09:46 -0700 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4801051894957833714==" --===============4801051894957833714== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable You could simply look for the '' line in the ~xymon/server/www/nongreen.html or xymon.html file. The color shown for the "class" will match the overall state. A simple script could be written to run on your xymon server to gather this and send it to your monitor. Tom On Fri, Feb 16, 2024 at 8:16?AM Wim Nelis via Xymon wrot= e: > > > > ---------- Forwarded message ---------- > From: Wim Nelis > To: xymon at xymon.com > Cc: > Bcc: > Date: Fri, 16 Feb 2024 15:48:14 +0100 > Subject: How to retrieve the global state of Xymon? > > Hello, > > > my current project is (trying to) display the global state of Xymon, that > is the state (colour) shown in the main view. A sort of a traffic light is > used, which is controlled by an ESP8266 micro controller running > microPython. > > > This state must be determined from the states of all the tests, which can > be retrieved using the 'xymondboard' command. As far as I know, there is no > other way of retrieving the global state of Xymon. Is this correct? > > > The NOPROP* tags seem complicate things. One can retrieve the tag(s) per > host, using f.i. 'xymondboard fields=3D...,XMH_NOPROPRED', but the tag is > shown, not the result of combining it with the command line parameters of > xymongen. Is there another way of retrieving this information? > > > Kind regards, > > Wim Nelis. > > > > > > ---------- Forwarded message ---------- > From: Wim Nelis via Xymon > To: xymon at xymon.com > Cc: > Bcc: > Date: Fri, 16 Feb 2024 15:48:14 +0100 > Subject: [Xymon] How to retrieve the global state of Xymon? > _______________________________________________ > Xymon mailing list > Xymon at xymon.com > http://lists.xymon.com/mailman/listinfo/xymon > --===============4801051894957833714==-- From jeremy@laidman.org Wed Jun 24 08:25:20 2026 From: jeremy@laidman.org To: xymon@xymon.com Subject: [Xymon] How to retrieve the global state of Xymon? Date: Sun, 18 Feb 2024 15:30:29 +1100 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5641282471063071648==" --===============5641282471063071648== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit It's also possible to get the colour from the tag in the <HEAD> section. The colour is shown immediately after <TITLE>. This is how the old BBTray tool finds the colour to display in the Windows system tray. I'd recommend using Tom's technique, but there's a chance your ESP-based client might (for some reason?) find it easier to parse <TITLE> rather than <BODY>. In case it wasn't clear, the overall Xymon status is reflected in the colour of (and tagged within) the main page ("/index.html" or "/") as well as the non-green page ("/nongreen.html"). If you only want the colour, then fetching one of these pages and parsing out the colour from the TITLE or BODY tags is going to be the simplest way. J On Sat, 17 Feb 2024 at 03:10, Tom Schmidt <tom at 4schmidts.com> wrote: > You could simply look for the '<BODY class="green">' line in the > ~xymon/server/www/nongreen.html or xymon.html file. The color shown for > the "class" will match the overall state. A simple script could be written > to run on your xymon server to gather this and send it to your monitor. > > Tom > > On Fri, Feb 16, 2024 at 8:16?AM Wim Nelis via Xymon <xymon at xymon.com> > wrote: > >> >> >> >> ---------- Forwarded message ---------- >> From: Wim Nelis <wim.nelis at ziggo.nl> >> To: xymon at xymon.com >> Cc: >> Bcc: >> Date: Fri, 16 Feb 2024 15:48:14 +0100 >> Subject: How to retrieve the global state of Xymon? >> >> Hello, >> >> >> my current project is (trying to) display the global state of Xymon, that >> is the state (colour) shown in the main view. A sort of a traffic light is >> used, which is controlled by an ESP8266 micro controller running >> microPython. >> >> >> This state must be determined from the states of all the tests, which can >> be retrieved using the 'xymondboard' command. As far as I know, there is no >> other way of retrieving the global state of Xymon. Is this correct? >> >> >> The NOPROP* tags seem complicate things. One can retrieve the tag(s) per >> host, using f.i. 'xymondboard fields=...,XMH_NOPROPRED', but the tag is >> shown, not the result of combining it with the command line parameters of >> xymongen. Is there another way of retrieving this information? >> >> >> Kind regards, >> >> Wim Nelis. >> >> >> >> >> >> ---------- Forwarded message ---------- >> From: Wim Nelis via Xymon <xymon at xymon.com> >> To: xymon at xymon.com >> Cc: >> Bcc: >> Date: Fri, 16 Feb 2024 15:48:14 +0100 >> Subject: [Xymon] How to retrieve the global state of Xymon? >> _______________________________________________ >> Xymon mailing list >> Xymon at xymon.com >> http://lists.xymon.com/mailman/listinfo/xymon >> > _______________________________________________ > Xymon mailing list > Xymon at xymon.com > http://lists.xymon.com/mailman/listinfo/xymon > --===============5641282471063071648==-- From wim.nelis@ziggo.nl Wed Jun 24 08:25:20 2026 From: wim.nelis@ziggo.nl To: xymon@xymon.com Subject: [Xymon] How to retrieve the global state of Xymon? Date: Sun, 18 Feb 2024 11:56:33 +0100 Message-ID: <ff0674a8-fc14-4e69-bf06-a26cfe34c4d0@ziggo.nl> In-Reply-To: <CACO=ejw6C1qqOBnxnvoV8Zo-dr13y82fjb0qEcgx2Yt18kt_Xw@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0178250829866251188==" --===============0178250829866251188== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable An HTML attachment was scrubbed... URL: <http://lists.xymon.com/pipermail/xymon/attachments/20240218/477f8aff/at= tachment.htm> --===============0178250829866251188==--