Xymon Mailing List Archive search

Custom tests

4 messages in this thread

list Matti Klock · Thu, 25 Aug 2005 12:28:44 -0400 ·
Hello --

I recently switched from Nagios to Hobbit. So far I am MUCH happier.

My problem: I have some custom Nagios plugins that I need to port to
Hobbit (scripts that test SMTP error codes under certain conditions, for
example). I've searched the list archives and the manpages with no luck.
Big Brother has bb-exttab, but Hobbit seems to ignore that.

Should the scripts be run directly from hobbitlaunch? Are there any
guidelines for the output format they should use?

I apologize if I've missed something obvious. Thank you!

Matti
list Mario Andre · Fri, 26 Aug 2005 10:02:56 -0300 ·
Matti,

To run the externals tests you have to use the client, the bb-client
or the hobbit-client. Put the scripts in the ext folder and put the
::script.sh;300 line in the bb-bbexttab.

Then the hobbit Server will print your tests. You can run a client in the same machine your Hobbit Server is installed.

rgds,
Mario.
quoted from Matti Klock

On 8/25/05, Matti Klock <user-cec928ff83f7@xymon.invalid> wrote:
Hello --

I recently switched from Nagios to Hobbit. So far I am MUCH happier.

My problem: I have some custom Nagios plugins that I need to port to
Hobbit (scripts that test SMTP error codes under certain conditions, for
example). I've searched the list archives and the manpages with no luck.
Big Brother has bb-exttab, but Hobbit seems to ignore that.

Should the scripts be run directly from hobbitlaunch? Are there any
guidelines for the output format they should use?

I apologize if I've missed something obvious. Thank you!

Matti

list Joshua Hunt · Wed, 22 Jun 2016 15:54:03 -0700 ·
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
list Scot Kreienkamp · Thu, 23 Jun 2016 14:49:01 +0000 ·
I would suggest formatting your output as an HTML table.  Here’s the reporting part of a script I wrote from a custom test that expands on the built in CPU stats.  The status line has to be exactly as written up to the color.  Everything after the color is up to you.

$XYMON $XYMSRV "status $HOSTNAME.$TESTNAME $COLOR `date` $STATUS

<table>
<tr><td>$IDLECOLORDOT</td><td> Idle time&#58;</td><td>$IDLEPERCENT%</td></tr>
<tr><td>$IOWAITCOLORDOT</td><td> IO Wait time&#58;</td><td>$IOWAITPERCENT%</td></tr>
<tr><td>$USERPERCENTCOLORDOT</td><td> User time&#58;</td><td>$USERPERCENT%</td></tr>
<tr><td>$NICEPERCENTCOLORDOT</td><td> Nice time&#58;</td><td>$NICEPERCENT%</td></tr>
<tr><td>$SYSTEMPERCENTCOLORDOT</td><td> System time&#58;</td><td>$SYSTEMPERCENT%</td></tr>
<tr><td>$IRQPERCENTCOLORDOT</td><td> IRQ time&#58;</td><td>$IRQPERCENT%</td></tr>
<tr><td>$SOFTIRQPERCENTCOLORDOT</td><td> Soft IRQ time&#58;</td><td>$SOFTIRQPERCENT%</td></tr>
</table>
quoted from Joshua Hunt

"


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 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

Scot Kreienkamp  | Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive | Monroe, Michigan 48162 | Office: XXX-XXX-XXXX | | Mobile: XXXXXXXXXX | Email: user-9678697f1438@xymon.invalid

This message is intended only for the individual or entity to which it is addressed.  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 information (other than to the intended recipient) or copying this information.  If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.