Page 1 of 2

Fexes status not showing

Posted: Fri Jul 09, 2021 4:23 am
by informatica
Hi Team,

Could you please help how to enable fexes status using below plugin. We are getting the output but we are not getting the status of fexes.


/check_nwc_health --hostname 10.33.50.55 --community XXXX --mode watch-fexes

OK - found 7 FEXes

Re: Fexes status not showing

Posted: Fri Jul 09, 2021 11:35 am
by gsmith
Hi

what kind of machine is 10.33.50.55 ?

can you provide me with the MIB files for it please?

Thanks

Re: Fexes status not showing

Posted: Mon Jul 12, 2021 4:59 am
by informatica
the below is the device type and model

Manufacture: Cisco (N5K-C5548UP) Nexus

Re: Fexes status not showing

Posted: Mon Jul 12, 2021 2:21 pm
by gsmith
Hi

Do you happen to have the MIB files?

Thanks

Re: Fexes status not showing

Posted: Tue Jul 13, 2021 11:46 pm
by informatica
Hi Team,

We are using only the attached script.

Re: Fexes status not showing

Posted: Wed Jul 14, 2021 9:57 am
by gsmith
Hi

That is a third-party plugin. When I looked up the help on it I could only find:

Code: Select all

watch-fexes                      (Check if FEXes appear and disappear (use --lookup))
So try:

Code: Select all

/check_nwc_health --hostname 10.33.50.55 --community XXXX --mode watch-fexes --lookup
here is the website of the author of the plugin:
https://labs.consol.de/nagios/check_nwc ... /#download

Please let me know if adding "--lookup" worked for you.

Thanks

Re: Fexes status not showing

Posted: Thu Jul 15, 2021 2:41 am
by informatica
we are getting below output its not allowing to execute

[toolsadmin@emea-nagios-a ~]$ /usr/local/nagios/libexec/check_nwc_health --hostname 10.33.50.55 --community XXXX --mode watch-fexes --lookup
Unknown option: lookup
check_nwc_health $Revision: 7.0.0.4 $ [http://labs.consol.de/nagios/check_nwc_health]

This monitoring plugin is free software, and comes with ABSOLUTELY NO WARRANTY.
It may be used, redistributed and/or modified under the terms of the GNU
General Public Licence (see http://www.fsf.org/licensing/licenses/gpl.txt).

This plugin checks various parameters of network components

Usage: check_nwc_health [ -v|--verbose ] [ -t <timeout> ] --mode <what-to-do> --hostname <network-component> --community <snmp-community> ...]
-?, --usage
Print usage information
-h, --help
Print detailed help screen
-V, --version
Print version information
-t, --timeout=INTEGER
Seconds before plugin times out (default: 15)
-v, --verbose
Show details for command-line debugging (can repeat up to 3 times)
--hostname
Hostname or IP-address of the switch or router
--port
The SNMP port to use (default: 161)
--domain
The transport domain to use (default: udp/ipv4, other possible values: udp6, udp/ipv6, tcp, tcp4, tcp/ipv4, tcp6, tcp/ipv6)
--protocol

Re: Fexes status not showing

Posted: Thu Jul 15, 2021 11:00 am
by gsmith
Hi

I was trying to read the code for the plugin, but I don't really know the perl languauge.

I have a hunch though, try:

Code: Select all

./check_nwc_health --mode watch-fexes --hostname 10.33.50.55 --community XXXX --lookback 60
Let me know the result please.

Thanks

Re: Fexes status not showing

Posted: Fri Jul 16, 2021 5:27 am
by informatica
Still we are getting the same issue


[toolsadmin@emea-nagios-a ~]$ /usr/local/nagios/libexec/check_nwc_health --hostname 10.33.50.55 --community XXXX --mode watch-fexes --lookup 60
Unknown option: lookup
check_nwc_health $Revision: 7.0.0.4 $ [http://labs.consol.de/nagios/check_nwc_health]

This monitoring plugin is free software, and comes with ABSOLUTELY NO WARRANTY.
It may be used, redistributed and/or modified under the terms of the GNU
General Public Licence (see http://www.fsf.org/licensing/licenses/gpl.txt).

This plugin checks various parameters of network components

Usage: check_nwc_health [ -v|--verbose ] [ -t <timeout> ] --mode <what-to-do> --hostname <network-component> --community <snmp-community> ...]
-?, --usage
Print usage information
-h, --help
Print detailed help screen
-V, --version
Print version information
-t, --timeout=INTEGER
Seconds before plugin times out (default: 15)
-v, --verbose
Show details for command-line debugging (can repeat up to 3 times)
--hostname
Hostname or IP-address of the switch or router
--port
The SNMP port to use (default: 161)
--domain
The transport domain to use (default: udp/ipv4, other possible values: udp6, udp/ipv6, tcp, tcp4, tcp/ipv4, tcp6, tcp/ipv6)
--protocol
The SNMP protocol to use (default: 2c, other possibilities: 1,3)
--community
SNMP community of the server (SNMP v1/2 only)
--username
The securityName for the USM security model (SNMPv3 only)
--authpassword
The authentication password for SNMPv3
--authprotocol
The authentication protocol for SNMPv3 (md5|sha)
--privpassword
The password for authPriv security level
--privprotocol
The private protocol for SNMPv3 (des|aes|aes128|3des|3desde)
--contextengineid
The context engine id for SNMPv3 (10 to 64 hex characters)
--contextname
The context name for SNMPv3 (empty represents the "default" context)
--community2

Re: Fexes status not showing

Posted: Fri Jul 16, 2021 9:06 am
by gsmith
Hi

Looks like you missed a part, change " --lookup 60" to " --lookback 60"

Thanks