netdata / netdata

Architected for speed. Automated for easy. Monitoring and troubleshooting, transformed!
https://www.netdata.cloud
GNU General Public License v3.0
70.34k stars 5.84k forks source link

Netdata on PFsense #1640

Closed karsyboy closed 7 years ago

karsyboy commented 7 years ago

I know that netdata states nowhere that its supported for pfsense so this may be the wrong area to post this as this is only kind of an issue, but since there is now FreeBSD support for netdata would this be possible. I have spent the night tinkering to get netdata working on PFsense (for the reason that I could see this being a popular tool to have) but keep getting stuck at the C compiler when trying to compile and install netdata. If someone with more knowledge could help me build a PFsense package or get it working that would be amazing (I would also love you forever).

ktsaou commented 7 years ago

hi.

@vlvkobal please check this one too. Supporting pfSense would be nice.

vlvkobal commented 7 years ago

Umm... Is it possible to get access to installed pfSence? If it is, I'd better verify netdata installation remotely instead of installing a new virtual machine.

karsyboy commented 7 years ago

I was not able to actually get netdata running it would fail at the C compiler I dont have a lot of programming skill so I was not sure what it would take to get netdata running on pfsense.

vlvkobal commented 7 years ago

If you can give me access (login and password) to your machine it would be much easier for me to resolve issues with compiling netdata.

ilyam8 commented 7 years ago

@karsyboy If you are not comfortable with login/pass request from a random internet guy (sounds scary to me) you can set up new pfsense vm and provide access to it for @vlvkobal Not for your existing pfsense instance.

ktsaou commented 7 years ago

I tried to create a pfsense vm on azure, but it fails.

@vlvkobal one way could be to setup pfsense with virtualbox on your development machine. I could do this and give you access, but my upstream speed is very bad and it will not be very helpful for you.

ilyam8 commented 7 years ago

I think a good idea is to setup OPNsense (which is more "open" then pfsense) vm too. Or add it to roadmap. Just thinking

vlvkobal commented 7 years ago

I'll try to install it on my machine next week.

vlvkobal commented 7 years ago

I've installed pfSense virtual machine and I've successfully run netdata on it.

@karsyboy you can install netdata with pkg add http://pkg.freebsd.org/FreeBSD:10:amd64/latest/All/netdata-1.5.0.txz or pkg add http://pkg.freebsd.org/FreeBSD:10:i386/latest/All/netdata-1.5.0.txz (choose appropriate one for your platform). You can find more information in https://doc.pfsense.org/index.php/Installing_FreeBSD_Packages and https://doc.pfsense.org/index.php/Versions_of_pfSense_and_FreeBSD

You can't compile netdata on pfSense. Take a look at https://doc.pfsense.org/index.php/Can_I_compile_software_on_pfSense

ktsaou commented 7 years ago

nice!

brando56894 commented 7 years ago

This doesn't work on pfSense 2.3 since it doesn't use the FreeBSD package repository anymore, it fails at e2fsprogs-libuuid.

Fetching netdata-1.5.0.txz: .......... done Installing netdata-1.5.0... pkg: Missing dependency 'e2fsprogs-libuuid'

Failed to install the following 1 package(s): http://pkg.freebsd.org/FreeBSD:10:amd64/latest/All/netdata-1.5.0.txz

ktsaou commented 7 years ago

So, there is no libuuid on pfSense 2.3 or is it named otherwise?

vlvkobal commented 7 years ago

I forgot to verify package dependencies. As long as psSense does not have e2fsprogs-libuuid included in the native packages collection, I think you should install it manually with pkg add http://pkg.freebsd.org/FreeBSD:10:amd64/latest/All/e2fsprogs-libuuid-1.43.4.txz before installing netdata. @brando56894 could you check this.

ktsaou commented 7 years ago

@karsyboy did you tried it? Can we close this issue?

karsyboy commented 7 years ago

I have been out of town for the past couple of week so i just finally got around to doing this it did install. When i try to start it i cant bind it to any IP's capture

vlvkobal commented 7 years ago

@karsyboy try to bind netdata to specific address using option bind to = in netdata.conf Check your firewall rules for 192.168.11.131 if you need netdata to be binded to this address exactly.

ktsaou commented 7 years ago

Cleaning up. I am closing this. If you still need help, post here.

bitratio commented 7 years ago

It seems there is no installation available for 2.3.3?

bitratio commented 7 years ago

[2.3.3-RELEASE][root@pf]/root: pkg add http://pkg.freebsd.org/FreeBSD:10:amd64/latest/All/netdata-1.5.0.txz pkg: http://pkg.freebsd.org/FreeBSD:10:amd64/latest/All/netdata-1.5.0.txz: Not Found

pando85 commented 7 years ago

I installed it successfully; try this http://pkg.freebsd.org/FreeBSD:10:amd64/latest/All/netdata-1.6.0.txz You will need some dependencies too.

bitratio commented 7 years ago

Thanks Pando, works!

brando56894 commented 7 years ago

Any chance this will be supported on the official Netgate hardware, such as the SG-1000? I only see ARM v6 packages.

CPU: ARM Cortex-A8 r3p2 (ECO: 0x00000000)
Thumb2, Security, VMSAv7
Texas Instruments AM335x Processor, Revision ES1.2 am335x built-in CPU Crypto (inactive)

http://www.ti.com/lsds/ti/processors/sitara/arm_cortex-a8/am335x/overview.page tps://www.netgate.com//products/sg-1000.html