Thursday , October 29 2020 bad ELF interpreter: No such file or directory

When I used “check_dig” plugin to monitor DNS Resolution on TMG Gateway server using NSClient++, I faced following error:

-bash: /usr/local/nagios/libexec/check_dig: /lib/ bad ELF interpreter: No such file or directory



To resolve this issue, first lets check what will provided file:

# yum whatprovides

Result on CentOS 7 64bit is:

glibc-2.17-55.el7.i686 : The GNU libc libraries
Repo        : base
Matched from:
Provides    :

glibc-2.17-55.el7_0.1.i686 : The GNU libc libraries
Repo        : updates
Matched from:
Provides    :

Let’s install required Addon:

# yum install glibc-2.17-55.el7_0.1.i686

I’ve installed this as installing “glibc-2.17-55.el7.i686” gave me Error.

Now, test if the script is working now:

# /usr/local/nagios/libexec/check_dig -H

If following error is shown, it means “bind-utils” package is missing as it will use dig command and that is provided by bind-utils package.

check_dig: Could not parse arguments

Install Bind-Utils package:

# yum install bind-utils

Now test plugin again:

# /usr/local/nagios/libexec/check_dig -l -H <GatewayIP>


# /usr/local/nagios/libexec/check_dig -l -H

If all goes fine, following success message will be shown, DNS IPs will probably be changed for others.

DNS OK – 0.201 seconds response time (  299 IN A|time=0.201408s;;;0.000000



About Muhammad Attique

Check these out :)

How to Install & Configure Google Chrome on Kali Linux

In this blog post, I’m going to demonstrate step by step how to install & …

Leave a Reply

Your email address will not be published. Required fields are marked *

For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

I agree to these terms.