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?
RESOLVED: Interface Status fails
Re: Interface Status fails
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?
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
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.
You may need to adjust the file ownership and permissions.
I am checking into why it is not getting installed into libexec by default.
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 .
Code: Select all
chown apache:nagios check_if_operstatnag_by_variable
chmod 775 check_if_operstatnag_by_variable
Please let us know if you have any other questions or concerns.
-Laura
-Laura
Re: Interface Status fails
Thanks, this worked. Slight change to file ownership, my user was www-data versus apache.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.You may need to adjust the file ownership and permissions.Code: Select all
cd /usr/local/nagios/libexec /usr/local/nagiosxi/html/includes/configwizards/switch/plugins/check_if_operstatnag_by_variable .I am checking into why it is not getting installed into libexec by default.Code: Select all
chown apache:nagios check_if_operstatnag_by_variable chmod 775 check_if_operstatnag_by_variable
Re: Interface Status fails
Please let us know if you have any other questions or concerns.
-Laura
-Laura