Hi guys.
I've got a problem with a new instalation of cacti.
S.O. Debian 7 kernel 3.2.81-1 x86_64
cacti and cacti-spine via apt-get.
The problem is that the graphs are empty with nan values.
This is a list of the things that I did:
1- chown -R www-data /var/lib/cacti/rrra
2- chmod 777 www-data /var/lib/cacti/rra
After the step 2 the graphs apear but with nan values.
crontab -e
*/5 * * * * /usr/bin/php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log
but the command
php poller.php it has no output ???
This is the output of php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
mhash
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
Reflection
session
shmop
SimpleXML
snmp
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
zip
zlib
[Zend Modules]
In some moment it seems that the poller get some information cause the graphs have some valueas but then has no data.
this is the output of php cmd.php
PHP Strict Standards: Only variables should be passed by reference in /usr/share/cacti/site/lib/ping.php on line 382
PHP Strict Standards: Only variables should be passed by reference in /usr/share/cacti/site/lib/ping.php on line 382
PHP Strict Standards: Only variables should be passed by reference in /usr/share/cacti/site/lib/ping.php on line 382
11/01/2013 04:09:04 PM - CMDPHP: Poller[0] Host[3] DS[21] WARNING: Result from SNMP not valid. Partial Result: U
11/01/2013 04:09:04 PM - CMDPHP: Poller[0] Host[3] DS[21] WARNING: Result from SNMP not valid. Partial Result: U
11/01/2013 04:09:06 PM - CMDPHP: Poller[0] Host[10] DS[49] WARNING: Result from SNMP not valid. Partial Result: U
11/01/2013 04:09:06 PM - CMDPHP: Poller[0] Host[10] DS[49] WARNING: Result from SNMP not valid. Partial Result: U
11/01/2013 04:09:07 PM - CMDPHP: Poller[0] Time: 3.0251 s, Theads: N/A, Hosts: 11
Regards
Empty graphs in cacti 0.8.8a
Moderators: Developers, Moderators
-
- Cacti Pro User
- Posts: 613
- Joined: Tue Aug 29, 2006 4:09 pm
- Location: NL
Re: Empty graphs in cacti 0.8.8a
Do you mean to say that that directory was owned and secured differently? Any idea how that happened, as the Debian package should do that by itself.ute wrote:1- chown -R www-data /var/lib/cacti/rrra
2- chmod 777 www-data /var/lib/cacti/rra
Why didn't you use the provided cron job in /etc/cron.d/cacti?ute wrote:crontab -e
*/5 * * * * /usr/bin/php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log
Seems like you ran cacti with your own credentials resulting in numbers and the standard polling doesn't work...ute wrote:In some moment it seems that the poller get some information cause the graphs have some valueas but then has no data.
I believe there is a bug open about this.ute wrote:this is the output of php cmd.php
PHP Strict Standards: Only variables should be passed by reference in /usr/share/cacti/site/lib/ping.php on line 382
PHP Strict Standards: Only variables should be passed by reference in /usr/share/cacti/site/lib/ping.php on line 382
PHP Strict Standards: Only variables should be passed by reference in /usr/share/cacti/site/lib/ping.php on line 382
And this looks like a failing device, script or query.ute wrote:11/01/2013 04:09:04 PM - CMDPHP: Poller[0] Host[3] DS[21] WARNING: Result from SNMP not valid. Partial Result: U
11/01/2013 04:09:04 PM - CMDPHP: Poller[0] Host[3] DS[21] WARNING: Result from SNMP not valid. Partial Result: U
11/01/2013 04:09:06 PM - CMDPHP: Poller[0] Host[10] DS[49] WARNING: Result from SNMP not valid. Partial Result: U
11/01/2013 04:09:06 PM - CMDPHP: Poller[0] Host[10] DS[49] WARNING: Result from SNMP not valid. Partial Result: U
11/01/2013 04:09:07 PM - CMDPHP: Poller[0] Time: 3.0251 s, Theads: N/A, Hosts: 11
I suggest you read the debugging documentation in my signature, and come back which specific questions.
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
Re: Empty graphs in cacti 0.8.8a
Before i have installed a cacti version for 0.88a and 0.88b and i got the same problem with you, the graph is not showing, after that i tried to downgrade with version 0.88 and the graph is showing.
i check all like poller.php out, time server etc is no problem.
i check all like poller.php out, time server etc is no problem.
Re: Empty graphs in cacti 0.8.8a
I've got 2 other instalation of cacti installed on debian 7 same version, and cacti 0.88a installed via apt-get and It works perfect with no problem.
On last friday I left the cacti working when I went home there was no data in graphs but today I found this
It seems to be ok but now the time is 9:51am. I've got no data between 7:50am and 9:50am. No data in the last 2 hours in all graphs. Using the plugin realtime I can check that there is data.
On last friday I left the cacti working when I went home there was no data in graphs but today I found this
It seems to be ok but now the time is 9:51am. I've got no data between 7:50am and 9:50am. No data in the last 2 hours in all graphs. Using the plugin realtime I can check that there is data.
-
- Cacti Pro User
- Posts: 613
- Joined: Tue Aug 29, 2006 4:09 pm
- Location: NL
Re: Empty graphs in cacti 0.8.8a
Are your timezones OK in THREE places: system, php and mysql?ute wrote:It seems to be ok but now the time is 9:51am. I've got no data between 7:50am and 9:50am. No data in the last 2 hours in all graphs. Using the plugin realtime I can check that there is data.
Maintainer of cacti in Debian (and Ubuntu).
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
Cacti 1.* is now officially supported on Debian Stretch via Debian backports
FAQ Ubuntu and Debian differences
Generic cacti debugging
Re: Empty graphs in cacti 0.8.8a
Thanks everybody. The problem has been resolved.
I've unistalled everything and then I've installed all.
Then I changed the permisions in /var/lib/cacti/rrr to 777 , cause RRD can't generate the graphs.
Then verything works ok.
Thanks
I've unistalled everything and then I've installed all.
Then I changed the permisions in /var/lib/cacti/rrr to 777 , cause RRD can't generate the graphs.
Then verything works ok.
Thanks
Who is online
Users browsing this forum: No registered users and 3 guests