Mailing List Archive

CentOS 7 nprobe start script error
Hello,

Trying to start /etc/init.d/nprobe, i get:

[root@nprobe ~]# /etc/init.d/nprobe start
Starting nProbe ens2f0
/etc/init.d/nprobe: line 26: [.: -gt: unary operator expected

The line in question is the IF statement:

CORE_OFFSET=$(cat /etc/nprobe/nprobe-${INTERFACE_NAME}.conf | grep
"\--cpu-affinity=#ID\+" | cut -d '+' -f 2)
if [ $CORE_OFFSET -gt 0 ]; then

​As i don't have the --cpu-affinity flag on the config, shouldn't it just
proceed ?
I tried adding the --cpu-affinity=0 but the error persists...

Anyone running this successfully in CentOS 7 ?

​Thank you,
Marco
Re: CentOS 7 nprobe start script error [ In reply to ]
Marco
it works for us but might be that your config file breaks the init script.

Can you please file an issue on https://github.com/ntop/nProbe/issues
and paste the nprobe versione as well the config file?

Luca

On 05/03/2016 10:55 AM, Marco Teixeira wrote:
> Hello,
>
> Trying to start /etc/init.d/nprobe, i get:
>
> [root@nprobe ~]# /etc/init.d/nprobe start
> Starting nProbe ens2f0
> /etc/init.d/nprobe: line 26: [.: -gt: unary operator expected
>
> The line in question is the IF statement:
>
> CORE_OFFSET=$(cat /etc/nprobe/nprobe-${INTERFACE_NAME}.conf | grep
> "\--cpu-affinity=#ID\+" | cut -d '+' -f 2)
> if [ $CORE_OFFSET -gt 0 ]; then
>
> ​As i don't have the --cpu-affinity flag on the config, shouldn't it
> just proceed ?
> I tried adding the --cpu-affinity=0 but the error persists...
>
> Anyone running this successfully in CentOS 7 ?
>
> ​Thank you,
> Marco
>
>
>
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc@listgateway.unipi.it
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
Re: CentOS 7 nprobe start script error [ In reply to ]
It's done. I also found some typos on the nprobe manual. Should those be
reported on github also ?

​Marco​

2016-05-03 11:27 GMT+01:00 Luca Deri <deri@ntop.org>:

> Marco
> it works for us but might be that your config file breaks the init script.
>
> Can you please file an issue on https://github.com/ntop/nProbe/issues and
> paste the nprobe versione as well the config file?
>
> Luca
>
>
> On 05/03/2016 10:55 AM, Marco Teixeira wrote:
>
> Hello,
>
> Trying to start /etc/init.d/nprobe, i get:
>
> [root@nprobe ~]# /etc/init.d/nprobe start
> Starting nProbe ens2f0
> /etc/init.d/nprobe: line 26: [.: -gt: unary operator expected
>
> The line in question is the IF statement:
>
> CORE_OFFSET=$(cat /etc/nprobe/nprobe-${INTERFACE_NAME}.conf | grep
> "\--cpu-affinity=#ID\+" | cut -d '+' -f 2)
> if [ $CORE_OFFSET -gt 0 ]; then
>
> ​As i don't have the --cpu-affinity flag on the config, shouldn't it just
> proceed ?
> I tried adding the --cpu-affinity=0 but the error persists...
>
> Anyone running this successfully in CentOS 7 ?
>
> ​Thank you,
> Marco
>
>
>
> _______________________________________________
> Ntop-misc mailing listNtop-misc@listgateway.unipi.ithttp://listgateway.unipi.it/mailman/listinfo/ntop-misc
>
>
>
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc@listgateway.unipi.it
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>
Re: CentOS 7 nprobe start script error [ In reply to ]
Yes please

luca
On 05/03/2016 01:49 PM, Marco Teixeira wrote:
> It's done. I also found some typos on the nprobe manual. Should those
> be reported on github also ?
>
> ​Marco​
>
> 2016-05-03 11:27 GMT+01:00 Luca Deri <deri@ntop.org
> <mailto:deri@ntop.org>>:
>
> Marco
> it works for us but might be that your config file breaks the init
> script.
>
> Can you please file an issue on
> https://github.com/ntop/nProbe/issues and paste the nprobe
> versione as well the config file?
>
> Luca
>
>
> On 05/03/2016 10:55 AM, Marco Teixeira wrote:
>> Hello,
>>
>> Trying to start /etc/init.d/nprobe, i get:
>>
>> [root@nprobe ~]# /etc/init.d/nprobe start
>> Starting nProbe ens2f0
>> /etc/init.d/nprobe: line 26: [.: -gt: unary operator expected
>>
>> The line in question is the IF statement:
>>
>> CORE_OFFSET=$(cat /etc/nprobe/nprobe-${INTERFACE_NAME}.conf |
>> grep "\--cpu-affinity=#ID\+" | cut -d '+' -f 2)
>> if [ $CORE_OFFSET -gt 0 ]; then
>>
>> ​As i don't have the --cpu-affinity flag on the config, shouldn't
>> it just proceed ?
>> I tried adding the --cpu-affinity=0 but the error persists...
>>
>> Anyone running this successfully in CentOS 7 ?
>>
>> ​ Thank you,
>> Marco
>>
>>
>>
>> _______________________________________________
>> Ntop-misc mailing list
>> Ntop-misc@listgateway.unipi.it
>> <mailto:Ntop-misc@listgateway.unipi.it>
>> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>
>
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc@listgateway.unipi.it <mailto:Ntop-misc@listgateway.unipi.it>
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>
>
>
>
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc@listgateway.unipi.it
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc