Juniper EX Host Template

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

Moderators: Developers, Moderators

Post Reply
robogoat
Posts: 7
Joined: Mon Oct 26, 2009 4:17 pm

Juniper EX Host Template

Post by robogoat »

I have created a host template for EX series Juniper switches. The template includes CPU, Memory usage and bandwidth in and out. The template should work on any Juniper device running JunOS but was created for EX4200. I am successfully using it on a set of SRX5800 in HA as well. Hopefully my naming conventions fit standard.

Hopefully it will help someone.

Thanks, Jim
Attachments
cacti_host_template_juniper_ex.xml
Juniper EX series host template with all dependencies
(153.18 KiB) Downloaded 7308 times
hipster
Posts: 30
Joined: Thu Mar 16, 2006 7:54 am

Post by hipster »

I tried to import but failed:

Warning: cannot yet handle MBCS in html_entity_decode()! in /usr/share/cacti/lib/import.php on line 914

Warning: cannot yet handle MBCS in html_entity_decode()! in /usr/share/cacti/lib/import.php on line 914

Notice: Undefined index: dep in /usr/share/cacti/templates_import.php on line 96


[fail] m [new]

Fatal error: Only variables can be passed by reference in /usr/share/cacti/templates_import.php on line 115

cacti Version 0.8.7e
robogoat
Posts: 7
Joined: Mon Oct 26, 2009 4:17 pm

Above error

Post by robogoat »

I can't seem to reproduce your error? 73 downloads now. Has anyone else seen this error? Is anyone successfully using the templates i uploaded?
jhemmen@avensus.nl
Posts: 1
Joined: Wed Dec 23, 2009 11:07 am
Location: The Netherlands

Juniper EX template

Post by jhemmen@avensus.nl »

Hi,

I am using Cacti Version 0.8.7c (CactiEZ) and by importing the Juniper EX switch template I've got the following error:

Error: XML: Hash version does not exist.

Using the text import:

Error: XML parse error.

Can someone tell me what is wrong?
Probably the hash... but how can i make it working....
gnaggies
Posts: 9
Joined: Mon Jan 10, 2005 5:44 am
Location: Wien

Post by gnaggies »

wrong Cacti version. you can only import into the version it was exported from.
Georg
pieterrr
Posts: 1
Joined: Wed Feb 10, 2010 6:31 am

Post by pieterrr »

robogoat, i'm using this template to monitor some ex3200 switches (all running junOS 10.0R2.10)
Except for the memory graphs the other 2 work fine

When i manually snmpwalk them I get no data from the memory oid you used in the host template (was this template made for junos 10 or lower?)

Could you maybe help me out finding out the right memory oid for junos 10 as I was unable to myself..
robogoat
Posts: 7
Joined: Mon Oct 26, 2009 4:17 pm

Post by robogoat »

pieterrr I'll help as much as I can. Can you post your snmpget for that OID?
ipbloke
Posts: 4
Joined: Thu Oct 09, 2008 5:08 pm

Post by ipbloke »

Cheers Jim, it worked for me...

Many thanks for sharing this :)

Matt
sor
Posts: 3
Joined: Fri May 21, 2010 8:32 pm

Post by sor »

Thanks! This pretty much worked for my evauation SRX100 straightaway. I've added some things: flow session, storage used, and temperature, might look at adding some of the juniper specific interface stuff later. This is my first export so hopefully everything works... I'm not sure about how the indexes on the storage will transfer to other systems, and there were no index labels in the juniper OIDs, might just have to change the last digits on the data templates.
Attachments
graph preview
graph preview
srx-cacti.png (201.06 KiB) Viewed 32003 times
cacti_host_template_juniper_srx.xml
srx cacti host template
(189.93 KiB) Downloaded 2769 times
Neal4IU
Posts: 6
Joined: Thu Feb 01, 2007 2:20 pm
Location: San Antonio, TX
Contact:

Post by Neal4IU »

First, let me say many thanks for this template. I am using it for EX4200s EX3200s and a SRX3600 HA pair. The SRX3600 are running JunOS 10.1R1.8 and I am having trouble getting the Flow sessions and temp working. I would really like to get a lot more info into Cacti from my SRX's but don't have much time. I am pushing our Juniper SE to get JTAC or some of the JunOS engineers to see if they can work some to this end. Thanks again for the template.
sor
Posts: 3
Joined: Fri May 21, 2010 8:32 pm

Post by sor »

See my threadon the juniper forums, usually it's just a matter of snmpwalking your device and tweaking the OIDs once you find out where they go. It's likely somewhat different due to the HA setup.
whygocrazy
Posts: 1
Joined: Fri Oct 17, 2008 12:51 pm

Re: Juniper EX Host Template

Post by whygocrazy »

So, let me first say Thanks for the template, it works great for interface/CPU/filesys on our SRX3600's. However the fsstats (firewall sessions) does not graph anything. Looking into the template there is one OID which is being polled, which does not exist on our SRX3600's. Since we have (6x) SPC's in the modular chassis walking back up the OID in the template one level shows (12x) objects with different index's, which I would guess are the identifiers for how many firewall sessions are being handled by each SPC. Below is the SNMP walk from our firewalls:

SNMPv2-SMI::enterprises.2636.3.39.1.12.1.1.1.6.5 = Gauge32: 29006
SNMPv2-SMI::enterprises.2636.3.39.1.12.1.1.1.6.6 = Gauge32: 57651
SNMPv2-SMI::enterprises.2636.3.39.1.12.1.1.1.6.7 = Gauge32: 58204
SNMPv2-SMI::enterprises.2636.3.39.1.12.1.1.1.6.8 = Gauge32: 57445
SNMPv2-SMI::enterprises.2636.3.39.1.12.1.1.1.6.9 = Gauge32: 55924
SNMPv2-SMI::enterprises.2636.3.39.1.12.1.1.1.6.12 = Gauge32: 56918
SNMPv2-SMI::enterprises.2636.3.39.1.12.1.1.1.6.31 = Gauge32: 28528
SNMPv2-SMI::enterprises.2636.3.39.1.12.1.1.1.6.32 = Gauge32: 57150
SNMPv2-SMI::enterprises.2636.3.39.1.12.1.1.1.6.33 = Gauge32: 57003
SNMPv2-SMI::enterprises.2636.3.39.1.12.1.1.1.6.34 = Gauge32: 56746
SNMPv2-SMI::enterprises.2636.3.39.1.12.1.1.1.6.35 = Gauge32: 55678
SNMPv2-SMI::enterprises.2636.3.39.1.12.1.1.1.6.38 = Gauge32: 55934

So, my question is; If I assume that id's 5-12 are the SPC's in the primary (node0) chassis and id's 31-38 are the SPC's in the secondary (node1) chassis, how would I change the data query to add the value of these (6x) OID's together and put them on one graph. More specifically, I would love to have a separate line for each SPC fiewall session value showing all on one graph.
weili8487
Posts: 1
Joined: Tue Nov 30, 2010 3:35 am

Re: Juniper EX template

Post by weili8487 »

jhemmen@avensus.nl wrote:Hi,

I am using Cacti Version 0.8.7c (CactiEZ) and by importing the Juniper EX switch template I've got the following error:

Error: XML: Hash version does not exist.

Using the text import:

Error: XML parse error.

Can someone tell me what is wrong?
Probably the hash... but how can i make it working....

Hi, I met this problem too, can you share me the version of your CACTI which works well ?
kingofnerds
Posts: 2
Joined: Fri Aug 05, 2011 8:11 am

Re: Juniper EX Host Template

Post by kingofnerds »

I was able to get this template working in an older version of cacti by changing the portion of the hash which represents the cacti version:

http://docs.cacti.net/howto:determine_c ... te_version
Rajn
Posts: 2
Joined: Wed Sep 09, 2015 6:54 pm

Re: Juniper EX Host Template

Post by Rajn »

hi there

I am getting the "SNMP error" below from one of our Juniper SRX240h2 device on cacti -

Model: srx240h2
JUNOS Software Release [12.1X44-D30.4]

From the Vebrose query for SNMP- interface Statistics

Data Query Debug Information
+ Running data query [1].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/var/www/html/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP get for num of indexes @ '.1.3.6.1.2.1.2.1.0' Index Count:
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1' Index Count: 0
+ No SNMP data returned

I don't see any graphs and the device state is showing down. can you please help me with this?? do I need to add anything on template ??
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests