check_ifoperstatus v2.3.3 (nagios-plugins 2.3.3)
Posted: Mon Sep 27, 2021 12:59 am
Hi Team,
I am getting the below error for interface status monitor (attached the screenshot) for all interfaces on a device. Interface bandwidth data is available.
"check_ifoperstatus v2.3.3 (nagios-plugins 2.3.3)"
below is the error I am getting when I perform run check command for interface status monitor.
Also I have noticed the SNMP string (S9#!tM0n) which was configured is splitting into argument 1, 2 and 3 instead of showing in argument 1.
I have modified and placed in argument 1 but it shows another interface name which is not available in the device.
Can you please help in fixing the issue.
"
[nagios@spnidcnagiosxi ~]$ /usr/local/nagios/libexec/check_ifoperstatus -H 192.168.205.232 -C S9# -k tM0n 9
check_ifoperstatus v2.3.3 (nagios-plugins 2.3.3)
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute
copies of the plugins under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
usage:
check_ifoperstatus -k <IF_KEY> -H <HOSTNAME> [-C <community>]
Copyright (C) 2000 Christoph Kron
check_ifoperstatus.pl comes with ABSOLUTELY NO WARRANTY
This program is licensed under the terms of the GNU General Public License
(check source code for details)
check_ifoperstatus plugin for Nagios monitors operational
status of a particular network interface on the target host
Usage:
-H (--hostname) Hostname to query - (required)
-C (--community) SNMP read community (defaults to public,
used with SNMP v1 and v2c
-v (--snmp_version) 1 for SNMP v1 (default)
2 for SNMP v2c
SNMP v2c will use get_bulk for less overhead
if monitoring with -d
-L (--seclevel) choice of "noAuthNoPriv", "authNoPriv", or "authPriv"
-U (--secname) username for SNMPv3 context
-c (--context) SNMPv3 context name (default is empty string)
-A (--authpass) authentication password (cleartext ascii or localized key
in hex with 0x prefix generated by using "snmpkey" utility
auth password and authEngineID
-a (--authproto) Authentication protocol (MD5 or SHA1)
-X (--privpass) privacy password (cleartext ascii or localized key
in hex with 0x prefix generated by using "snmpkey" utility
privacy password and authEngineID
-P (--privproto) privacy protocol (DES or AES; default: DES)
-k (--key) SNMP IfIndex value
-d (--descr) SNMP ifDescr value
-T (--type) SNMP ifType integer value (see http://www.iana.org/assignments/ianaiftype-mib)
-p (--port) SNMP port (default 161)
-I (--ifmib) Agent supports IFMIB ifXTable. Do not use if
you don't know what this is.
-n (--name) the value should match the returned ifName
(Implies the use of -I)
-w (--warn =i|w|c) ignore|warn|crit if the interface is dormant (default critical)
-D (--admin-down =i|w|c) same for administratively down interfaces (default warning)
-M (--maxmsgsize) Max message size - useful only for v1 or v2c
-t (--timeout) seconds before the plugin times out (default=15)
-V (--version) Plugin version
-h (--help) usage help
-k or -d or -T must be specified
Note: either -k or -d or -T must be specified and -d and -T are much more network
intensive. Use it sparingly or not at all. -n is used to match against
a much more descriptive ifName value in the IfXTable to verify that the
snmpkey has not changed to some other network interface after a reboot.
I am getting the below error for interface status monitor (attached the screenshot) for all interfaces on a device. Interface bandwidth data is available.
"check_ifoperstatus v2.3.3 (nagios-plugins 2.3.3)"
below is the error I am getting when I perform run check command for interface status monitor.
Also I have noticed the SNMP string (S9#!tM0n) which was configured is splitting into argument 1, 2 and 3 instead of showing in argument 1.
I have modified and placed in argument 1 but it shows another interface name which is not available in the device.
Can you please help in fixing the issue.
"
[nagios@spnidcnagiosxi ~]$ /usr/local/nagios/libexec/check_ifoperstatus -H 192.168.205.232 -C S9# -k tM0n 9
check_ifoperstatus v2.3.3 (nagios-plugins 2.3.3)
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute
copies of the plugins under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
usage:
check_ifoperstatus -k <IF_KEY> -H <HOSTNAME> [-C <community>]
Copyright (C) 2000 Christoph Kron
check_ifoperstatus.pl comes with ABSOLUTELY NO WARRANTY
This program is licensed under the terms of the GNU General Public License
(check source code for details)
check_ifoperstatus plugin for Nagios monitors operational
status of a particular network interface on the target host
Usage:
-H (--hostname) Hostname to query - (required)
-C (--community) SNMP read community (defaults to public,
used with SNMP v1 and v2c
-v (--snmp_version) 1 for SNMP v1 (default)
2 for SNMP v2c
SNMP v2c will use get_bulk for less overhead
if monitoring with -d
-L (--seclevel) choice of "noAuthNoPriv", "authNoPriv", or "authPriv"
-U (--secname) username for SNMPv3 context
-c (--context) SNMPv3 context name (default is empty string)
-A (--authpass) authentication password (cleartext ascii or localized key
in hex with 0x prefix generated by using "snmpkey" utility
auth password and authEngineID
-a (--authproto) Authentication protocol (MD5 or SHA1)
-X (--privpass) privacy password (cleartext ascii or localized key
in hex with 0x prefix generated by using "snmpkey" utility
privacy password and authEngineID
-P (--privproto) privacy protocol (DES or AES; default: DES)
-k (--key) SNMP IfIndex value
-d (--descr) SNMP ifDescr value
-T (--type) SNMP ifType integer value (see http://www.iana.org/assignments/ianaiftype-mib)
-p (--port) SNMP port (default 161)
-I (--ifmib) Agent supports IFMIB ifXTable. Do not use if
you don't know what this is.
-n (--name) the value should match the returned ifName
(Implies the use of -I)
-w (--warn =i|w|c) ignore|warn|crit if the interface is dormant (default critical)
-D (--admin-down =i|w|c) same for administratively down interfaces (default warning)
-M (--maxmsgsize) Max message size - useful only for v1 or v2c
-t (--timeout) seconds before the plugin times out (default=15)
-V (--version) Plugin version
-h (--help) usage help
-k or -d or -T must be specified
Note: either -k or -d or -T must be specified and -d and -T are much more network
intensive. Use it sparingly or not at all. -n is used to match against
a much more descriptive ifName value in the IfXTable to verify that the
snmpkey has not changed to some other network interface after a reboot.