Speciffic problem, no imgs, can't find solution
Moderators: Developers, Moderators
Speciffic problem, no imgs, can't find solution
Ok, now another administrator installed everything to linux server, and cacti works, i can add devices, but graphs do not shows. When i go to cacti management - graph debugging says ERROR: opening '/var/www/html/cacti2/rra/router1_skirtas_marsrutizuoti_visus_vidinius_ir_isorinius_tinklus_ir_panasiai.rrd': No such file or directory
in fact - that directory is emtpy. Tried changing from rrd version (in cacti settings) to 1.2, to 1.4, 1.3 (rrdtool version is 1.3) and doesn't help. Tried changing rra folder permisions to 777, doesn't work. I'm new to linux, so don't really know where's the problem. Can anybody help?
in fact - that directory is emtpy. Tried changing from rrd version (in cacti settings) to 1.2, to 1.4, 1.3 (rrdtool version is 1.3) and doesn't help. Tried changing rra folder permisions to 777, doesn't work. I'm new to linux, so don't really know where's the problem. Can anybody help?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Speciffic problem, no imgs, can't find solution
Is the poller running, is it permissions? Please follow debugging steps on second link my signature.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: Speciffic problem, no imgs, can't find solution
Ok, so now as i sayed, i'm really new to linux. I checked if poller is in crontab - yes it is. The line in Crontab says */5 * * * * cactiuser php /usr/share/cacti/poller.php > /dev/null 2>&1. Also, i saw, that poller.php is owned by other user, and it had permisions rwxr--r--, so i changed it to rwxr-xr-x. Dunno if i had to do that, but it didn't helped. In some steps of debugging, i don't really know what to look for, for example, that part with data gathering (i guess that's because of me, not knowing linux well). ABout the part, where i should've checked that rrd tool graph statments (DEF), these are the statements: DEF:a="/var/www/html/cacti2/rra/ai-rsw-cl_ai_gostauto_40b_marsrutizuojantis_komutatoriu_klasteris_traffic_in_10.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/cacti2/rra/ai-rsw-cl_ai_gostauto_40b_marsrutizuojantis_komutatoriu_klasteris_traffic_in_10.rrd":traffic_out:AVERAGE \
but the /var/www/html/cacti2/rra/ directory is empty. So i guess the problem is somewhere in creating those files. But can't figure out, where the probem is.
DEF:b="/var/www/html/cacti2/rra/ai-rsw-cl_ai_gostauto_40b_marsrutizuojantis_komutatoriu_klasteris_traffic_in_10.rrd":traffic_out:AVERAGE \
but the /var/www/html/cacti2/rra/ directory is empty. So i guess the problem is somewhere in creating those files. But can't figure out, where the probem is.
Re: Speciffic problem, no imgs, can't find solution
i just realized, that those rrd files are created in different directory (/usr/share/cacti/rra - that is where cacti is installed i guess). is that normal?
Re: Speciffic problem, no imgs, can't find solution
ok, so now as i managed to get a bit of more info, i will tel you more of the other content.
Main cacti directory is in /usr/share/cacti (i guess that's where it wass first installed). poller.php putted in crontab shows ecxactly to this location: */5 * * * * cactiuser php /usr/share/cacti/poller.php > /dev/null 2>&1
permissions:
drwxr-xr-x. 2 cactiuser users 4096 Nov 8 10:20 rra
-rwxr-xr-x. 1 1000 users 17720 Sep 26 23:41 poller.php
-rwxr-xr-x. 1 1000 users 26620 Sep 26 23:41 cmd.php
and in this location the rrd files are saved /usr/share/cacti/rra.
I use cacti from /var/www/html/cacti2. And the error that i get from graph debugging is ERROR: opening '/var/www/html/cacti2/rra/ai-rsw-cl_traffic_in_11.rrd': No such file or directory
permissions:
drwxr-xr-x. 2 cactiuser users 4096 Sep 12 00:55 rra
-rwxr-xr-x. 1 1000 users 17720 Sep 26 23:41 poller.php
-rw-r--r--. 1 1000 users 26620 Sep 26 23:41 cmd.php
the rra folder is empty, so the problem is that rrd files are created in /usr/share/cacti/rra and not /var/www/html/cacti2/rra. so what should i change, to make, that rrd files should be created in that /var/www/html/cacti2/rra ?
Main cacti directory is in /usr/share/cacti (i guess that's where it wass first installed). poller.php putted in crontab shows ecxactly to this location: */5 * * * * cactiuser php /usr/share/cacti/poller.php > /dev/null 2>&1
permissions:
drwxr-xr-x. 2 cactiuser users 4096 Nov 8 10:20 rra
-rwxr-xr-x. 1 1000 users 17720 Sep 26 23:41 poller.php
-rwxr-xr-x. 1 1000 users 26620 Sep 26 23:41 cmd.php
and in this location the rrd files are saved /usr/share/cacti/rra.
I use cacti from /var/www/html/cacti2. And the error that i get from graph debugging is ERROR: opening '/var/www/html/cacti2/rra/ai-rsw-cl_traffic_in_11.rrd': No such file or directory
permissions:
drwxr-xr-x. 2 cactiuser users 4096 Sep 12 00:55 rra
-rwxr-xr-x. 1 1000 users 17720 Sep 26 23:41 poller.php
-rw-r--r--. 1 1000 users 26620 Sep 26 23:41 cmd.php
the rra folder is empty, so the problem is that rrd files are created in /usr/share/cacti/rra and not /var/www/html/cacti2/rra. so what should i change, to make, that rrd files should be created in that /var/www/html/cacti2/rra ?
Re: Speciffic problem, no imgs, can't find solution
i managed to change a rrd path for one graph changin <path_rra> into full path, but how could i change it automatically?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Speciffic problem, no imgs, can't find solution
It's calculated via a setting in global.php. Please be advised that Debian and variants use a modified setup. So, if you monkey with things, you'll just have to figure this out. If you have two instances pointing at the same Cacti database, you must 'Repopulate' the Poller Cache every time you change the pointing location unless you have made it so that the realpath is the same for each installation.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: Speciffic problem, no imgs, can't find solution
managed to solve the problem. Accidentally i saw a rrd.php file in /var/www/html/cacti2 folder. changed permissions to 755, then manually started poller.php, it worked. So at the end i recursively changed permissions to cacti2 (and all files and subfolders) to 755. Now it works. Also changed in the crontab, that it execute /var/www/html/cacti2/poller.php and not /us/share/cacti/poller.php . so now i see all the graphs, and i think they populate acurately.
Who is online
Users browsing this forum: No registered users and 1 guest