[ixpmanager] Peering Manager question

Brian Thompson brian.thompson at iovation.com
Sun Nov 23 18:02:51 GMT 2014


I still get permission denied when starting from "service"

root at portal:/usr/local/ixp# service control-sflow-to-rrd-handler status
/etc/init.d/control-sflow-to-rrd-handler: 22:
/etc/init.d/control-sflow-to-rrd-handler:
/usr/local/ixp/tools/runtime/sflow: Permission denied

If I call it manually rrd starts.
root at portal:/usr/local/ixp#
/usr/local/ixp/tools/runtime/sflow/control-sflow-to-rrd-handler start
control-sflow-to-rrd-handler                                  [Started]
root at portal:/usr/local/ixp# ps -aux | grep sflow
warning: bad ps syntax, perhaps a bogus '-'?
See http://gitorious.org/procps/procps/blobs/master/Documentation/FAQ
root      6949  0.9  1.7  33328  9116 ?        S    09:56   0:00
/usr/bin/perl -w /usr/local/bin/sflow-to-rrd-handler
root      6951  0.0  0.0   2072   280 ?        S    09:56   0:00
/usr/local/bin/sflowtool -4 -p 6343 -l
root      6954  0.0  0.1   4396   828 pts/0    S+   09:57   0:00 grep
--color=auto sflow

Although BGP detect doesn't have an init script. Is copying it there a
manual step?

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

My ixpmanager.conf look like.
<ixp>
        rs_asn = 63028
        rs_peval_bird = /usr/local/bin/peval-output-to-csv.sh
        rs_identity = 1
        sflow_rrdcached = 1
        sflowtool = /usr/local/bin/sflowtool
        sflowtool_opts = -4 -p 6343 -l
        sflowtool_bgp_opts = -4 -p 5501 -l
        sflow_rrddir = /usr/local/sflow
#       debug = 1
</ixp>


Thanks again for the help
Brian


*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 Sun, Nov 23, 2014 at 9:51 AM, Nick Hilliard <nick at inex.ie> wrote:

> On 23/11/2014 17:31, Brian Thompson wrote:
> > Anybody,
> >
> > Ok I might need some generic linux help.
>
> Daemon::Control has been causing some headwreck today.  Turns out it
> doesn't like freebsd rc.d init scripting either.
>
> Can you run a "git pull"?  I've pushed some bug fixes.  Where it says:
>
> > program         =>      "/usr/local/bin/$progname",
>
> ... in your case, this should probably be:
>
> > program         =>      "/usr/local/ixp/tools/runtime/sflow/$progname",
>
> The sflow-detect-ixp-bgp-sessions script uses the same startup script
> mechanism, so if you get sflow-to-rrd-handler working, you can get the bgp
> stuff working the same way.
>
> 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/20141123/a7baed6c/attachment-0001.html>


More information about the ixpmanager mailing list