Jeremy Laidman wrote:
Thanks Martin and Andy. drraw seems like the business. It's everything that RRGrapher is and more!
If you add a title, header and stylesheet into drraw.conf, you can integrate drraw very nicely into Xymon. This might be worth posting to the list for others :-
The title used as header for the index web pages
$title = 'Xymon Metrics Graphs';
$header = '<BODY BGCOLOR="green" BACKGROUND="/xymon/gifs/bkg- green.gif" TEXT="#D8D8BF" LINK="#00FFAA" VLINK="#FFFF44"> <link rel="shortcut icon" href="/xymon/gifs/drraw/drraw.ico"> <link rel="stylesheet" href="/xymon/gifs/xymonbody.css"> <link rel="stylesheet" href="/xymon/menu/xymonmenu-blue.css"> ';
read in the menu from /apps/xymon/server/etc/xymonmenu.cfg
open(CFH, "</apps/xymon/server/etc/xymonmenu.cfg") or die "Can't open menu file, $!\n"; while(<CFH>) { $_ =~ s@\$XYMONSERVERWWWURL@/xymon@; $_ =~ s@\$XYMONSERVERCGIURL@/xymon-cgi@; $_ =~ s@\$XYMONSERVERSECURECGIURL@/xymon-seccgi@; $header .= $_; } close(CFH);
Style Sheet
$bgColor = '"#054205"'; $CSS = <<END; h1.title { font-family: Arial, Helvetica, sans-serif; font-size: 20px; border-bottom: 2px solid #C0C0C0; padding-top: 0.5em; padding-bottom: 0.5em; text-align: center; } h1.title a { font-family: Arial, Helvetica, sans-serif; color: #C0C0C0; } .padless { margin-top: 0pt; margin-bottom: 0pt; padding: 0pt; } .small { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px;
} .smallred { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; color: red; } .normal { font-family: Verdana, Arial, Helvetica, sans-serif; } .red { font-family: Verdana, Arial, Helvetica, sans-serif; color: red; } .simplyred { color: red; } tr.header { background-color: #296100; } .code { font-family: Courier; font-size: 10px; background-color: #296100; border: 2pt #C0C0C0 solid; padding: 5pt; } .error { font-weight: bold; background-color: red; border: 2pt #FF9900 solid; padding: 5pt; } .help { color: Maroon; background: #E0E0E0; border: 1pt black solid; padding: 5pt; } div.tag { border-top: 2px solid #C0C0C0; margin-top: 1.5em; padding-top: 0.5em; font-size: 75%; text-align: right; color: #C0C0C0; }
div.tag a { color: #FFFF44; } END
-- Andy