[root@wn203460 libexec]# /usr/local/nagios/libexec/check_ifoperstatnag 10149 -v2c -c communitystring 10.182.82.222
Usage /usr/local/nagios/libexec/check_ifoperstatnag: <interface index> <snmpget options>
Check_ifoperstatus requires that the first argument be the interface index that this interface can be found at under the remote devices snmp tree.
This should always be a positive integer, or zero.
All options beyond the first, are arguments that must follow the snmpget command line parameters.
The plugin is from the newest version of the switch wizard.
BTW: Which permissions are correct for the plugins in /usr/local/nagios/libexec/ ?
[root@wn203460 libexec]# ./check_ifoperstatnag 49 10.182.82.222 -v2c -c labnet 10.182.82.222
Usage ./check_test: <interface index> <snmpget options>
Check_ifoperstatus requires that the first argument be the interface index that this interface can be found at under the remote devices snmp tree.
This should always be a positive integer, or zero.
All options beyond the first, are arguments that must follow the snmpget command line parameters.
Permissions on libexec files should be 755 and either root:root, or nagios:nagcmd. Personally I prefer restricting write permission to root only. Otherwise, I see that you checked different interfaces there, please use the same interface and remote device for all tests, so that we have commonality in knowing that it is something properly working for other checks. Also, which previous, and what current versions are you running? check_ifoperstatusnag --version should provide the output we are looking for.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
[root@wn203460 libexec]# ./check_ifoperstatnag 10149 -v2c -c communitystring 10.182.82.222
Usage ./check_ifoperstatnag: <interface index> <snmpget options>
Check_ifoperstatus requires that the first argument be the interface index that this interface can be found at under the remote devices snmp tree.
This should always be a positive integer, or zero.
All options beyond the first, are arguments that must follow the snmpget command line parameters.
When the permissions are "root:root 755" upgrade of the wizards via the web interface (Admin -> Manage Config Wizards) does not work, right?
There seems to be an issue with that version of the plugin and we are looking in to it.
For now, you may have to revert to the older version of the plugin.
Be sure to check out our Knowledgebase for helpful articles and solutions!