1

i have installed nagios core 4 on ubuntu server 12.04 lts.. everything working fine,, but... i have a problem with remote command to a remote linux (ubuntu server 12.04) pc! when i try to check a service, for example: check_swap, check_disk etc.. i got everytime an error:

Remote command execution failed: /home/nagios/plugins/check_disk: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /home/nagios/plugins/check_disk)

the remote pc is not my pc and i don't want to make a disaster! :) So... how can i fix this problem? any help be appreciate!!! ;) thanks in advance! :)

bain
  • 12,200
alessio
  • 41
  • 1
  • 1
  • 8

1 Answers1

0

You can not just take a binary compiled on one Linux system and run it on another, unless they have exactly the same architecture and libraries. In this case, the remote system is complaining that the the C library that your compiled binary requires (glibc 2.14) is not present. You need to either:

  • Build nagios on the remote server so that it gets compiled and linked against its libraries

  • If both local and remote are the same arch (i386 or amd64) do apt-get update && apt-get dist-upgrade on both, then reboot, then recompile nagios. Since both will thehn have an up-to-date Ubuntu 12.04 on same arch, they will have the same libraries, and you can use the same binaries between them.

bain
  • 12,200