Compiling nagios plugins in AIX

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Compiling nagios plugins in AIX

Post by rajasegar »

abrist wrote:I will take a look at this tomorrow, though it is starting to look like you may have issues with your headers or toolchain. Where did you get the GNU toolchain from? (as they don't ship with AIX)
I think I downloaded the following from http://www.perzl.org/aix/

09/01/2014 10:42 AM 18,087,017 gcc-4.8.2-1.aix6.1.ppc.rpm
09/01/2014 10:41 AM 6,571,520 gcc-c++-4.8.2-1.aix6.1.ppc.rpm
09/01/2014 10:42 AM 5,866,258 gcc-cpp-4.8.2-1.aix6.1.ppc.rpm
09/01/2014 10:42 AM 9,934,241 gcc-gfortran-4.8.2-1.aix6.1.ppc.rpm
09/01/2014 10:54 AM 1,518,681 gmp-5.1.3-1.aix5.1.ppc.rpm
09/01/2014 10:53 AM 186,807 gmp-devel-5.1.3-1.aix5.1.ppc.rpm
09/01/2014 10:42 AM 886,300 libgcc-4.8.2-1.aix6.1.ppc.rpm
09/01/2014 10:42 AM 517,814 libgomp-4.8.2-1.aix6.1.ppc.rpm
09/01/2014 10:53 AM 414,917 libmpc-1.0.1-2.aix5.1.ppc.rpm
09/01/2014 10:53 AM 30,653 libmpc-devel-1.0.1-2.aix5.1.ppc.rpm
09/01/2014 10:42 AM 10,022,361 libstdc++-4.8.2-1.aix6.1.ppc.rpm
09/01/2014 10:42 AM 2,667,103 libstdc++-devel-4.8.2-1.aix6.1.ppc.rpm
09/01/2014 10:53 AM 801,716 mpfr-3.1.2-1.aix5.1.ppc.rpm
09/01/2014 10:53 AM 68,407 mpfr-devel-3.1.2-1.aix5.1.ppc.rpm
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
GldRush98
Posts: 259
Joined: Wed May 25, 2011 10:51 am
Location: Springfield, IL
Contact:

Re: Compiling nagios plugins in AIX

Post by GldRush98 »

I'm not sure if this will help you, but I thought I'd share... here are the nrpe and plugin binaries for AIX 5.3 that I had to track down around 2 years ago. May work on other AIX versions. Could be worth a try :)
I realize you're trying to compile them on your own and may have other reasons/requirements for doing so... but regardless;

https://www.dropbox.com/s/i85gl40nv7ah5 ... ies.tar.gz
https://www.dropbox.com/s/zg7z2mjejqohd ... ies.tar.gz
Prod XI: Debian 12 - Nagios XI 2026R1.2
Dev XI: Debian 12 - Nagios XI 2026R1.2
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Compiling nagios plugins in AIX

Post by abrist »

Raj, unless you have a requirement to compile, you may wish to try some of the bins floating around. There are many plugins users running aix, and I have yet to once fail on the mathlibs.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Compiling nagios plugins in AIX

Post by rajasegar »

GldRush98 wrote:I'm not sure if this will help you, but I thought I'd share... here are the nrpe and plugin binaries for AIX 5.3 that I had to track down around 2 years ago. May work on other AIX versions. Could be worth a try :)
I realize you're trying to compile them on your own and may have other reasons/requirements for doing so... but regardless;

https://www.dropbox.com/s/i85gl40nv7ah5 ... ies.tar.gz
https://www.dropbox.com/s/zg7z2mjejqohd ... ies.tar.gz
Correct. I changed the check_disk.c to get rid of the default display.
Original : free space: / 11335 MB (55% inode=99%)
Revised : /apps >Total:295GB Used:37GB(13%) Free:255GB(87%)

Another reason is I want to standardise on the versions used, nrpe 2.15 and plugins > 2.0

I still cannot get hold of bos.adt.libm. Anyone can assist on this, it will be appreciated.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Compiling nagios plugins in AIX

Post by rajasegar »

abrist wrote:Raj, unless you have a requirement to compile, you may wish to try some of the bins floating around. There are many plugins users running aix, and I have yet to once fail on the mathlibs.
Unfortunately I do have a requirement to compile as per the post above.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Compiling nagios plugins in AIX

Post by sreinhardt »

Aside from gcc being newer, is there a particular reason you are not using the ibm provided packages? We know they should work and have worked for people in the past. While newer versions are great, we cannot guarantee that the freeware package will have the same functionality.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Compiling nagios plugins in AIX

Post by rajasegar »

sreinhardt wrote:Aside from gcc being newer, is there a particular reason you are not using the ibm provided packages? We know they should work and have worked for people in the past. While newer versions are great, we cannot guarantee that the freeware package will have the same functionality.
It did not work, that is why I installed the freeware version.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Compiling nagios plugins in AIX

Post by slansing »

Unfortunately there doesn't look to be much of an option. Yeah, the pre-compiled binaries for AIX that I found are quite a bit older than version 2.0.0, though they are not the newest, they do work...
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Compiling nagios plugins in AIX

Post by rajasegar »

To solve the compilation issues use the latest nagios-plugins-2.0.3.tar.gz.

Please close the thread.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
Locked