Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Mon Mar 25, 2019 12:50 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Cisco ISR 4300 (CPU & Mem) Graph templates
PostPosted: Sun Oct 09, 2016 10:15 pm 
Offline
Cacti User
User avatar

Joined: Wed Jul 20, 2016 8:00 pm
Posts: 180
Hi there,

Based on Cisco Nexus 5K CPU and Memory Templates

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 579 times
Cisco ISR 4300 CPU & Mem.png
Cisco ISR 4300 CPU & Mem.png [ 24.44 KiB | Viewed 4971 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:
SYSTEM STATS: Time:17.7383 Method:spine Processes:1 Threads:10 Hosts:279 HostsPerProcess:279 DataSources:7309 RRDsProcessed:3718

Code:
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.
Top
 Profile  
 
 Post subject: Re: Cisco ISR 4300 (CPU & Mem) Graph templates
PostPosted: Wed Apr 05, 2017 8:00 pm 
Offline
User avatar

Joined: Tue Feb 19, 2008 9:57 pm
Posts: 27
Location: Silicon Valley, USA
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 3678 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
Top
 Profile  
 
 Post subject: Re: Cisco ISR 4300 (CPU & Mem) Graph templates
PostPosted: Thu Apr 06, 2017 10:34 pm 
Offline
User avatar

Joined: Tue Feb 19, 2008 9:57 pm
Posts: 27
Location: Silicon Valley, USA
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 3642 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
Top
 Profile  
 
 Post subject: Re: Cisco ISR 4300 (CPU & Mem) Graph templates
PostPosted: Tue Apr 11, 2017 4:07 pm 
Offline
Cacti User
User avatar

Joined: Wed Jul 20, 2016 8:00 pm
Posts: 180
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:
SYSTEM STATS: Time:17.7383 Method:spine Processes:1 Threads:10 Hosts:279 HostsPerProcess:279 DataSources:7309 RRDsProcessed:3718

Code:
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.


Top
 Profile  
 
 Post subject: Re: Cisco ISR 4300 (CPU & Mem) Graph templates
PostPosted: Sun Oct 22, 2017 8:20 am 
Offline

Joined: Mon Apr 23, 2007 5:44 am
Posts: 11
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 2543 times ]
ISR-Temp.zip [7.78 KiB]
Downloaded 100 times
File comment: ISR4321-temp
ISR4321.jpg
ISR4321.jpg [ 61.45 KiB | Viewed 2543 times ]
File comment: ISR4331-temp
ISR4331-temp.jpg
ISR4331-temp.jpg [ 68.41 KiB | Viewed 2543 times ]
Top
 Profile  
 
 Post subject: Re: Cisco ISR 4300 (CPU & Mem) Graph templates
PostPosted: Mon Oct 23, 2017 4:29 pm 
Offline
Cacti User
User avatar

Joined: Wed Jul 20, 2016 8:00 pm
Posts: 180
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:
SYSTEM STATS: Time:17.7383 Method:spine Processes:1 Threads:10 Hosts:279 HostsPerProcess:279 DataSources:7309 RRDsProcessed:3718

Code:
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.


Top
 Profile  
 
 Post subject: Re: Cisco ISR 4300 (CPU & Mem) Graph templates
PostPosted: Fri Feb 02, 2018 6:41 pm 
Offline
User avatar

Joined: Tue Feb 19, 2008 9:57 pm
Posts: 27
Location: Silicon Valley, USA
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:
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...

Attachment:
ios-xe_cpu.png
ios-xe_cpu.png [ 87.85 KiB | Viewed 1996 times ]
Attachment:
ios-xe_memory.png
ios-xe_memory.png [ 98.83 KiB | Viewed 1996 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


Top
 Profile  
 
 Post subject: Re: Cisco ISR 4300 (CPU & Mem) Graph templates
PostPosted: Fri Jul 13, 2018 7:47 am 
Offline

Joined: Wed Nov 12, 2014 5:32 am
Posts: 10
Johnny Lingo - Nice template for CPU and Memory. Are you able to share these please?

Thanks in Advance


Top
 Profile  
 
 Post subject: Re: Cisco ISR 4300 (CPU & Mem) Graph templates
PostPosted: Fri Mar 01, 2019 3:00 pm 
Offline
User avatar

Joined: Tue Feb 19, 2008 9:57 pm
Posts: 27
Location: Silicon Valley, USA
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group