[Xymon] custom non green displays

Kevin Kelly scerydog at yahoo.com
Mon Oct 31 16:46:52 CET 2011


We are running xymon 4.2.3 on Solaris 10
 
I was wondering how to create a custom non-green page!
 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20111031/f51659b2/attachment.html>


More information about the Xymon mailing list