RRD's won't populate after server move :S

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

sourcecode
Posts: 14
Joined: Tue May 16, 2006 4:59 am

RRD's won't populate after server move :S

Post by sourcecode »

hey guys. i just did a server move for cacti. I imported all the rrd's, dumped and imported the mysql db, and added the poller.php into crontab.
I just don't understand why I can't get cacti to populate and show new data. (although the old data,already in the rrd, did show up)
any ideas?
Rick
IT.pt Tech
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please try my link on "NaN Debugging", see signature
Reinhard
sourcecode
Posts: 14
Joined: Tue May 16, 2006 4:59 am

Post by sourcecode »

i've read and re read today ur NaN howto's and can't find the problem. what it seems to me is just that it doesn't update the rrd's.
damn frustrating :-?

rick
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

So please lead me through the debugging steps and share your results, step by step
Reinhard
sourcecode
Posts: 14
Joined: Tue May 16, 2006 4:59 am

Post by sourcecode »

i did a php cmd.php to check the output, hope this helps in someway :S
sourcecode
Posts: 14
Joined: Tue May 16, 2006 4:59 am

Post by sourcecode »

here's the file
Attachments
cmd.log.txt
(14.13 KiB) Downloaded 1595 times
sourcecode
Posts: 14
Joined: Tue May 16, 2006 4:59 am

Post by sourcecode »

i think i saw one problema already. the poller is looking for the scripts in the wrong directory. how could i change the <path_rra> ?
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

IMO it's in the settings table, something like this :

Code: Select all

path_webroot   /var/www/html/cacti
[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]
sourcecode
Posts: 14
Joined: Tue May 16, 2006 4:59 am

Post by sourcecode »

/var/www/artemis/root/admin/cacti/scripts/ this is wrong and should be /usr/share/cacti/site/scripts/.
how could i change this?
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'm using phpmyadmin to change things like that.
[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
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

sourcecode wrote:i think i saw one problema already. the poller is looking for the scripts in the wrong directory. how could i change the <path_rra> ?
<path_rra> is deduced from cacti's installation path, appended is "/rra". There's no settings for that, it's pure code. But why are you asking for <path_rra>, when your scripts path is wrong? <path_rra> points to the rrd file's directory.
Script paths are given under Data Input Method, per script. You may use <path_cacti> as a replacement for cacti's installation path. If you change anything here, please php reuild_poller_cache.php
Reinhard
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

lvm wrote:<path_rra> is deduced from cacti's installation path, appended is "/rra". There's no settings for that, it's pure code. But why are you asking for <path_rra>, when your scripts path is wrong? <path_rra> points to the rrd file's directory.
Hi Reinhard

if you move your Cacti installation from /path1 on one server to /path2 on another server, does this setting gets modified by Cacti ?
[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]
sourcecode
Posts: 14
Joined: Tue May 16, 2006 4:59 am

Post by sourcecode »

thats my problem here. i changed it from path1 on server A to path2 on server B and when i passed the rrd's and etc imho they're trying to find the data in path1 of server A and not where it actually is (path2 on server B)
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

fmangeant wrote:
lvm wrote:<path_rra> is deduced from cacti's installation path, appended is "/rra". There's no settings for that, it's pure code. But why are you asking for <path_rra>, when your scripts path is wrong? <path_rra> points to the rrd file's directory.
Hi Reinhard

if you move your Cacti installation from /path1 on one server to /path2 on another server, does this setting gets modified by Cacti ?
You're typing too fast for me!
AFAIK (did not try), only moving will not change it, cause <path_cacti> is retrieved from Settings->Paths. This will be determined only at startup. But after moving, I suppose, you'll have first to change this settings and then php rebuild_poller_cache.php. This should do, but I never tried on my own
Reinhard
sourcecode
Posts: 14
Joined: Tue May 16, 2006 4:59 am

Post by sourcecode »

is it possible to change the paths in settings> paths ? i cant find anything there about <path_cacti>, only got on mine:

snmpwalk Binary Path
The path to your snmpwalk binary.
snmpget Binary Path
The path to your snmpget binary.
snmpbulkwalk Binary Path
The path to your snmpbulkwalk binary.
snmpgetnext Binary Path
The path to your snmpgetnext binary.
RRDTool Binary Path
The path to the rrdtool binary.
RRDTool Default Font Path
The path to the rrdtool default true type font for version 1.2 and above.
PHP Binary Path
The path to your PHP binary file (may require a php recompile to get this file).
Logging
Cacti Log File Path
The path to your Cacti log file (if blank, defaults to /log/cacti.log)
Alternate Poller Path
Cactid Poller File Path
The path to Cactid binary.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest