Graph is not appearing in Nagios monitoring...

Rudy Montemayor RMontemayor at huntoil.com
Thu Nov 13 17:02:31 CET 2003


Fredrik,

Not really, however several of the apan scripts use bash and I think the problem is how the list of colors in apan.defs and the array in generate.cgi interprets that list. I have not been able to make the list work; using single, double quotes, etc. on the "COLS=" in the apan.defs line. If I set COLS only equal to one color things work.

I noticed your name on several of the scripts, I'm hoping this is a good sign. Thanks for your help in advance.

Rudy
rmontemayor at huntoil.com

-----Original Message-----
From: Fredrik Wänglund [mailto:fredrik.wanglund at datavis.se]
Sent: Thursday, November 13, 2003 5:23 AM
To: Rudy Montemayor
Cc: Matthew Wilson; nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] Re: Graph is not appearing in Nagios
monitoring...


Are you using bash?

/FredrikW



Rudy Montemayor wrote:
> Matthew,
> 
> Thanks for your response. I executed the rrdtool graph <.....> command as the webuser and did get a bunch of funky characters scrolling by.
> 
> I did manage to at least get the graphs, x-y axis with no data plotted to appear by playing with the "COLS=" line in the apan.defs file. But now I get a lot of the following messages:
> 
> /usr/local/nagios/sbin/apan.cgi: line 34: #00ff00: command not found
> /usr/local/nagios/sbin/generate.cgi[16]: #00ff00:  not found.
> /usr/local/nagios/sbin/generate.cgi[16]: #00ff00:  not found.
> /usr/local/nagios/sbin/generate.cgi[16]: #00ff00:  not found.
> 
> and 
> 
> /usr/local/nagios/apan/apan.sh[11]: #00ff00:  not found.
> 
> Obviously the second color is being misinterpreted as some other value/command, etc.
> It may be like a previous email mentioned (Chan Chee Seng) about the sourcing of the apan.defs file. But I'm not sure how to get past this problem. Also I'm not sure that the rrd file is really being updated or added too:
> 
> -rwxrwxrwx   1 nagios     nagios      754348 Nov 11 14:32 HCISD1_Graph-Ping.rrd
> 
> Rudy
> rmontemayor at huntoil.com
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by: ApacheCon 2003,
> 16-19 November in Las Vegas. Learn firsthand the latest
> developments in Apache, PHP, Perl, XML, Java, MySQL,
> WebDAV, and more! http://www.apachecon.com/
> _______________________________________________
> 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



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
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