RESOLVED: Interface Status fails

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sawdusty
Posts: 23
Joined: Thu Sep 14, 2023 8:14 am

RESOLVED: Interface Status fails

Post by sawdusty »

I just rebuilt my Nagios XI server and have re-entered all my devices. On all my network devices, for every interface that I'm monitoring the status check is failing. The error message states the following:

(No output on stdout) stderr: execvp (usr/local/nagios/libexec/check_ifoperstatnag_by_variable, ...) failed. errno is 2: No such file or directory

I checked the folder and confirmed there is not a "check_ifoperstatnag_by_variable" script, but there is a 'check_ifoperstatnag' script. Where can I download this script?
ssunga
Posts: 72
Joined: Wed Aug 09, 2023 10:38 am

Re: Interface Status fails

Post by ssunga »

Hey @sawdusty,

I am not aware of a `check_ifoperstatnag_by_variable` script - if you use the `check_ifoperstatnag` script, do you get the expected output? Is this script available in your previous Nagios XI server, and if so would you be able to move it into the new server?
User avatar
lgute
Posts: 411
Joined: Mon Apr 06, 2020 2:49 pm

Re: Interface Status fails

Post by lgute »

Hi @sawdusty, thanks for reaching out.

The plugin check_if_operstatnag_by_variable is a part of the Switch Wizard. You can copy it to libexec, as follows.

Code: Select all

cd /usr/local/nagios/libexec
/usr/local/nagiosxi/html/includes/configwizards/switch/plugins/check_if_operstatnag_by_variable .
You may need to adjust the file ownership and permissions.

Code: Select all

chown apache:nagios check_if_operstatnag_by_variable
chmod 775 check_if_operstatnag_by_variable
I am checking into why it is not getting installed into libexec by default.
Please let us know if you have any other questions or concerns.

-Laura
sawdusty
Posts: 23
Joined: Thu Sep 14, 2023 8:14 am

Re: Interface Status fails

Post by sawdusty »

lgute wrote: Mon Aug 26, 2024 12:56 pm Hi @sawdusty, thanks for reaching out.

The plugin check_if_operstatnag_by_variable is a part of the Switch Wizard. You can copy it to libexec, as follows.

Code: Select all

cd /usr/local/nagios/libexec
/usr/local/nagiosxi/html/includes/configwizards/switch/plugins/check_if_operstatnag_by_variable .
You may need to adjust the file ownership and permissions.

Code: Select all

chown apache:nagios check_if_operstatnag_by_variable
chmod 775 check_if_operstatnag_by_variable
I am checking into why it is not getting installed into libexec by default.
Thanks, this worked. Slight change to file ownership, my user was www-data versus apache.
User avatar
lgute
Posts: 411
Joined: Mon Apr 06, 2020 2:49 pm

Re: Interface Status fails

Post by lgute »

Hi @sawdusty,

Thanks for letting us know what worked for you!
Please let us know if you have any other questions or concerns.

-Laura
Locked