From: Mark Krenz <mkrenz@kiva.net>
Hello all:
I've setup a storage subtree for monitoring disk usage and wanted to
simplify the configuration by using the %inst% and %inst-name% variables.
I'm running cricket-0.70 and rrdtool-1.0.6 on a RedHat Linux 6.0 machine.
My main config tree sits in /home/monitor/cricket-config with the standard
Default file that comes with cricket. Under that I have a directory called
storage that contains a Defaults file with:
#------------------------------------------------------------
target --default--
target-type = diskhost
snmp-host = %host%
snmp-community = xxxxxxxx
OID diskUsed 1.3.6.1.2.1.25.2.3.1.6
OID diskTotal 1.3.6.1.2.1.25.2.3.1.5
datasource --default--
rrd-ds-type = GAUGE
rrd-heartbeat = 1800
rrd-min = undef
rrd-max = undef
datasource diskUsed
ds-source = snmp://%snmp%/diskUsed.%inst%
rrd-ds-type = GAUGE
datasource diskTotal
ds-source = snmp://%snmp%/diskTotal.%inst%
rrd-ds-type = GAUGE
targetType diskhost
ds = "diskUsed, diskTotal"
view = "Disk Space Used: diskUsed diskTotal"
#----------------------------------------------------------------
Then there is a directory named by the name of the host I am gathering data
from(host.kiva.net). In this directory is another Defaults file with:
#----------------------------------------------------------------
target --default--
inst = (1..4)
inst-name = "('/','/var','/usr','/home')"
host = host.kiva.net
#-----------------------------------------------------------------
This is so I can setup each host with it's own set of instances. I've tried
doing this by putting the inst and inst-name assignments in the Target file
for the host, but that didn't work either.
Then there is a Targets file in that sub-directory contains the template
target for each disk:
#-----------------------------------------------------------------
target --default--
collect = yes
target %inst%
display-name = "%inst-name%"
interface-name = "%inst-name%"
short-desc = "%inst-name% partition"
#-----------------------------------------------------------------
After I run the compiler, collector and collect-subtrees the 1.rrd through
4.rrd files get created in /home/monitor/cricket-data/storage/host.kiva.net/
each one a different file(checked it with md5sum) But the grapher.cgi program
doesn't parse the information right and what should be multiple links to
different graphs on the host.kiva.net page becomes one single link
('/','/var','/usr','/home') to a page that obviously doesn't exist.
In the webserver's error_log file I get this when I click on the link:
Use of uninitialized value at /home/monitor/www/grapher.cgi line 288.
Use of uninitialized value at /home/monitor/www/grapher.cgi line 1012.
Use of uninitialized value at /home/monitor/www/./grapher.cgi line 1012.
[14-Sep-1999 16:49:06*] No graph to make?
[14-Sep-1999 16:49:06*] Unable to create graph: can't make a graph without contents
[14-Sep-1999 16:49:06*] Could not open /tmp/cricket-cache/cricket-5beed0c7.png: No such file or directory
Use of uninitialized value at /home/monitor/www/./grapher.cgi line 1012.
[14-Sep-1999 16:49:06*] No graph to make?
[14-Sep-1999 16:49:06*] Unable to create graph: can't make a graph without contents
[14-Sep-1999 16:49:06*] Could not open /tmp/cricket-cache/cricket-4481b639.png: No such file or directory
I looked at the grapher.cgi code in the locations mentioned above, but am
lost and would like to get your opinion before diving into it.
I've tried doing this without the %inst-name% mapping and have the
same problem. This seems to me more like a problem with the grapher.cgi
program than with the collector programs. But likewise, it could be a
problem with the way I have the config tree setup. Can anyone help me
out or point me in the right direction.
Thanks for your help and sorry for posting all my files I just knew it would
be easier for all of you to see what I was doing that way. ;-)
Mark Krenz
Kiva Networking
--------------------------- ONElist Sponsor ----------------------------
ATTN ONELIST USERS: stay current on the latest activities,
programs, & features at ONElist by joining our member newsletter at
<a href=" http://www.onelist.com/subscribe/onelist_announce ">Click</a>
------------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Mon Mar 06 2000 - 19:01:02 PST