RRDtool - rrd file problem

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
User avatar
rock_manlove
Cacti User
Posts: 56
Joined: Mon Oct 02, 2006 8:05 am
Location: NJ, USA

RRDtool - rrd file problem

Post by rock_manlove »

Rrd files are not being created.
Rra path is proper with permissions.
Previous rrdtool was 1.0.46, I upgraded it to solve the same problem. New version is 1.2.9, and new path is mentioned is cacti. In data source it shows the rrd file but there is no such file in rra path.

In previous attempt of installation, rra files were been created but with wrong sequence number .
If a new graph is made then in data source it shows rra file <path_rra>/device_traffic_in_10.rra
But actual file created for the graph in rra folder is with different number.. <path_rra>/device_traffic_in_13.rra etc.

Why is this mismatch?


Here is the graph debug -
/usr/local/rrdtool-1.2.9/bin/rrdtool: /usr/lib/libpng12.so.0: no version information available (required by /usr/local/rrdtool-1.2.9/lib/librrd.so.2)

Thanks
Last edited by rock_manlove on Thu Apr 12, 2007 7:06 am, edited 3 times in total.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

can you run that command :

Code: Select all

$ ldd /usr/local/rrdtool-1.2.9/bin/rrdtool
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
rock_manlove
Cacti User
Posts: 56
Joined: Mon Oct 02, 2006 8:05 am
Location: NJ, USA

Post by rock_manlove »

Hi,

These are dependencies, all libraries are present. This is SuSE ES9.

cacti:/usr/lib # ldd /usr/local/rrdtool-1.2.9/bin/rrdtool
/usr/local/rrdtool-1.2.9/bin/rrdtool: /usr/lib/libpng12.so.0: no version information available (required by /usr/local/rrdtool-1.2.9/lib/librrd.so.2)
linux-gate.so.1 => (0xffffe000)
librrd.so.2 => /usr/local/rrdtool-1.2.9/lib/librrd.so.2 (0x40018000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40073000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0x400dd000)
libz.so.1 => /lib/libz.so.1 (0x4010b000)
libart_lgpl_2.so.2 => /usr/lib/libart_lgpl_2.so.2 (0x4011d000)
libm.so.6 => /lib/tls/libm.so.6 (0x40133000)
libc.so.6 => /lib/tls/libc.so.6 (0x40155000)
/lib/ld-linux.so.2 (0x40000000)



Thanks
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Are you sure the poller is running ?

Try to run it once by hand :

Code: Select all

$ php poller.php
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
rock_manlove
Cacti User
Posts: 56
Joined: Mon Oct 02, 2006 8:05 am
Location: NJ, USA

Post by rock_manlove »

Its running...

*/1 * * * * cacti php /var/www/html/cacti/poller.php > /dev/null 2>&1
Last edited by rock_manlove on Thu Apr 12, 2007 8:46 am, edited 1 time in total.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Do you have anything in log/cacti.log ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
rock_manlove
Cacti User
Posts: 56
Joined: Mon Oct 02, 2006 8:05 am
Location: NJ, USA

Post by rock_manlove »

OK, now the rrd file is there in rra path.
but no graph on the page.

log file says this -
04/12/2007 07:52:01 AM - CMDPHP: Poller[0] WARNING: sockets support not enabled in PHP, falling back to SNMP ping
04/12/2007 07:52:02 AM - SYSTEM STATS: Time:1.0234 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:4 RRDsProcessed:2
Last edited by rock_manlove on Thu Apr 12, 2007 8:46 am, edited 1 time in total.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Can you run the poller once at DEBUG level, and post the log ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
rock_manlove
Cacti User
Posts: 56
Joined: Mon Oct 02, 2006 8:05 am
Location: NJ, USA

Post by rock_manlove »

The log file is huge, I am not able to attach.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

I can't see any error in your log file :lol:
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
rock_manlove
Cacti User
Posts: 56
Joined: Mon Oct 02, 2006 8:05 am
Location: NJ, USA

Post by rock_manlove »

I am not able to attach the log!
User avatar
rock_manlove
Cacti User
Posts: 56
Joined: Mon Oct 02, 2006 8:05 am
Location: NJ, USA

Post by rock_manlove »

Hi,

Please check this debug.

Thanks for helping!
Attachments
cactidebug.txt
(215.06 KiB) Downloaded 322 times
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Did you apply the multiple polling interval patch ?

Because it seems you're polling every minute :

Code: Select all

04/12/2007 08:43:02 AM - SYSTEM STATS: Time:1.0294 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:4 RRDsProcessed:2
04/12/2007 08:44:02 AM - SYSTEM STATS: Time:1.0282 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:4 RRDsProcessed:2
04/12/2007 08:45:02 AM - SYSTEM STATS: Time:1.0237 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:4 RRDsProcessed:2
04/12/2007 08:46:02 AM - SYSTEM STATS: Time:1.0236 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:4 RRDsProcessed:2
Or maybe it's a crontab issue ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
rock_manlove
Cacti User
Posts: 56
Joined: Mon Oct 02, 2006 8:05 am
Location: NJ, USA

Post by rock_manlove »

Yes, I am using 1 min polling patch.
Right now my graphs are working fine, what I did is modified data and graph templates instead of duplicating them for 1 min polling. It solved the rrd file sequence mismatch.

Thanks a lot for help!
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests