HowTo get the latest Data?
Moderators: Developers, Moderators
HowTo get the latest Data?
Dear all,
is there a way to get the current data of a specific Host and Graph? In the Cacti MySQL Database I can not find any Data. Can anyone tell me the way to get these data, please?
Thank you in advance!
kjh
is there a way to get the current data of a specific Host and Graph? In the Cacti MySQL Database I can not find any Data. Can anyone tell me the way to get these data, please?
Thank you in advance!
kjh
The data is not kept in the database, but in RRD files (those in the /rra folder). To grab data directly from the rrd files, try rrdfetch:
http://people.ee.ethz.ch/~oetiker/webto ... ch.en.html
http://people.ee.ethz.ch/~oetiker/webto ... ch.en.html
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi
it seems you created some files with RRDtool 1.2 (RRD version 3), and that you try to read them with RRDtool 1.0 (RRD version 1) ?
it seems you created some files with RRDtool 1.2 (RRD version 3), and that you try to read them with RRDtool 1.0 (RRD version 1) ?
[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]
[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]
yes right.
I configured in Cacti that I have RRDtool 1.2 installed and in Cacti self anything looks fine. But when I use the RRDtool on the command line, this failure appears. Do you think there are any problems with the allready saved graphdata, when I update the RRDtool now?
Thank you for your help!!!
I configured in Cacti that I have RRDtool 1.2 installed and in Cacti self anything looks fine. But when I use the RRDtool on the command line, this failure appears. Do you think there are any problems with the allready saved graphdata, when I update the RRDtool now?
Thank you for your help!!!
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
It seems you have 2 versions of RRDtool installed.
How did you install it ?
How did you install it ?
[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]
[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]
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Try to change your PATH environnement variable (in your .bash_profile, for example).
What gives this command :
What gives this command :
Code: Select all
$ whereis 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]
[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]
-
- Cacti User
- Posts: 311
- Joined: Tue Jun 29, 2004 12:52 pm
- Location: Indiana
linux searches the path variable for directories in which to locate a command you type.
So if your path is set to "/usr/bin,/usr/local/bin/", and you type "rrdtool" at the command line, linux is going to try first /usr/bin/rrdtool, and then /usr/local/bin/rrdtool.
So, you can either change your path variable, or just use the full path with the command. So instead of typing "rrdtool", you would type "/usr/bin/rrdtool".
You can view your path variable with the command "echo $PATH"
You can temporarly set your path variable with the command "export PATH=<path>" although be careful, if you mess up your path this way you may have to log out and log back in to get it back.
To permanantly change your path you can add the export command to your .bashrc file, or change the PATH creation in your .bash_profile, both of which should be in your home directory.
Remember if you mess up your path, you can still execute commands, you will just have to use the full pathname.
So if your path is set to "/usr/bin,/usr/local/bin/", and you type "rrdtool" at the command line, linux is going to try first /usr/bin/rrdtool, and then /usr/local/bin/rrdtool.
So, you can either change your path variable, or just use the full path with the command. So instead of typing "rrdtool", you would type "/usr/bin/rrdtool".
You can view your path variable with the command "echo $PATH"
You can temporarly set your path variable with the command "export PATH=<path>" although be careful, if you mess up your path this way you may have to log out and log back in to get it back.
To permanantly change your path you can add the export command to your .bashrc file, or change the PATH creation in your .bash_profile, both of which should be in your home directory.
Remember if you mess up your path, you can still execute commands, you will just have to use the full pathname.
Dave
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
7.6462666667e-01 should be 0.7646
[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]
[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]
-
- Cacti User
- Posts: 311
- Joined: Tue Jun 29, 2004 12:52 pm
- Location: Indiana
Who is online
Users browsing this forum: No registered users and 4 guests