[ixpmanager] sflow daemon

Brian Thompson brian.thompson at iovation.com
Tue Nov 12 17:19:22 GMT 2013


Nick,

root at portal:/usr/local/ixp/tools/runtime/sflow#
./control-sflow-to-rrd-handler start
Can't exec "sflow-to-rrd-handler": No such file or directory at
/usr/local/share/perl/5.14.2/Daemon/Control.pm line 259.
Failed to exec sflow-to-rrd-handler : No such file or directory at
/usr/local/share/perl/5.14.2/Daemon/Control.pm line 259.
control-sflow-to-rrd-handler                                  [Started]

It does create the .pid file although no processes actually start, and the
path does seem correct.

use warnings;
use strict;
use Daemon::Control;

Daemon::Control->new({
name => "control-sflow-to-rrd-handler",
lsb_start => '$syslog $remote_fs',
lsb_stop => '$syslog',
lsb_sdesc => 'Sflow control daemon',
lsb_desc => 'Controller for the sflow-to-rrd-daemon.',
path => '/usr/local/ixp/tools/runtime/sflow',
program => 'sflow-to-rrd-handler',
program_args => [],
pid_file => '/var/run/sflow-to-rrd-handler.pid',
fork => 2,
})->run;

Thank you for your help.  It is getting down to the wire, I would like to
demo this software at our board meeting on Thursday.

*Brian Thompson*
Senior Infrastructure Engineer // Senior Second Guesser

Direct: 503.943.6779
Mobile: 503.707.9018 // Twitter: iovation
*www.iovation.com <http://www.iovation.com/>*



On Tue, Nov 12, 2013 at 9:05 AM, Nick Hilliard <nick at inex.ie> wrote:

> On 12/11/2013 17:03, Brian Thompson wrote:
> > Should this be kicked off in a seperate crontab or in
> > the ixp-periodic-update.sh?
> >
> > I can't imagine that this is a manual start each time the server reboots.
>
> control-sflow-to-rrd-handler should be put into /etc/rc.d/ or /etc/init.d
> so that it automatically restarts whenever the server restarts.
>
> Nick
>
> _______________________________________________
> INEX IXP Manager mailing list
> ixpmanager at inex.ie
> https://www.inex.ie/mailman/listinfo/ixpmanager
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20131112/f8deaa93/attachment.html>


More information about the ixpmanager mailing list