new install cacti server not showing any graphs.

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
pareshbhide
Posts: 1
Joined: Sat Oct 27, 2012 5:08 am

new install cacti server not showing any graphs.

Post by pareshbhide »

Hi
i have install new cacti server.but after first login in graphs tab cati not showin any graphs for localhost. i want to add my firwall to find out load on fiwall device but basic install not show any graph
:cry:
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: new install cacti server not showing any graphs.

Post by gandalf »

Please run a "rebuild_poller_cache.php" and retry
R.
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: new install cacti server not showing any graphs.

Post by cigamit »

Check your cacti log and ensure your poller is running properly and without errors.
DavidTomic
Posts: 7
Joined: Tue Oct 30, 2012 6:30 am

Re: new install cacti server not showing any graphs.

Post by DavidTomic »

I've just setup a brand new Ubuntu 12.10 box and tried installing Cacti from the Ubuntu repository, and I'm having issues as well.

It's creating the graphs, but everything is just showing up as 'nan'. I've tried working my way through the troubleshooting guides already, but I still haven't been able to figure out what the problem actually is.

I've probably set-up at least a dozen Cacti installs before this one, and I've never come across this particular problem before.
DavidTomic
Posts: 7
Joined: Tue Oct 30, 2012 6:30 am

Re: new install cacti server not showing any graphs.

Post by DavidTomic »

OK ... so this is weird.

I left work yesterday, and all my graphs were just giving me 'NaN' (as above).

Get back this morning, and the graphs have started working over night - but only for about 5 hours - and now they've stopped again.

http://img267.imageshack.us/img267/7426/cactiv.png

I've never come across this behaviour before?!?

I'm just about to start running through the Troubleshooting guide from scratch again, but does anybody else have any advice / suggestions which might help me out here?
DavidTomic
Posts: 7
Joined: Tue Oct 30, 2012 6:30 am

Re: new install cacti server not showing any graphs.

Post by DavidTomic »

So ... working my way through the Cacti debugging guide:

Check Cacti Log File

ALL looks okay. No errors / warnings to be seen, just lots of:

Code: Select all

10/30/2012 10:00:02 PM - SYSTEM STATS: Time:0.4106 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:9 RRDsProcessed:7
10/30/2012 09:55:01 PM - SYSTEM STATS: Time:0.2549 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:9 RRDsProcessed:7
10/30/2012 09:50:02 PM - SYSTEM STATS: Time:0.1531 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:9 RRDsProcessed:7
Check Basic Data Gathering

Code: Select all

snmpget -v 1 -c public 10.0.0.20 .1.3.6.1.2.1.2.2.1.10.10
iso.3.6.1.2.1.2.2.1.10.10 = Counter32: 4180923170

Code: Select all

$ sudo su www-data
$ whoami
www-data
$ perl /usr/share/cacti/site/scripts/loadavg_multi.pl
1min:0.43 5min:0.41 10min:0.34
Check Cacti's Poller

Code: Select all

cat /etc/cron.d/cacti
MAILTO=root
*/5 * * * * www-data php --define suhosin.memory_limit=512M /usr/share/cacti/site/poller.php 2>&1 >/dev/null | if [ -f /usr/bin/ts ] ; then ts ; else tee ; fi >> /var/log/cacti/poller-error.log
<Cleared cacti.log, and changed Poller Logging Level to DEBUG>

Code: Select all

10/30/2012 10:25:01 PM - CMDPHP: Poller[0] Host[2] DS[8] SNMP: v1: 10.0.0.20, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.6, output: 690226
Looks OK to me. The full log is saved to: http://pastebin.com/M7av7czB


Check RRD File Update

Code: Select all

10/30/2012 10:25:01 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/lib/cacti/rra/zfs-crcnk-1_traffic_in_8.rrd --template traffic_out:traffic_in 1351596301:559096:690226
Again, looks OK to me?

Utilities > Poller Cache looks fine too.

Check RRD File Ownership

Code: Select all

:/var/lib/cacti/rra# ls -l *.rrd
-rw-rw-r-- 1 www-data www-data 141488 Oct 31 09:45 localhost_load_1min_5.rrd
-rw-rw-r-- 1 www-data www-data  47840 Oct 31 09:45 localhost_mem_buffers_3.rrd
-rw-rw-r-- 1 www-data www-data  47840 Oct 31 09:45 localhost_mem_swap_4.rrd
-rw-rw-r-- 1 www-data www-data  47840 Oct 31 09:45 localhost_proc_7.rrd
-rw-rw-r-- 1 www-data www-data  47840 Oct 31 09:45 localhost_users_6.rrd
Check RRD File Numbers

Code: Select all

rrdtool fetch localhost_proc_7.rrd AVERAGE
> http://pastebin.com/kzY9prBf

Code: Select all

rrdtool info localhost_proc_7.rrd 
> http://pastebin.com/pdXmjGuL


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

Re: new install cacti server not showing any graphs.

Post by gandalf »

DavidTomic wrote:OK ... so this is weird.

I left work yesterday, and all my graphs were just giving me 'NaN' (as above).

Get back this morning, and the graphs have started working over night - but only for about 5 hours - and now they've stopped again.

http://img267.imageshack.us/img267/7426/cactiv.png

I've never come across this behaviour before?!?

I'm just about to start running through the Troubleshooting guide from scratch again, but does anybody else have any advice / suggestions which might help me out here?
Please verify from corntab or from cacti.log, that the poller has indeed being run.
R.
DavidTomic
Posts: 7
Joined: Tue Oct 30, 2012 6:30 am

Re: new install cacti server not showing any graphs.

Post by DavidTomic »

Yes, the poller was still being run fine.

I never did figure out what the problem actually was, but I just killed that install (it was just running as a VM) and setup a new one, configured everything exactly the same as the first one AFAIK, and it worked fine straight out of the box.

No idea ...
zacanderson
Posts: 1
Joined: Mon Nov 26, 2012 11:08 pm

Re: new install cacti server not showing any graphs.

Post by zacanderson »

Hi,

I had the exact same issue, brand new install of Ubuntu 12.10 (apt-get install cacti) and the all the graphs were showing up with "nan".
I disabled apparmor (command "service apparmor stop" and "service apparmor teardown") and everything started working.

not sure exactly why apparmor was stopping Cacti, but happy my graphs are working now.

Zac
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest