General Cacti Setup Woes

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

Moderators: Developers, Moderators

Post Reply
Slithers
Posts: 9
Joined: Wed Mar 24, 2010 5:44 am

General Cacti Setup Woes

Post by Slithers »

Hello all

First time user of RRD / cacti here so apologise if i'm making some elementary mistakes!

I've deployed cacti via the tarball on a Debian Lenny box (can't use apt-get on this as we have mysql enterprise and we use the zend stack for php and apt-get would write over the zend installation and would have messed up the mysql_multi we have setup on the enterprise instance.)

We've had to compile our own snmp extension for the zend php instance and this is working fine but we don't appear to be generating graphs for any of the aspects we're monitoring.

These are the strange things I've noticed and a bit more informtaion about the setup:

The deployment is onto an amd 64bit machine and the tarball was downloaded straight from cacti so not too sure if this is 64 bit compliant?

The poller.php script resides on roots crontab (not too sure if this is working properly or if it should sit on the cacti users crontab is there a test i can do on this?)

rrd files are not being crated automatically in cacti/rra/, i've created 2 of them manually but still no graphs.

Any help would be vastly appreciated as i've had about a day of googling and meddling to fix this problem!

Thanks

Matt Smith
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: General Cacti Setup Woes

Post by Howie »

Slithers wrote:I've deployed cacti via the tarball on a Debian Lenny box (can't use apt-get on this as we have mysql enterprise and we use the zend stack for php and apt-get would write over the zend installation and would have messed up the mysql_multi we have setup on the enterprise instance.)
IMHO, this is the better way - you know what has happened with the install.
Slithers wrote: The deployment is onto an amd 64bit machine and the tarball was downloaded straight from cacti so not too sure if this is 64 bit compliant?
Cacti is php source. It's not really 32 or 64 bit.
Slithers wrote: The poller.php script resides on roots crontab (not too sure if this is working properly or if it should sit on the cacti users crontab is there a test i can do on this?)
Normally it runs as the Cacti user, and the rra and log directories should be owned by that user.
Slithers wrote: rrd files are not being crated automatically in cacti/rra/, i've created 2 of them manually but still no graphs.
You shouldn't have to do that.
Slithers wrote: Any help would be vastly appreciated as i've had about a day of googling and meddling to fix this problem!
Did you actually try the manual? There is a troubleshooting section in there that covers 'no graphs created' type problems...
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Slithers
Posts: 9
Joined: Wed Mar 24, 2010 5:44 am

Post by Slithers »

Thanks for the fast response Howie

I'll hold my hands up i haven't checked the manual as i've been tearing through this and other forums as well as rrdtools site, and for some reason that simple action didn;t occur t me!

I can only put me not checking the manual down to me having what is known as a brain fart.

I'll check the manual now :oops:
Slithers
Posts: 9
Joined: Wed Mar 24, 2010 5:44 am

Post by Slithers »

Hi

Thanks for the help, got a fair few graphs generated now, however one appears to be a thorn in my side:

I'm trying to monitor the traffic in and out over a server so i've got a data template setup which should run the following from cacti's crontab:

/usr/bin/rrdtool create \
/usr/local/cacti-0.8.7e/rra/dev1_traffic_in_18.rrd \
--step 300 \
DS:traffic_in:COUNTER:600:0:100000000 \
DS:traffic_out:COUNTER:600:0:100000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \

However the file is never created, cacti can write to that folder as i have other rrd files made by cacti in there?

At the mo the poller is logging the following:

Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/cacti-0.8.7e/lib/adodb/adodb.inc.php on line 3027

Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/cacti-0.8.7e/lib/adodb/adodb.inc.php on line 3592

Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/cacti-0.8.7e/lib/adodb/adodb.inc.php on line 3667

Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/cacti-0.8.7e/lib/adodb/adodb.inc.php on line 3687

Deprecated: Function split() is deprecated in /usr/local/cacti-0.8.7e/poller.php on line 77
04/01/2010 03:35:01 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '300', Max Runtime '298', Poller Runs: '1'

Deprecated: Function split() is deprecated in /usr/local/cacti-0.8.7e/poller.php on line 178
Waiting on 1/2 pollers.

Deprecated: Function ereg_replace() is deprecated in /usr/local/cacti-0.8.7e/lib/rrd.php on line 29
OK u:0.00 s:0.00 r:1.01

Deprecated: Function ereg_replace() is deprecated in /usr/local/cacti-0.8.7e/lib/rrd.php on line 29
OK u:0.00 s:0.00 r:1.01

Deprecated: Function ereg_replace() is deprecated in /usr/local/cacti-0.8.7e/lib/rrd.php on line 29
OK u:0.00 s:0.00 r:1.01

Deprecated: Function ereg_replace() is deprecated in /usr/local/cacti-0.8.7e/lib/rrd.php on line 29
OK u:0.00 s:0.00 r:1.01

Deprecated: Function ereg_replace() is deprecated in /usr/local/cacti-0.8.7e/lib/rrd.php on line 29
OK u:0.00 s:0.00 r:1.01

Deprecated: Function ereg_replace() is deprecated in /usr/local/cacti-0.8.7e/lib/rrd.php on line 29
OK u:0.00 s:0.00 r:1.01

Deprecated: Function ereg_replace() is deprecated in /usr/local/cacti-0.8.7e/lib/rrd.php on line 29
OK u:0.00 s:0.00 r:1.01

Deprecated: Function ereg_replace() is deprecated in /usr/local/cacti-0.8.7e/lib/rrd.php on line 29
OK u:0.00 s:0.00 r:1.01

Deprecated: Function ereg_replace() is deprecated in /usr/local/cacti-0.8.7e/lib/rrd.php on line 29
OK u:0.00 s:0.00 r:1.01

Deprecated: Function ereg_replace() is deprecated in /usr/local/cacti-0.8.7e/lib/rrd.php on line 29
OK u:0.00 s:0.00 r:1.01

Deprecated: Function split() is deprecated in /usr/local/cacti-0.8.7e/poller.php on line 419
04/01/2010 03:35:02 PM - SYSTEM STATS: Time:1.2942 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:15 RRDsProcessed:10

Deprecated: Function split() is deprecated in /usr/local/cacti-0.8.7e/poller.php on line 387

<!-- http://xhprof.dev1/?run=4bb4af168f79e&s ... rt=excl_wt -->cacti@**********:/usr/local/cacti-0.8.7e/log$ tail -100 poller.log

Deprecated: Function ereg_replace() is deprecated in /usr/local/cacti-0.8.7e/include/global.php on line 89

Deprecated: Function ereg_replace() is deprecated in /usr/local/cacti-0.8.7e/include/global.php on line 90

Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/cacti-0.8.7e/lib/adodb/adodb.inc.php on line 866

Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/cacti-0.8.7e/lib/adodb/adodb.inc.php on line 872

Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/cacti-0.8.7e/lib/adodb/adodb.inc.php on line 1183

Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/cacti-0.8.7e/lib/adodb/adodb.inc.php on line 1961

Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/cacti-0.8.7e/lib/adodb/adodb.inc.php on line 3027

Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/cacti-0.8.7e/lib/adodb/adodb.inc.php on line 3592

Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/cacti-0.8.7e/lib/adodb/adodb.inc.php on line 3667

Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/cacti-0.8.7e/lib/adodb/adodb.inc.php on line 3687

Deprecated: Function split() is deprecated in /usr/local/cacti-0.8.7e/poller.php on line 77
04/01/2010 03:40:01 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '300', Max Runtime '298', Poller Runs: '1'

Deprecated: Function split() is deprecated in /usr/local/cacti-0.8.7e/poller.php on line 178
Waiting on 1/2 pollers.

Deprecated: Function ereg_replace() is deprecated in /usr/local/cacti-0.8.7e/lib/rrd.php on line 29
OK u:0.00 s:0.00 r:1.01

Deprecated: Function ereg_replace() is deprecated in /usr/local/cacti-0.8.7e/lib/rrd.php on line 29
OK u:0.00 s:0.00 r:1.01

Deprecated: Function ereg_replace() is deprecated in /usr/local/cacti-0.8.7e/lib/rrd.php on line 29
OK u:0.00 s:0.00 r:1.01

Deprecated: Function ereg_replace() is deprecated in /usr/local/cacti-0.8.7e/lib/rrd.php on line 29
OK u:0.00 s:0.00 r:1.01

Deprecated: Function ereg_replace() is deprecated in /usr/local/cacti-0.8.7e/lib/rrd.php on line 29
OK u:0.00 s:0.00 r:1.01

Deprecated: Function ereg_replace() is deprecated in /usr/local/cacti-0.8.7e/lib/rrd.php on line 29
OK u:0.00 s:0.00 r:1.01

Deprecated: Function ereg_replace() is deprecated in /usr/local/cacti-0.8.7e/lib/rrd.php on line 29
OK u:0.00 s:0.00 r:1.01

Deprecated: Function ereg_replace() is deprecated in /usr/local/cacti-0.8.7e/lib/rrd.php on line 29
OK u:0.00 s:0.00 r:1.01

Deprecated: Function ereg_replace() is deprecated in /usr/local/cacti-0.8.7e/lib/rrd.php on line 29
OK u:0.00 s:0.00 r:1.01

Deprecated: Function ereg_replace() is deprecated in /usr/local/cacti-0.8.7e/lib/rrd.php on line 29
OK u:0.00 s:0.00 r:1.01

Deprecated: Function split() is deprecated in /usr/local/cacti-0.8.7e/poller.php on line 419
04/01/2010 03:40:03 PM - SYSTEM STATS: Time:1.3207 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:15 RRDsProcessed:10

Deprecated: Function split() is deprecated in /usr/local/cacti-0.8.7e/poller.php on line 387

Not too sure on this one, so if anyone could give me a pointer that would be great.

Thanks

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

Post by gandalf »

The deprecated warnings are due to a PHP version that deprecated several commands cacti is still using in 087. We will drop that with 088. Until then, I advise to suppress those warnings. There have been postings how to do that; please search
R.
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Post by Linegod »

--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
Slithers
Posts: 9
Joined: Wed Mar 24, 2010 5:44 am

Post by Slithers »

Hi

Thanks for the responses, am i correct in thinking the deprecated functions are what is causing the traffic graph not to generate?

Thanks

Matt Smith
Slithers
Posts: 9
Joined: Wed Mar 24, 2010 5:44 am

Post by Slithers »

Ignore last comment its obviously not that which is causing the graph not to generate.

Still stumped on this one, might go back to the drawing board as i suspect i may have set one of the templates up incorrectly..........
Slithers
Posts: 9
Joined: Wed Mar 24, 2010 5:44 am

Post by Slithers »

Sorted

Didn't add the associated data query in devices > host

What a plonker!

Thanks for all the help

Matt Smith
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests