Page 1 of 4

Error instaling fprobe on linux server

Posted: Tue Apr 21, 2015 5:40 pm
by bosecorp
I am following this procedure to install fproble

http://assets.nagios.com/downloads/nagi ... alyzer.pdf

but I am getting this error at some point during the installation


checking for pcap.h in alternative location...
configure: error: pcap.h not found

Re: Error instaling fprobe on linux server

Posted: Tue Apr 21, 2015 6:21 pm
by Box293
What distribution and version of linux are you running this on?

Re: Error instaling fprobe on linux server

Posted: Wed Apr 22, 2015 6:56 am
by bosecorp
Linux-RHEL 6

Re: Error instaling fprobe on linux server

Posted: Wed Apr 22, 2015 9:47 am
by lmiltchev
Try to install fprobe manually.

Code: Select all

yum install -y wget libpcap-devel gcc flex byacc bison make
cd /tmp
wget -O fprobe-1.1.tar.bz2 "http://downloads.sourceforge.net/project/fprobe/fprobe/1.1/fprobe-1.1.tar.bz2?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Ffprobe%2F&ts=1374682947&use_mirror=iweb"
tar xvf fprobe-1.1.tar.bz2
cd fprobe-1.1
./configure
make
make install
# To start fprobe:

Code: Select all

fprobe <NNA server>:<port>
# To get fprobe boot start on reboot:

Code: Select all

echo "fprobe <NNA server>:<port>" >> /etc/rc.local
If this fails, run the following commands and show us the output:

Code: Select all

uname -a
cat /etc/*release
yum repolist -v

Re: Error instaling fprobe on linux server

Posted: Wed Apr 22, 2015 9:52 am
by bosecorp
it fails on ./configure

# ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for a BSD-compatible install... /usr/bin/install -c
checking for pthread_create in -lpthread... yes
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for library containing sched_setscheduler... none required
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for inttypes.h... (cached) yes
checking pcap.h usability... no
checking pcap.h presence... no
checking for pcap.h... no
checking for pcap.h in alternative location...
configure: error: pcap.h not found

Re: Error instaling fprobe on linux server

Posted: Wed Apr 22, 2015 10:34 am
by lmiltchev
It's possible that you are missing the "libpcap-devel" package. To be honest with you, I haven't seen this issue before. However, I found a possible solution here:

http://stackoverflow.com/questions/1333 ... nd-linking

It references Fedora 17 but it may point you to the right direction. Hope this helps.

Re: Error instaling fprobe on linux server

Posted: Wed Apr 22, 2015 11:19 am
by bosecorp
Nothing. did not helped

Re: Error instaling fprobe on linux server

Posted: Wed Apr 22, 2015 3:46 pm
by lmiltchev
Run the following commands and show us the output:

Code: Select all

uname -a
cat /etc/*release
yum repolist -v
yum list installed | grep pcap

Re: Error instaling fprobe on linux server

Posted: Wed Apr 22, 2015 4:31 pm
by bosecorp
root@nagmon:(04-22 17:31): /root
# uname -a
Linux nagmon 2.6.32-431.20.3.el6.x86_64 #1 SMP Fri Jun 6 18:30:54 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
root@nagmon:(04-22 17:31): /root
# cat /etc/*release
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Red Hat Enterprise Linux Server release 6.5 (Santiago)
Red Hat Enterprise Linux Server release 6.5 (Santiago)
root@nagmon:(04-22 17:31): /root
# yum repolist -v
yum list installed | grep pcapLoading "rhnplugin" plugin
Loading "refresh-packagekit" plugin
Config time: 0.069
This system is receiving updates from RHN Classic or RHN Satellite.
Looking for repo options for [main]
Looking for repo options for [rhel-x86_64-server-6]
Repo 'rhel-x86_64-server-6' setting option 'enabled' = '1'
Repo 'rhel-x86_64-server-6' setting option 'gpgcheck' = '1'
Repo 'rhel-x86_64-server-6' setting option 'timeout' = '120'
Yum Version: 3.2.29
Setting up Package Sacks
pkgsack time: 0.070
Repo-id : UBS-KITS-UBSLNX
Repo-name : Unix Business Servers Repository On ubslnx
Repo-updated : Wed Dec 19 14:11:47 2012
Repo-pkgs : 40
Repo-size : 631 M
Repo-baseurl : http://ubslnx.bose.com/pub/ubs-repository
Repo-expire : 3,600 second(s) (last: Wed Apr 22 17:23:52 2015)
Repo-excluded: 11

Repo-id : epel
Repo-name : Extra Packages for Enterprise Linux 6 - x86_64
Repo-revision: 1429720548
Repo-tags : binary-x86_64
Repo-updated : Wed Apr 22 12:39:01 2015
Repo-pkgs : 11,379
Repo-size : 11 G
Repo-metalink: https://mirrors.fedoraproject.org/metal ... rch=x86_64
Updated : Wed Apr 22 12:39:01 2015
Repo-baseurl : http://mirror.pnl.gov/epel/6/x86_64/ (42 more)
Repo-expire : 3,600 second(s) (last: Wed Apr 22 17:23:57 2015)

Repo-id : nagios-base
Repo-name : Nagios
Repo-revision: 1426806502
Repo-updated : Thu Mar 19 19:08:58 2015
Repo-pkgs : 121
Repo-size : 887 M
Repo-baseurl : http://repo.nagios.com/nagios/6/
Repo-expire : 3,600 second(s) (last: Wed Apr 22 17:24:03 2015)

Repo-id : nagiosxi-deps
Repo-name : Nagios XI Dependencies
Repo-revision: 1426806572
Repo-updated : Thu Mar 19 19:09:33 2015
Repo-pkgs : 28
Repo-size : 2.8 M
Repo-baseurl : http://repo.nagios.com/nagiosxi-deps/6/
Repo-expire : 3,600 second(s) (last: Wed Apr 22 17:24:03 2015)

Repo-id : rhel-x86_64-server-6
Repo-name : Red Hat Enterprise Linux Server (v. 6 for 64-bit x86_64)
Repo-updated : Wed Apr 22 06:21:07 2015
Repo-pkgs : 14,785
Repo-size : 25 G
Repo-baseurl : https://xmlrpc.rhn.redhat.com/XMLRPC/GE ... 4-server-6
Repo-expire : 3,600 second(s) (last: Wed Apr 22 17:24:03 2015)

Repo-id : rpmforge
Repo-name : RHEL 6Server - RPMforge.net - dag
Repo-updated : Thu Jul 10 21:46:59 2014
Repo-pkgs : 4,718
Repo-size : 2.2 G
Repo-baseurl : http://apt.sw.be/redhat/el6/en/x86_64/rpmforge
Repo-mirrors : http://apt.sw.be/redhat/el6/en/mirrors-rpmforge
Repo-expire : 3,600 second(s) (last: Wed Apr 22 17:24:04 2015)

repolist: 31,071
root@nagmon:(04-22 17:31): /root
# yum list installed | grep pcap
libpcap.x86_64 14:1.4.0-1.20130826git2dbcaa1.el6
root@nagmon:(04-22 17:31): /root

Re: Error instaling fprobe on linux server

Posted: Wed Apr 22, 2015 4:57 pm
by jolson
Please issue the following:

Code: Select all

whereis pcap.h
Does your system find pcap.h? If not, please try to find it.

Code: Select all

find /. -name pcap.h
If you cannot find pcap.h, I believe that libpcap may not be installed properly. Try reinstalling it:

Code: Select all

yum -y remove libpcap*

Code: Select all

yum -y install libpcap*
Does it exist now?

Code: Select all

find /. -name pcap.h
Best,


Jesse