Page 1 of 1

Nagios plugins - 32-bit versions?

Posted: Thu Jun 30, 2016 2:53 pm
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!

Re: Nagios plugins - 32-bit versions?

Posted: Thu Jun 30, 2016 4:02 pm
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.

Re: Nagios plugins - 32-bit versions?

Posted: Tue Jul 05, 2016 11:46 am
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

Re: Nagios plugins - 32-bit versions?

Posted: Tue Jul 05, 2016 3:16 pm
by tmcdonald
Did you have more (related) questions or are we free to close this one up?