Nagiosgraph and colorscheme
Peter Ringe
Peter.Ringe at web.de
Tue Nov 7 20:34:46 CET 2006
Hi Lynn
look for the following code in show.cgi. It calculates a hash based on
colorsheme and the name of the parameter (e.g lospct or rta for
check_ping). These names are defined in the map file and used in the rrd
database.
There is no standard way to define your own colors, but of course you
could use an own array 'colorindex'. Just count the number of
parameters displayed in one graph and use $colorindex[$par_number]
instead of hashcolor($v); Just three lines of code ...
hope that helps,
Peter
Folkers, Lynn schrieb:
>
> I am running Nagios 2.0 with nagiosgraph v 1.1.1.1. I see that there
> is an option to use color schemes 1 through 8 in the nagiosgraph.conf
> file. But is there a way to change the graph colors besides a general
> color scheme? If there is not a way then is there some documentation
> on what the 1 through 8 color schemes are? I currently have my color
> scheme set to 4 and the graph color lines are very similar in color
> which makes it hard to read..
>
> # setting Colorscheme
> colorscheme = 4
>
> Thanks ...
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ------------------------------------------------------------------------
>
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list