Apan display graphs with no data
Chan Chee Seng
gisccs at nus.edu.sg
Mon Aug 4 03:04:29 CEST 2003
Greetings,
I finally made apan to display graphs for server load! Now it graphs
real data.
The problem is with check_unix_load script. It uses the bourne shell
(#!/bin/sh) instead of bash shell (#!/bin/bash) in order top source
apan.defs. That is why there was no data output from check_unix_load.
In apan.defs, it defines an array variable which was not supported in
bourne shell.
The strange thing is generate.cgi also uses the bourne shell but it
works fine. Hm...
Hope this will help anyone encountering the same problem.
Regards,
Chan Chee Seng
gisccs at nus.edu.sg
-----Original Message-----
From: Chan Chee Seng
Sent: Wednesday, July 30, 2003 7:51 PM
To: 'nagios-users at lists.sourceforge.net'
Subject: Apan display graphs with no data
Greetings,
I have configured apan with nagios to graph server load and disk usage.
However the graphs for Server load contains no data, that is, a flat
line. The server name is mon
My apan.cfg looks like this:
mon;Server-load;/usr/local/nagios/rrd/mon_server_load.rrd;CPULOAD|SWAPUS
E;CPU-Load:LINE2 SWAP-Used:LINE2;Used resources;load/%;
The apan.debug contains this:
Wed Jul 30 19:37:55 SGT 2003 Args: load mon Server-load 1059565075 70 90
Inserting 'CPU-Load:SWAP-Used' , '1059565075::' into
/usr/local/nagios/rrd/mon_server_load.rrd
The apancgi.debug contains this:
/usr/local/rrdtool/bin/rrdtool graph - -s -31557600 -a PNG -v load/%
DEF:var0=/usr/local/nagios/rrd/mon_server_load.rrd:CPU-Load:AVERAGE
LINE2:var0#ff0000:CPU-Load:
DEF:var1=/usr/local/nagios/rrd/mon_server_load.rrd:SWAP-Used:AVERAGE
LINE2:var1#00ff00:SWAP-Used:
Please let me know if any additional information is needed. Thanks for
any help rendered.
Regards,
Chan Chee Seng
gisccs at nus.edu.sg
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
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