[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Nagios Client/Plugins and nrpe on a 64bit Ubuntu install problem

Posted on 2009-04-20
2
Medium Priority
?
2,038 Views
Last Modified: 2013-12-16
Hi

I am a bit stuck with getting a nagios client (64 bit Ubuntu) to be monitored by my nagios host. I am trying to install the client/plugins on a 64 bit Ubuntu 606 machine but it keeps giving a error. I am following the steps as stated in http://www.thegeekstuff.com/2008/06/how-to-monitor-remote-linux-host-using-nagios-30/

When I do #./configure  in the Plugins download directory it completes with no error, but when I do  #make it gives the below error:
____________________
make[2]: Entering directory `/root/nagios/nagios-plugins-1.4.11/plugins'
/bin/sh ../libtool --tag=CC --mode=link gcc  -g -O2  -ldl -L. -o check_apt  check_apt.o utils.o ../lib/libnagiosplug.a ../gl/libgnu.a runcmd.o
gcc -g -O2 -o check_apt check_apt.o utils.o runcmd.o  -ldl -L/root/nagios/nagios-plugins-1.4.11/plugins ../lib/libnagiosplug.a ../gl/libgnu.a
/usr/bin/ld: i386 architecture of input file `utils.o' is incompatible with i386:x86-64 output
/usr/bin/ld: i386 architecture of input file `runcmd.o' is incompatible with i386:x86-64 output
collect2: ld returned 1 exit status
make[2]: *** [check_apt] Error 1
make[2]: Leaving directory `/root/nagios/nagios-plugins-1.4.11/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/nagios/nagios-plugins-1.4.11'
make: *** [all] Error 2
___________________

I have tried a few articles to get 32bit compiled on 64bit, but I keep getting the same results. Any one have a suggestion on how to get it working or where will I be able to a 64bit version of the nagios plugins?
0
Comment
Question by:Rigged
2 Comments
 
LVL 9

Accepted Solution

by:
sda100 earned 2000 total points
ID: 24188825
Information below taken from here:

"Adding -m32 to your CFLAGS and/or LDFLAGS should force building 32-bit applications. This assumes your setup is prepared for 32-bit applications already of course.

$ export CFLAGS='-m32'
$ export LDFLAGS='-m32'
$ ./configure ... etc .. etc .."
Steve
0
 
LVL 1

Author Closing Comment

by:Rigged
ID: 31572146
Awesome it worked perfectly. Thanks alot
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses
Course of the Month19 days, 8 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question