From joshuasocrates@gmail.com Wed Jun 24 08:23:57 2026 From: joshuasocrates@gmail.com To: xymon@xymon.com Subject: [Xymon] Custom Tests Date: Wed, 22 Jun 2016 15:54:03 -0700 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1516311084000728396==" --===============1516311084000728396== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hello again Xymon members, I'm very new to both Unix systems and Xymon, and I have to say learning Xymon on a Unix system is currently leaving me pretty stumped for a lot of things. Right now I am attempting to create a script that will read the past 20 minutes of a log file, and report an array of values back to Xymon. I am looking for the end result to have a "green face" if less than five zeroes are detected, a yellow from 5 - 10, and a red from 10 and up. I have the script written, but I am unsure how to implement it into Xymon and have the results printed out when I click on the face beneath the test column. Results to be viewed after clicking the test column are in the format as followed: TIMESTAMP DATANAME DATATYPE FREQUENCY TIMEFRAME With respective info included. So how would I go around formatting the end result of a test to look like this when you clicked for more information? Cheers all! Joshua H --===============1516311084000728396==-- From Scot.Kreienkamp@la-z-boy.com Wed Jun 24 08:23:57 2026 From: Scot.Kreienkamp@la-z-boy.com To: xymon@xymon.com Subject: [Xymon] Custom Tests Date: Thu, 23 Jun 2016 14:49:01 +0000 Message-ID: <17082AAFC33A934082836458CB53494370EB250A@MONDB03.na.lzb.hq> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7160902936108843908==" --===============7160902936108843908== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable I would suggest formatting your output as an HTML table. Here=E2=80=99s the = reporting part of a script I wrote from a custom test that expands on the bui= lt in CPU stats. The status line has to be exactly as written up to the colo= r. Everything after the color is up to you. $XYMON $XYMSRV "status $HOSTNAME.$TESTNAME $COLOR `date` $STATUS <= /tr>
$IDLECOLORDOT Idle time:$IDLEPERCENT%
$IOWAITCOLORDOT IO Wait time:$IOWAITPERCENT%
$USERPERCENTCOLORDOT User time:$USERPERCENT%
$NICEPERCENTCOLORDOT Nice time:$NICEPERCENT%
$SYSTEMPERCENTCOLORDOT System time:$SYSTEMPERCE= NT%
$IRQPERCENTCOLORDOT IRQ time:$IRQPERCENT%
$SOFTIRQPERCENTCOLORDOT Soft IRQ time:$SOFTIRQP= ERCENT%
" From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Joshua Hunt Sent: Wednesday, June 22, 2016 6:54 PM To: xymon at xymon.com Subject: [Xymon] Custom Tests Hello again Xymon members, I'm very new to both Unix systems and Xymon, and I have to say learning Xymon= on a Unix system is currently leaving me pretty stumped for a lot of things. Right now I am attempting to create a script that will read the past 20 minut= es of a log file, and report an array of values back to Xymon. I am looking f= or the end result to have a "green face" if less than five zeroes are detecte= d, a yellow from 5 - 10, and a red from 10 and up. I have the script written,= but I am unsure how to implement it into Xymon and have the results printed = out when I click on the face beneath the test column. Results to be viewed af= ter clicking the test column are in the format as followed: TIMESTAMP DATANAME DATATYPE FREQUENCY TIMEFRAME With respective info included. So how would I go around formatting the end re= sult of a test to look like this when you clicked for more information? Cheers all! Joshua H Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate One La-Z-Boy Drive | Monroe, Michigan 48162 | Office: 734-384-6403 | | Mobile= : 7349151444 | Email: Scot.Kreienkamp at la-z-boy.com This message is intended only for the individual or entity to which it is add= ressed. It may contain privileged, confidential information which is exempt = from disclosure under applicable laws. If you are not the intended recipient= , you are strictly prohibited from disseminating or distributing this informa= tion (other than to the intended recipient) or copying this information. If = you have received this communication in error, please notify us immediately b= y e-mail or by telephone at the above number. Thank you. --===============7160902936108843908==--