• Currently using VMware at work? We want to hear from you.

    Thinking of making a switch from VMware? We'd love to hear your thoughts and feedback about which hypervisor you have been researching or already using. Click here to vote and share your thoughts! You can vote HERE!

problem with reporting interface utilization, script /root/graph.py

Status
Not open for further replies.

HasseB

Dabbler
Joined
Aug 31, 2011
Messages
12
have installed "FreeBSD 8.2-RELEASE-p1" on an compaq dc7700 and it seems to be ok, but when i look into the 'System / Reporting' tab it only shows CPU, Memory, Process, SWAP and not the interface utilazation.

Connected me to the box via SSH and looked around and found the script (/root/graph.py) that makes all the *.png files. From that i figured out that the data for the graphs are stored/collected in the /var/db/collectd/rrd/localhost/directory and there is a directioy called 'interface' with 3 files. These 3 files are updated every 5 minutes

NAS58# ls -lb /var/db/collectd/rrd/localhost/
total 18
drwxr-xr-x 2 root wheel 512 Aug 31 14:57 cpu-0
drwxr-xr-x 2 root wheel 512 Aug 31 14:57 cpu-1
drwxr-xr-x 2 root wheel 512 Aug 31 15:30 df
drwxr-xr-x 2 root wheel 512 Aug 31 14:57 interface
drwxr-xr-x 2 root wheel 512 Aug 31 14:57 load
drwxr-xr-x 2 root wheel 512 Aug 31 14:57 memory
drwxr-xr-x 2 root wheel 512 Aug 31 14:57 processes
drwxr-xr-x 2 root wheel 512 Aug 31 14:57 swap
drwxr-xr-x 2 root wheel 512 Aug 31 14:57 uptime


NAS58# ls -lb /var/db/collectd/rrd/localhost/interface/
total 960
-rw-r--r-- 1 root wheel 294972 Sep 1 03:38 if_errors-em0.rrd
-rw-r--r-- 1 root wheel 294972 Sep 1 03:36 if_octets-em0.rrd
-rw-r--r-- 1 root wheel 294972 Sep 1 03:36 if_packets-em0.rrd

The problem is that it seems that the script dont reads these files and create the interface.png files, it creates all the other files.. example

NAS58# ls -lb /var/db/graphs/hourly/
total 92
-rw-r--r-- 1 root wheel 22070 Sep 1 03:35 cpu-1h.png
-rw-r--r-- 1 root wheel 10885 Sep 1 03:35 df-vol1-1h.png
-rw-r--r-- 1 root wheel 16197 Sep 1 03:35 load-1h.png
-rw-r--r-- 1 root wheel 15507 Sep 1 03:35 memory-1h.png
-rw-r--r-- 1 root wheel 15479 Sep 1 03:35 processes-1h.png
-rw-r--r-- 1 root wheel 10002 Sep 1 03:35 swap-1h.png

does someone know how the script "/root/graph.py" works.

My interface is labeld as "em0" and I gave it the same name in the 'interface configuration'.

txs /HasseB
 
Status
Not open for further replies.
Top