New Install - Missing Data Sources

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
n0x315
Posts: 6
Joined: Fri May 13, 2016 8:39 am

New Install - Missing Data Sources

Post by n0x315 »

Hi All,

I have a fresh install of Cacti, and having an issue with graphs. My first switch is added, and discovered with no problems. When I choose my interface to graph, and hit create I get the following error.

Code: Select all

Created graph: Luke 2960g - Traffic - |query_ifName|
ERROR: no Data Source associated. Check Template
Any help would be appreciated, thanks!

Ubuntu 16.04
Cacti Version 0.8.8f
Last edited by n0x315 on Fri May 13, 2016 10:10 am, edited 1 time in total.
donat
Posts: 9
Joined: Thu May 12, 2016 6:04 am

Re: New Install - Missing Data Sources

Post by donat »

Where did you take this template? Did you create it by your own?
Check if your graph template contains data sources.
n0x315
Posts: 6
Joined: Fri May 13, 2016 8:39 am

Re: New Install - Missing Data Sources

Post by n0x315 »

I followed the directions in this post, so I didn't move/create any templates that I know of.

https://aaronwalrath.wordpress.com/2010 ... -and-snmp/


Interface - Traffic (bytes/sec, Total Bandwidth) has both an Inbound and Outbound Data Source pre-configured by default.
n0x315
Posts: 6
Joined: Fri May 13, 2016 8:39 am

Re: New Install - Missing Data Sources

Post by n0x315 »

Graph Debug:

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--title='Luke 2960g - Traffic - |query_ifName|' \
--rigid \
--base='1000' \
--height='120' \
--width='500' \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label='bytes per second' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
AREA:#00CF00FF:'Inbound' \
GPRINT::LAST:' Current\:%8.2lf %s' \
GPRINT::AVERAGE:'Average\:%8.2lf %s' \
GPRINT::MAX:'Maximum\:%8.2lf %s\n' \
COMMENT:'Total In\: 0 bytes\n' \
LINE1:#002A97FF:'Outbound' \
GPRINT::LAST:'Current\:%8.2lf %s' \
GPRINT::AVERAGE:'Average\:%8.2lf %s' \
GPRINT::MAX:'Maximum\:%8.2lf %s\n' \
COMMENT:'Total Out\: 0 bytes\n'
RRDTool Says:
ERROR: is not a vname nor a number
donat
Posts: 9
Joined: Thu May 12, 2016 6:04 am

Re: New Install - Missing Data Sources

Post by donat »

Try to create your own data source, with 'Data Input Method' type = Get SNMP Data.
But first of all, you must find the OID you need, that would give you information and then put it into OID field (during the creation of data source).
labtec6
Posts: 7
Joined: Fri May 13, 2016 3:33 pm

Re: New Install - Missing Data Sources

Post by labtec6 »

There are problems with Cacti 8.8f in Ubuntu 16.04. It doesn't set the proper permissions and settings.

You will find a few things broken but can be fixed/worked around. I do have Cacti working fine under Ubuntu 16.04 but not the Network Weathermap plugin. It doesn't work.

Some plugins and such will need PHP 5.6 while Ubuntu 16.04 had PHP 7.0. You will probably need to run these commands:

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.0 php5.6 php5.6-mysql php-gettext php5.6-mbstring php-xdebug libapache2-mod-php5.6 libapache2-mod-php7.0 php5.6-gd

Switch PHP version ( Apache ) from php7.0 to php5.6:

sudo a2dismod php7.0 ; sudo a2enmod php5.6 ; sudo service apache2 restart
(reverse a2dismod and a2enmod to switch back)

(From http://askubuntu.com/questions/761713/h ... untu-16-04)

It will allow you to run both php 7.0 and 5.6 side by side. But some plugins run command line php commands and will run them as php 7.0 unless you "flip" that as well.

Under /etc/alternatives, create a new symlink for php to /usr/bin/php5.6.

cd /etc/alternatives
sudo rm php
sudo ln -s /usr/bin/php5.6 php
(change php5.6 or php7.0 to switch back)

That will fix some issues.

There are other issues with mysql as well. For example:

CMDPHP: Poller[0] ERROR: SQL Cell Failed!, Error:'2006', SQL:"SELECT count(*) FROM poller_time WHERE poller_id=0 AND end_time>'0000-00-00 00:00:00'"

I had to edit:

/etc/mysql/mysql.conf.d/mysql.cnf

And add the line at the bottom:

sql-mode="ALLOW_INVALID_DATES"

Then run:

sudo service mysql restart

As for the templates/data sources issue you are having, I'm trying to remember if these fix it or not. If they don't, let me know. I will try to get back to you.
n0x315
Posts: 6
Joined: Fri May 13, 2016 8:39 am

Re: New Install - Missing Data Sources

Post by n0x315 »

Thanks! I will try this out today or tomorrow depending how my Monday goes, haha. I appreciate the feedback.
n0x315
Posts: 6
Joined: Fri May 13, 2016 8:39 am

Re: New Install - Missing Data Sources

Post by n0x315 »

Thanks for your help labtec6, that work perfectly for me.
eman2000my1
Posts: 7
Joined: Wed May 18, 2016 1:47 am

Re: New Install - Missing Data Sources

Post by eman2000my1 »

i had still have problem.

i have folow the steps.

im using ubuntu 16.04

rrd 1.5.5

pphp 7
Attachments
Capture.JPG
Capture.JPG (92.89 KiB) Viewed 3092 times
labtec6
Posts: 7
Joined: Fri May 13, 2016 3:33 pm

Re: New Install - Missing Data Sources

Post by labtec6 »

eman2000my1 wrote:i had still have problem.

i have folow the steps.

im using ubuntu 16.04

rrd 1.5.5

pphp 7
Don't use php 7.0. It doesn't work with Cacti.

Install PHP 5.6
http://askubuntu.com/questions/756181/i ... nial-16-04

Then do this:
cd /etc/alternatives
sudo rm php
sudo ln -s /usr/bin/php5.6 php

Also, in the settings, make sure RRDtool is set to the right version.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest