Xymon Mailing List Archive search

Would like to create a custom non-green screen

2 messages in this thread

list Scott Hanson · Mon, 31 Oct 2011 14:18:40 -0500 ·
We are running xymon 4.2.3 on Solaris 10 within a data center of about 1000
servers.

Would like to create a custom non-green screen that has only certain
servers on it.

I found a previous email about it, but it doesn't explain it fully.
Wondering what steps I am missing!

I have add this script to the cgi-bin directory, but not seeing any on the
web page.
#!/bin/sh

# Pick only hosts on the "windows" page
PAGE="windows"

# Get red ones as priority 1
xymon 127.0.0.1 \
"xymondboard color=red fields=hostname,testname page=$PAGE" | \
awk '{ print $1 "||||1|||" }' > /tmp/crit_$$.cfg
# Yellow ones get priority 2
xymon 127.0.0.1 \
"xymondboard color=yellow fields=hostname,testname page=$PAGE" | \
awk '{ print $1 "||||2|||" }' >> /tmp/crit_$$.cfg

# Build the webpage
. /usr/lib/xymon/server/etc/cgioptions.cfg
$XYMONHOME/bin/criticalview.cgi $CGI_CRITVIEW_OPTS \
--config=/tmp/crit_$$.cfg

rm -f /tmp/crit_$$.cfg
exit 0
Thanks
-Scott
list Henrik Størner · Thu, 10 Nov 2011 12:03:33 +0100 ·
Bit late reply, but anyway:

On Mon, 31 Oct 2011 14:18:40 -0500, Scott Hanson <user-0955a74fa62f@xymon.invalid>
quoted from Scott Hanson
wrote:
We are running xymon 4.2.3 on Solaris 10 within a data center of about
1000
servers.
[snip]
# Build the webpage
. /usr/lib/xymon/server/etc/cgioptions.cfg
$XYMONHOME/bin/criticalview.cgi $CGI_CRITVIEW_OPTS \
--config=/tmp/crit_$$.cfg
The reason it doesn't work is because 4.2.3 doesn't support the "--config"
option. You need 4.3.x for that (or hack the web/hobbit-criticalview.c code
to support that option).


Regards,
Henrik