1.0.1 to 1.2.3 - good except for a few graphs wont draw
Moderators: Developers, Moderators
- camerabob
- Cacti User
- Posts: 386
- Joined: Fri Feb 10, 2017 2:45 pm
- Location: Long Island, New York, USA
- Contact:
Re: 1.0.1 to 1.2.3 - good except for a few graphs wont draw
Check for differences between the rrd directories and files. There may be rights issues hidden or masked there.
Prod: Cacti 1.2.15 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4
Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
Maint @ 1.2
Monitor @ 2.3.6
Thold @ 1.2.4
Temp: Cacti 1.2.3 @ CentOS Linux release 7.9.2009 (Core) & PHP 5.4.16-48.el7
Flowview @ 2.1
Mactrack @ 4.2
Maint @ 1.2
Monitor @ 2.3.6
Router Configs @ 1.3.4
Syslog Monitoring @ 2.1
Thold @ 1.2.4
Re: 1.0.1 to 1.2.3 - good except for a few graphs wont draw
camerabob wrote:Check for differences between the rrd directories and files. There may be rights issues hidden or masked there.
Ok here is the rra directory permissions under /var/www/cacti
Code: Select all
drwxr-xr-x 3 root root 233472 May 14 10:30 rra
Code: Select all
-rw-r--r-- 1 root root 9006984 May 14 12:29 yellowcore_traffic_in_4088.rrd
Code: Select all
-rw-r--r-- 1 root root 9006984 May 16 16:22 purplecore_traffic_in_2535.rrd
Re: 1.0.1 to 1.2.3 - good except for a few graphs wont draw
The likelihood is that you are running the cron as a specific user but have spine with the setuid so it can be root automatically. The rra folder should always be read/write to the website and polling users.
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: 1.0.1 to 1.2.3 - good except for a few graphs wont draw
Yes, cron runs cmdphp as www-data it looks like, not root. I’ll be back in the office Monday to play with permissions some more.
Re: 1.0.1 to 1.2.3 - good except for a few graphs wont draw
I changed /var/www/cacti/rra ownership recursivly to www-data:www-data and also made it wide open 777 permissions.
Still, spine will graph all but our one core switch. cmdphp will graph that one core switch but will not graph a handful of other devices. The RRA's for these different devices have identical permissions:
-rwxrwxrwx 1 www-data www-data
in visudo I added this line to make sure www-data was running the poller. I don't know, maybe this is old advice.
root ALL=(www-data:www-data) /usr/bin/php /var/www/cacti/poller.php
Still, spine will graph all but our one core switch. cmdphp will graph that one core switch but will not graph a handful of other devices. The RRA's for these different devices have identical permissions:
-rwxrwxrwx 1 www-data www-data
in visudo I added this line to make sure www-data was running the poller. I don't know, maybe this is old advice.
root ALL=(www-data:www-data) /usr/bin/php /var/www/cacti/poller.php
Re: 1.0.1 to 1.2.3 - good except for a few graphs wont draw
I never could figure this out so I created a new device for this core switch that does not graph with spine.
I used the OSPF Lo0 IP address for it (the core switch has multiple interfaces obviously, at the core). I changed SNMP timeout from the default 500 to 1000. It now is getting data.
On the original device I also tried changing SNMP timeout from 500 to 1000 and that didn't make a difference I'll end up deleting that device since the new one works, it just has -OSPF at the end of the device name since I'm using that alternate IP interface.
I used the OSPF Lo0 IP address for it (the core switch has multiple interfaces obviously, at the core). I changed SNMP timeout from the default 500 to 1000. It now is getting data.
On the original device I also tried changing SNMP timeout from 500 to 1000 and that didn't make a difference I'll end up deleting that device since the new one works, it just has -OSPF at the end of the device name since I'm using that alternate IP interface.
Re: 1.0.1 to 1.2.3 - good except for a few graphs wont draw
There are some additional fixes to the indexing functions in 1.2.5. Should make things a bit more stable I think.
Before history, there was a paradise, now dust.
Who is online
Users browsing this forum: No registered users and 2 guests