centreon / centreon-plugins

Collection of standard plugins to discover and gather cloud-to-edge metrics and status across your whole IT infrastructure.
https://www.centreon.com
Apache License 2.0
310 stars 273 forks source link

[network::cisco::standard::ssh::plugin] - new mode to monitor uptime on single device for a cisco stack #3745

Closed joschi99 closed 3 months ago

joschi99 commented 2 years ago

If you have a Cisco stack monitoring the uptime using snmp show's only the uptime for the complete stack. Monitoring the uptime from any single stack member could allow to find out spontaneous reboot ecc. But this information is available only using SSH:

BS-A-S01#show version
Cisco IOS XE Software, Version 16.06.01
Cisco IOS Software [Everest], Catalyst L3 Switch Software (CAT9K_IOSXE), Version 16.6.1, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2017 by Cisco Systems, Inc.
Compiled Sat 22-Jul-17 05:51 by mcpre

Cisco IOS-XE software, Copyright (c) 2005-2017 by cisco Systems, Inc.
All rights reserved. Certain components of Cisco IOS-XE software are
licensed under the GNU General Public License ("GPL") Version 2.0. The
software code licensed under GPL Version 2.0 is free software that comes
with ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such
GPL code under the terms of GPL Version 2.0. For more details, see the
documentation or "License Notice" file accompanying the IOS-XE software,
or the applicable URL provided on the flyer accompanying the IOS-XE
software.

ROM: IOS-XE ROMMON
BOOTLDR: System Bootstrap, Version 16.6.1r [FC1], RELEASE SOFTWARE (P)

BS-A-S01 uptime is 27 weeks, 2 days, 21 hours, 2 minutes
Uptime for this control processor is 27 weeks, 2 days, 21 hours, 4 minutes
System returned to ROM by Power Failure
System image file is "flash:packages.conf"
Last reload reason: Power Failure

This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.

Technology Package License Information:

-----------------------------------------------------------------
Technology-package Technology-package
Current Type Next reboot
------------------------------------------------------------------
network-essentials Permanent network-essentials
dna-essentials Subscription dna-essentials

cisco C9300-24UX (X86) processor with 868521K/6147K bytes of memory.
Processor board ID FCW2141L01L
3 Virtual Ethernet interfaces
8 Gigabit Ethernet interfaces
64 Ten Gigabit Ethernet interfaces
4 Forty Gigabit Ethernet interfaces
2048K bytes of non-volatile configuration memory.
8388608K bytes of physical memory.
1638400K bytes of Crash Files at crashinfo:.
1638400K bytes of Crash Files at crashinfo-2:.
11264000K bytes of Flash at flash:.
11264000K bytes of Flash at flash-2:.
0K bytes of WebUI ODM Files at webui:.

Base Ethernet MAC Address : ec:1d:8b:0a:27:80
Motherboard Assembly Number : 73-17958-06
Motherboard Serial Number : FOC21374JNE
Model Revision Number : A0
Motherboard Revision Number : A0
Model Number : C9300-24UX
System Serial Number : FCW2141L01L

Switch Ports Model SW Version SW Image Mode
------ ----- ----- ---------- ---------- ----
* 1 38 C9300-24UX 16.6.1 CAT9K_IOSXE INSTALL
2 38 C9300-24UX 16.6.1 CAT9K_IOSXE INSTALL

Switch 02
---------
Switch uptime : 27 weeks, 2 days, 21 hours, 1 minute

Base Ethernet MAC Address : ec:1d:8b:0a:2b:80
Motherboard Assembly Number : 73-17958-06
Motherboard Serial Number : FOC21374JPS
Model Revision Number : A0
Motherboard Revision Number : A0
Model Number : C9300-24UX
System Serial Number : FCW2141L028

Configuration register is 0x102

Could you add a new mode to monitor the uptime for any stack member?

garnier-quentin commented 2 years ago

It's only available with the command show version? You can't have that information with a dedicated command for stack units ?

joschi99 commented 2 years ago

As I know there is no dedicated command to see the uptime from any stack member. The only way seems show version as I know.

lucie-dubrunfaut commented 3 months ago

Hello :)

This enhancement request seems particularly old so let me close it. If the enhancement request is still current, please address it here to be take into account and vote on. Thank you for your understanding.