nagiosgraph render issue

Jorg.Schulz at systeam.se Jorg.Schulz at systeam.se
Thu Mar 1 11:59:35 CET 2007



 

 

On Thu, Mar 01, 2007 at 10:39:34AM +0100, Jorg.Schulz at systeam.se wrote:
> Hej Kyle

Hi Jorg, thanks for the reply :-)

> What version of rrdtool you use
> What version of Nagios 

nagios 2.4 and rrdtool 1.0.49-1
> Hm, your rrdtool is a little bit old RRDtool 1.2.18 is the what i use 
 


 
> Nagios.cfg ? 
> 
> process_performance_data=1
> service_perfdata_file=/var/log/nagios/perfdata.log
>
service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDES
C$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
> service_perfdata_file_mode=a
> service_perfdata_file_processing_interval=30
> service_perfdata_file_processing_command=process-service-perfdata

yes, exactly like this


> and this in command.cfg

yup

 
>      define command{
>        command_name    process-service-perfdata
>        command_line  /usr/local/nagios/nagiosgraph/insert.pl
> 
> 
> What happened when you do a tail -f /pathtothe/nagiosgraph.log ? Output
?
> There you can see whats happened like
> ....
> "CGI info: RRDs::graph - -a PNG --start -34560000 -w 350 -h 100 -l 0 -u
> 100
> Tue Feb 28 08:09:42 2006 CGI error: RRDs::graph ERR can't make a graph
> without contents" 

no, the graphics get rendered, but output is b0rked... don't really know
why
the rrd DB is properly populated
> can you create the graph by hand (see my example)
/usr/bin/rrdtool graph - --start 1170645140 --end 1170659540 --height 100
--width 500 --imgformat PNG --vertical-label "" --title "MailQueue"
--lower=0
DEF:var1=/usr/local/nagios/share/perfdata/NAGIOS/MAILQ.rrd:1:AVERAGE
AREA:var1#EACC00:"users " LINE1:var1#000000:"" GPRINT:var1:LAST:"%3.4lf %s
LAST " GPRINT:var1:MAX:"%3.4lf %s MAX " GPRINT:var1:AVERAGE:"%3.4lf %s
AVERAGE \n" HRULE:75#FFFF00:"Warning on 75\n" HRULE:150#FF0000:"Critical
on 150\n" COMMENT:"Default Template\r" COMMENT:"Check Command
check_local_users\r"

/jörg

-- 
Hoy es Domingo, 1 de Enero de 1984.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2007-02-27
15:24
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.4/705 - Release Date: 2007-02-27
15:24
 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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