flow-capture does not start PHP Fatal error

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
worpx
Posts: 1
Joined: Sat Feb 11, 2012 10:32 pm

flow-capture does not start PHP Fatal error

Post by worpx »

#service flow-capture start
NOTE: Starting Flow Tools
PHP Fatal error: Cannot break/continue 1 level in /etc/rc.d/init.d/flow-capture on line 39


Looking at the flow-capture in /etc/rc.d/init.d line 39 is the "break":

function start() {
global $tools_path, $cacti_base;;

echo "NOTE: Starting Flow Tools\n";
$devices = db_fetch_assoc("SELECT * FROM plugin_flowview_devices");
if (!empty($devices)) {
$path = db_fetch_cell("SELECT value FROM `settings` WHERE name = 'path_flows_dir'");
if ($path == '')
break;


Any ideas?
linux83
Cacti User
Posts: 70
Joined: Tue Oct 11, 2011 1:40 am

Re: flow-capture does not start PHP Fatal error

Post by linux83 »

Hi,
i'm new to this plugin but hope this help:

before you start make sure the devices is sending flow traffic to your cacti server
by using tcpdump at configured port, then move to this:

1-try to start the service with root privileage.
2-check variable of this file to be correct: /etc/flow-tools/flow-capture.conf
3-try again starting the service : sudo service flow-capture start
4- check the service is running: ps -ef | grep flow .


might this help.
Cisco Networking
*LeArN To KnOw*
lavati
Posts: 5
Joined: Fri Jul 06, 2012 5:27 am

Re: flow-capture does not start PHP Fatal error

Post by lavati »

I've ran across exactly this error. I had 2 separate cacti installations and installed netflow.

One of them was fine. the second had this error.

The fix was to go in the netflow folders settings on cacti. Change the flows location and start the daemon (using the plugin start script). Then stop it and change the flows location back to the original.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests