Fexes status not showing

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
informatica
Posts: 99
Joined: Thu Jan 28, 2021 9:55 pm

Fexes status not showing

Post 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
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Fexes status not showing

Post by gsmith »

Hi

what kind of machine is 10.33.50.55 ?

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

Thanks
informatica
Posts: 99
Joined: Thu Jan 28, 2021 9:55 pm

Re: Fexes status not showing

Post by informatica »

the below is the device type and model

Manufacture: Cisco (N5K-C5548UP) Nexus
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Fexes status not showing

Post by gsmith »

Hi

Do you happen to have the MIB files?

Thanks
informatica
Posts: 99
Joined: Thu Jan 28, 2021 9:55 pm

Re: Fexes status not showing

Post by informatica »

Hi Team,

We are using only the attached script.
You do not have the required permissions to view the files attached to this post.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Fexes status not showing

Post 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
informatica
Posts: 99
Joined: Thu Jan 28, 2021 9:55 pm

Re: Fexes status not showing

Post 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
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Fexes status not showing

Post 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
informatica
Posts: 99
Joined: Thu Jan 28, 2021 9:55 pm

Re: Fexes status not showing

Post 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
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Fexes status not showing

Post by gsmith »

Hi

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

Thanks
Locked