Cisco ISR 4300 (CPU & Mem) Graph templates

Templates, scripts for templates, scripts and requests for templates.

Moderators: Moderators, Developers

Post Reply
Author
Message
User avatar
Pucho
Cacti User
Posts: 180
Joined: Wed Jul 20, 2016 8:00 pm

Cisco ISR 4300 (CPU & Mem) Graph templates

#1 Post by Pucho » Sun Oct 09, 2016 10:15 pm

Hi there,

Based on http://forums.cacti.net/viewtopic.php?f=12&t=54205

I created these templates. I've only tested these templates on Cisco ISR 4331 and 4321.

If you are insterested on what the OIDs are, check the data templates.

[update]I've just realised about the ugly ds names so I changed them to make them shorter[/update]

Cheers,
Attachments
Cacti Cisco ISR 4300 (cpu & mem).zip
(6.81 KiB) Downloaded 662 times
Cisco ISR 4300 CPU & Mem.png
Cisco ISR 4300 CPU & Mem.png (24.44 KiB) Viewed 5887 times
Cacti - 1.1.37
Poller Type - Spine
Weathermap 0.98a
Server Info - Linux 3.10.0 - Centos 7
Web Server - Apache/2.4.6 PHP 5.4.16
MySQL - 5.5 ;RRDTool - 1.4.8 ;SNMP - 5.7.2
Religion - Anti forum pets

Code: Select all

SYSTEM STATS: Time:17.7383 Method:spine Processes:1 Threads:10 Hosts:279 HostsPerProcess:279 DataSources:7309 RRDsProcessed:3718

Code: Select all

WEATHERMAP STATS: Weathermap 0.98 run complete - Thu, 16 Nov 17 08:42:56 +1300: 39 maps were run in 23.22 seconds with 0 warnings.

User avatar
Johnny Lingo
Posts: 27
Joined: Tue Feb 19, 2008 9:57 pm
Location: Silicon Valley, USA

Re: Cisco ISR 4300 (CPU & Mem) Graph templates

#2 Post by Johnny Lingo » Wed Apr 05, 2017 8:00 pm

Good stuff. FYI works great on a 4351 running 16.3.3 (Denali) software too. I'm going to see if I can make one for temperature.
Attachments
4351_cpu.png
4351_cpu.png (12.66 KiB) Viewed 4594 times
Server Info: Cacti 1.1.28 / NET-SNMP 5.5 / RRDTool 1.3.x / Apache 2.2.15 (CentOS) / PHP 5.3.3 / MySQL 5.1.73

User avatar
Johnny Lingo
Posts: 27
Joined: Tue Feb 19, 2008 9:57 pm
Location: Silicon Valley, USA

Re: Cisco ISR 4300 (CPU & Mem) Graph templates

#3 Post by Johnny Lingo » Thu Apr 06, 2017 10:34 pm

Here's mine for Temperature. FYI this should work on all 4000 series and the ISR 1000 series as well.

Cacti Template: Temperature on Cisco ISR 4000 / ASR 1000
Attachments
4351_temp.png
4351_temp.png (35.49 KiB) Viewed 4558 times
Server Info: Cacti 1.1.28 / NET-SNMP 5.5 / RRDTool 1.3.x / Apache 2.2.15 (CentOS) / PHP 5.3.3 / MySQL 5.1.73

User avatar
Pucho
Cacti User
Posts: 180
Joined: Wed Jul 20, 2016 8:00 pm

Re: Cisco ISR 4300 (CPU & Mem) Graph templates

#4 Post by Pucho » Tue Apr 11, 2017 4:07 pm

Johnny Lingo wrote:Here's mine for Temperature. FYI this should work on all 4000 series and the ISR 1000 series as well.

Cacti Template: Temperature on Cisco ISR 4000 / ASR 1000
Nice job! I'm going to test it now :D
Cacti - 1.1.37
Poller Type - Spine
Weathermap 0.98a
Server Info - Linux 3.10.0 - Centos 7
Web Server - Apache/2.4.6 PHP 5.4.16
MySQL - 5.5 ;RRDTool - 1.4.8 ;SNMP - 5.7.2
Religion - Anti forum pets

Code: Select all

SYSTEM STATS: Time:17.7383 Method:spine Processes:1 Threads:10 Hosts:279 HostsPerProcess:279 DataSources:7309 RRDsProcessed:3718

Code: Select all

WEATHERMAP STATS: Weathermap 0.98 run complete - Thu, 16 Nov 17 08:42:56 +1300: 39 maps were run in 23.22 seconds with 0 warnings.

HV
Posts: 11
Joined: Mon Apr 23, 2007 5:44 am

Re: Cisco ISR 4300 (CPU & Mem) Graph templates

#5 Post by HV » Sun Oct 22, 2017 8:20 am

I had a little problem with temp template. I mean, it is a different snmp oid between ISR4331 and ISR4321:
ISR4331
[[email protected] ~]# snmpwalk -c pass -v 2c 10.110.255.1 1.3.6.1.2.1.47 |grep Temp
SNMPv2-SMI::mib-2.47.1.1.1.1.2.7001 = STRING: "Temp: Inlet"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.7002 = STRING: "Temp: Internal"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.7003 = STRING: "Temp: Outlet"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.7004 = STRING: "Temp: CPU"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.7001 = STRING: "Temp: Inlet R0/0"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.7002 = STRING: "Temp: Internal R0/1"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.7003 = STRING: "Temp: Outlet R0/2"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.7004 = STRING: "Temp: CPU R0/3"
ISR4321
[[email protected] ~]# snmpwalk -c pass -v 2c 10.117.255.1 1.3.6.1.2.1.47 |grep Temp
SNMPv2-SMI::mib-2.47.1.1.1.1.2.7001 = STRING: "Temp: Internal"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.7002 = STRING: "Temp: Outlet"
SNMPv2-SMI::mib-2.47.1.1.1.1.2.7003 = STRING: "Temp: CPU"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.7001 = STRING: "Temp: Internal R0/0"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.7002 = STRING: "Temp: Outlet R0/1"
SNMPv2-SMI::mib-2.47.1.1.1.1.7.7003 = STRING: "Temp: CPU R0/2"

I used your template but I modified it for specific type of router.

Now I`m looking for the same but CPU. When I use your template, the cpu usage is about 15% but real CPU usage is 0%. The snmp oid is for older types of routers I mean. Is it possible that value 15% is zero and I have to decrement the value with 15? Because if I make a higher CPU usage, graph is higher too.
Can you help me? Thank you very much for your work and sorry for my english.
Attachments
CPU.jpg
CPU.jpg (63.5 KiB) Viewed 3459 times
ISR-Temp.zip
(7.78 KiB) Downloaded 133 times
ISR4321.jpg
ISR4321-temp
ISR4321.jpg (61.45 KiB) Viewed 3459 times
ISR4331-temp.jpg
ISR4331-temp
ISR4331-temp.jpg (68.41 KiB) Viewed 3459 times

User avatar
Pucho
Cacti User
Posts: 180
Joined: Wed Jul 20, 2016 8:00 pm

Re: Cisco ISR 4300 (CPU & Mem) Graph templates

#6 Post by Pucho » Mon Oct 23, 2017 4:29 pm

Yep, Cisco used to be pretty good at this, in the past, now days is becoming a real crap and I've been working with cisco techs for long time now..

I'm working on a new snmp data query to be able to walk through the existing sensors for IOS-XE and IOS-XR. Hardcoding OIDs was never a good practice anyway.

EDIT: Just in case you want to work around it, these are the OIDs for single CPUs

busyPer - 1.3.6.1.4.1.9.2.1.56 = CPU busy percentage in the last 5 second period. Not the last 5 realtime seconds but the last 5 second period in the scheduler.
avgBusy1 - 1.3.6.1.4.1.9.2.1.57 = 1 minute exponentially-decayed moving average of the CPU busy percentage.
avgBusy5 - 1.3.6.1.4.1.9.2.1.58 = 5 minute exponentially-decayed moving average of the CPU busy percentage.
Cacti - 1.1.37
Poller Type - Spine
Weathermap 0.98a
Server Info - Linux 3.10.0 - Centos 7
Web Server - Apache/2.4.6 PHP 5.4.16
MySQL - 5.5 ;RRDTool - 1.4.8 ;SNMP - 5.7.2
Religion - Anti forum pets

Code: Select all

SYSTEM STATS: Time:17.7383 Method:spine Processes:1 Threads:10 Hosts:279 HostsPerProcess:279 DataSources:7309 RRDsProcessed:3718

Code: Select all

WEATHERMAP STATS: Weathermap 0.98 run complete - Thu, 16 Nov 17 08:42:56 +1300: 39 maps were run in 23.22 seconds with 0 warnings.

User avatar
Johnny Lingo
Posts: 27
Joined: Tue Feb 19, 2008 9:57 pm
Location: Silicon Valley, USA

Re: Cisco ISR 4300 (CPU & Mem) Graph templates

#7 Post by Johnny Lingo » Fri Feb 02, 2018 6:41 pm

I recently got educated a bit on platform vs. processor CPU and Memory on IOS-XE. You can get vastly different results between the two:

Code: Select all

ISR4351#sh proc cpu
CPU utilization for five seconds: 1%/0%; one minute: 1%; five minutes: 1%

ISR4351#sh proc cpu platform 
CPU utilization for five seconds: 11%, one minute: 12%, five minutes: 11%

ISR4351#sh proc mem
Processor Pool Total: 1839882264 Used:  287575728 Free: 1552306536
 lsmpi_io Pool Total:    6295128 Used:    6294296 Free:        832

ISR4351#show platform resources 
**State Acronym: H - Healthy, W - Warning, C - Critical                                             
Resource                 Usage                 Max             Warning         Critical        State
----------------------------------------------------------------------------------------------------
RP0 (ok, active)                                                                               H    
 Control Processor       2.90%                 100%            90%             95%             H    
  DRAM                   3303MB(87%)           3790MB          90%             95%             H  

So I've done a rewrite and can see this in action. Have tested this on an ISR 4351 and ASR 1001x, but it should work for anything IOS-XE...
ios-xe_cpu.png
ios-xe_cpu.png (87.85 KiB) Viewed 2912 times
ios-xe_memory.png
ios-xe_memory.png (98.83 KiB) Viewed 2912 times
As far as Temperature it looks like anything will have to be model-specific.
Server Info: Cacti 1.1.28 / NET-SNMP 5.5 / RRDTool 1.3.x / Apache 2.2.15 (CentOS) / PHP 5.3.3 / MySQL 5.1.73

LdubSham
Posts: 10
Joined: Wed Nov 12, 2014 5:32 am

Re: Cisco ISR 4300 (CPU & Mem) Graph templates

#8 Post by LdubSham » Fri Jul 13, 2018 7:47 am

Johnny Lingo - Nice template for CPU and Memory. Are you able to share these please?

Thanks in Advance

User avatar
Johnny Lingo
Posts: 27
Joined: Tue Feb 19, 2008 9:57 pm
Location: Silicon Valley, USA

Re: Cisco ISR 4300 (CPU & Mem) Graph templates

#9 Post by Johnny Lingo » Fri Mar 01, 2019 3:00 pm

Hey there, sorry I dropped off. My company was acquired a few days after posting, so I lost track of this project for a bit.

I had to downgrade from 1.1 to 0.8.8.f, so whipped up a new template that I could fully test. For now it's a simplified version that only does 1 minute CPU checks, but may add the 5sec and 5min ones back in fairly soon.

Monitoring CPU & Memory in IOS-XE
Server Info: Cacti 1.1.28 / NET-SNMP 5.5 / RRDTool 1.3.x / Apache 2.2.15 (CentOS) / PHP 5.3.3 / MySQL 5.1.73

Post Reply