Page 1 of 1
RESOLVED: Interface Status fails
Posted: Mon Aug 26, 2024 8:37 am
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?
Re: Interface Status fails
Posted: Mon Aug 26, 2024 11:09 am
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?
Re: Interface Status fails
Posted: Mon Aug 26, 2024 12:56 pm
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.
Re: Interface Status fails
Posted: Mon Aug 26, 2024 1:22 pm
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.
Re: Interface Status fails
Posted: Wed Aug 28, 2024 11:58 am
by lgute
Hi
@sawdusty,
Thanks for letting us know what worked for you!