install fping package

ciccio

Dabbler
Joined
Jan 15, 2019
Messages
27
Hello.
I have a problem: I should install the fping packet to use it with netdata.
with pkg install fping I get an error (maybe the package installation service is disabled?), while with compiling from netdata tool I get another error just in the gcc compilation.
how do i solve?
thank you
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
You're trying to install a pkg on the FreeNAS host... this is not how FreeNAS works.

You can certainly install that pkg in a jail and run it there... will that get the result you want? (I'm not clear how netdata connects with it). I recommend this option if it will work.

Installing on the host is generally a terrible idea, but if you must hack it (and then handle the resulting mess with conflicts or when updates kill your changes) then it can be done. I don't recommend it.
 

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,079
While FreeNAS is based on FreeBSD, FreeNAS is an appliance that is not intend to be modified. Any function that is not available should be added by installing it in a jail or virtual machine.
If those options do not work, you should submit a feature request. The development team has added many features over the years. Just ask.
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
You can install fping in a jail. As fping only depends on the libc library, you can call the program directly from the FreeNAS shell.

/mnt/iocage/jails/<jailname>/root/usr/local/sbin/fping host


But if you are doing something like that, you should really know what you're doing .....
 

ciccio

Dabbler
Joined
Jan 15, 2019
Messages
27
I just installed a jails and fping works even without starting it.
FANTASTIC!! thank you all
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
installed a jails and fping works even without starting it
It could well be that the fping utility (executable) is self-contained and can just be copied to any location on your pool without needing the jail.
 

Fredda

Guru
Joined
Jul 9, 2019
Messages
608
It could well be that the fping utility (executable) is self-contained and can just be copied to any location on your pool without needing the jail.
Usually all jail binaries which run from the FreeNAS cli can be copied to where you like.
You can check with ldd if they really don't depend on any libs from the jail.
Code:
ldd /mnt/iocage/jails/jail/root/usr/local/sbin/fping
    libc.so.7 => /lib/libc.so.7 (0x80082b000)

Be aware that you won't get security updates anymore, which you would get if you update the jail with pkg upgrade/pkg upgrade.
 
Top