Nagios plugins - 32-bit versions?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
gregg_hughes_ISC
Posts: 18
Joined: Fri Aug 08, 2014 3:03 pm

Nagios plugins - 32-bit versions?

Post by gregg_hughes_ISC »

Good afternoon, all!

I have a working Nagios Core server running on Ubuntu 12.04. It's a stock installation from Ubuntu's repository. It's also 64-bit. Which is fine, until I needed to start using check_by_ssh on some 32-bit targets. I found that I couldn't run any compiled plugins - I got this:

Code: Select all

./check_by_ssh -H 192.168.200.85 -C /home/nagios/bin/check_ntp_time -q
Remote command execution failed: bash: /home/nagios/bin/check_ntp_time: cannot execute binary file
When I went over to the target machine and checked, I found this:

Code: Select all

 file check_ntp_time
check_ntp_time: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), stripped
Yep, it's compiled for a 64-bit system.

I have looked all over for a set of 32-bit plugins that I can simply pick up and copy into the target machines (there are many of them). I am looking now for suggestions on how to deploy 32-bit plugins to many Linux machines to be managed by the 64-bit central server.

Thanks to all for looking!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios plugins - 32-bit versions?

Post by ssax »

Please see here for examples, I've never done it, and it's outside the scope of our support:

http://stackoverflow.com/questions/3501 ... t-platform

My recommendation would be to spin up a 32 bit server and just compile them there and distribute as necessary.
gregg_hughes_ISC
Posts: 18
Joined: Fri Aug 08, 2014 3:03 pm

Re: Nagios plugins - 32-bit versions?

Post by gregg_hughes_ISC »

Hello, ssax!

I spun up a new 32-bit server, and ran into dependency issues. The new plugins were looking for glibc of at least 2.5 - some of my machines are too old for this.

When I moved the new plugins to a machine with glibc as new or newer than 2.5, I ran into some sub-dependencies. So, using the new plugins from the Ubuntu repository is a no-go.

I think I'll need to get some older plugins and compile on the Linux versions I have, and hopefully distribute from there.

Thanks for the help!


Gregg
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios plugins - 32-bit versions?

Post by tmcdonald »

Did you have more (related) questions or are we free to close this one up?
Former Nagios employee
Locked