Juniper MX960 host template

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

Moderators: Developers, Moderators

User avatar
timi
Cacti User
Posts: 240
Joined: Wed Nov 09, 2005 8:35 am
Location: Timisoara, Romania
Contact:

Juniper MX960 host template

Post by timi »

so this is a host template that works for me, for juniper MX960 series, dont know if it will work on your mx960 ...
Attachments
dropqueue.png
dropqueue.png (43.28 KiB) Viewed 24003 times
domtemp.png
domtemp.png (17.28 KiB) Viewed 24003 times
cpufru.png
cpufru.png (28.55 KiB) Viewed 24003 times
buffer.png
buffer.png (18.1 KiB) Viewed 24003 times
Last edited by timi on Thu May 24, 2012 4:50 am, edited 1 time in total.
User avatar
timi
Cacti User
Posts: 240
Joined: Wed Nov 09, 2005 8:35 am
Location: Timisoara, Romania
Contact:

Re: Juniper MX960 host template

Post by timi »

continue
Attachments
pps.png
pps.png (33.07 KiB) Viewed 24002 times
kernel.png
kernel.png (18.62 KiB) Viewed 24002 times
heap.png
heap.png (17.84 KiB) Viewed 24002 times
errors.png
errors.png (31.48 KiB) Viewed 24002 times
User avatar
timi
Cacti User
Posts: 240
Joined: Wed Nov 09, 2005 8:35 am
Location: Timisoara, Romania
Contact:

Re: Juniper MX960 host template

Post by timi »

continue
Attachments
traffic.png
traffic.png (32.79 KiB) Viewed 24002 times
tempfru.png
tempfru.png (19.03 KiB) Viewed 24002 times
rx.png
rx.png (53.17 KiB) Viewed 24002 times
ppsqueue.png
ppsqueue.png (34.64 KiB) Viewed 24002 times
User avatar
timi
Cacti User
Posts: 240
Joined: Wed Nov 09, 2005 8:35 am
Location: Timisoara, Romania
Contact:

Re: Juniper MX960 host template

Post by timi »


the oids for interface statistics are not from IF-MIB, I used specific juniper oid for getting interface statistics

see my sig for downloads

thanks

User avatar
timi
Cacti User
Posts: 240
Joined: Wed Nov 09, 2005 8:35 am
Location: Timisoara, Romania
Contact:

Re: Juniper MX960 host template

Post by timi »

added traffic graphs for ipv6 interface
Attachments
ipv6.png
ipv6.png (25.22 KiB) Viewed 23950 times
gben
Posts: 10
Joined: Fri Apr 03, 2009 7:42 am

Re: Juniper MX960 host template

Post by gben »

Hello Timi,

I am trying to graph the ipv6 traffic on a Juniper MX960 ver10.4R7.5 but i cann't (Cacti version 8.8.a). I get the following error:

11/30/2012 11:25:12 AM - SYSTEM STATS: Time:11.1522 Method:cmd.php Processes:1 Threads:N/A Hosts:54 HostsPerProcess:54 DataSources:321 RRDsProcessed:163
11/30/2012 11:25:12 AM - CMDPHP: Poller[0] Host[88] Description[amsmx961] DS[507] Graphs['xe-1/1/1 - * Level_3_Amsterdam_ - bits/s (ipv6)'] WARNING: Result from SNMP not valid. Partial Result: U
11/30/2012 11:25:12 AM - CMDPHP: Poller[0] Host[88] Description[amsmx961] DS[507] Graphs['xe-1/1/1 - * Level_3_Amsterdam_ - bits/s (ipv6)'] WARNING: Result from SNMP not valid. Partial Result: U

The xe interface has ipv4 & ipv6 address (no subinterface).
Do you have any idea?
Thanks for your help.
gben
Posts: 10
Joined: Fri Apr 03, 2009 7:42 am

Re: Juniper MX960 host template

Post by gben »

After some research the MIB .1.3.6.1.4.1.2636.3.11.1.3 doesn't supported on my Junos release ver10.4R7.5 but after the 11.2.

Anyway, Timi thank you for the templates.
User avatar
timi
Cacti User
Posts: 240
Joined: Wed Nov 09, 2005 8:35 am
Location: Timisoara, Romania
Contact:

Re: Juniper MX960 host template

Post by timi »

it is very likely that earlier version of junos dont have that oid
suttu123
Posts: 3
Joined: Wed Jan 16, 2013 5:11 am

Re: Juniper MX960 host template

Post by suttu123 »

PLEASE HELP ME TO HAVE JUNIPER MX960 Total Users ( Active Users or Subscribers ) Cacti Template .

OID :
1.3.6.1.4.1.2636.3.64.1.1.1.1
User avatar
timi
Cacti User
Posts: 240
Joined: Wed Nov 09, 2005 8:35 am
Location: Timisoara, Romania
Contact:

Re: Juniper MX960 host template

Post by timi »

levi
Posts: 41
Joined: Wed Oct 24, 2007 1:08 am
Location: Yerevan, Armenia
Contact:

Re: Juniper MX960 host template

Post by levi »

Hi timi,

I am willing to use your templates to graph our devices.
Unfortunately I've faced some problems, couple them i was able to resolve by myself.
Firs of all there was a problem in Your Data templates with naming. All data sources have been generating with same string and I've got lots of Data Sources with exact same name (see the picture).
Iv'e fixed that by changing the name field Data Template.
For example for template "Juniper DOM RX Optical Monitor" I've changed name field to

Code: Select all

|host_description| - RX Power - |query_ifName| 
and this gave me more descriptive naming for Data Sources.
Another problem I've faces is related to perl script You wrote.
Particularly when i was trying to graph "Juniper MX960 Interface COS Queue Drop", the verbose query gave me:

Code: Select all

+ Running data query [11].
+ Found type = '4' [Script Query].
+ Found data query XML file at '/opt/cacti-0.8.8a/resource/script_queries/juniper_intcos.xml'
+ XML file parsed ok.
+ <arg_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting arg_index entries
+ Executing script for list of indexes 'perl /opt/cacti-0.8.8a/scripts/junipercos.pl 10.16.16.22 BGP/default@cactirocommunity index' Index Count: 0
+ Executing script query 'perl /opt/cacti-0.8.8a/scripts/junipercos.pl 10.16.16.22 BGP/default@cactirocommunity query index'
+ Executing script query 'perl /opt/cacti-0.8.8a/scripts/junipercos.pl 10.16.16.22 BGP/default@cactirocommunity query desc'
+ Executing script query 'perl /opt/cacti-0.8.8a/scripts/junipercos.pl 10.16.16.22 BGP/default@cactirocommunity query ifname'
+ Executing script query 'perl /opt/cacti-0.8.8a/scripts/junipercos.pl 10.16.16.22 BGP/default@cactirocommunity query ifalias'
+ Executing script query 'perl /opt/cacti-0.8.8a/scripts/junipercos.pl 10.16.16.22 BGP/default@cactirocommunity query iftype'
when I've tried to launch:

Code: Select all

perl /opt/cacti-0.8.8a/scripts/junipercos.pl 10.16.16.22 BGP/default@cactirocommunity
manually I've got no output.
As You can see from community "BGP/default@cactirocommunity" i am trying to get statistics from juniper's logical-system BGP's default routing instance and i guess symbols "/" and "@" are causing troubles.
Sure enough if i am querying the main instance with community "cactirocommunity" i am getting interfaces just fine.
And finally, just as a suggestion, it will be great to have all these with snmpv3 authentication also.

Please give me a clue with my problems, and thanks for great job!
P.S.
Just for info: I am using Ubuntu 12.04.2 LTS
P.P.S. Let me know if You need anything more.

Thanks in advance.
Attachments
Screenshot.png
Screenshot.png (197.73 KiB) Viewed 22563 times
Best Regards.
dttung
Posts: 9
Joined: Mon Jun 25, 2012 1:24 am

Re: Juniper MX960 host template

Post by dttung »

Dear Timi ;
I try with your template . But It 's only work with Interface Statistic .
Below is debug from Other template : Could you help me with bug ?

+ Running data query [20].
+ Found type = '4' [Script Query].
+ Found data query XML file at '/usr/share/cacti/resource/script_queries/juniper_int_queue.xml'
+ XML file parsed ok.
+ <arg_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting arg_index entries
+ Executing script for list of indexes 'perl /usr/share/cacti/scripts/juniper_int_queue.pl my_ip my_community index' Index Count: 0
+ Executing script query 'perl /usr/share/cacti/scripts/juniper_int_queue.pl my_ip my_community query index'
+ Executing script query 'perl /usr/share/cacti/scripts/juniper_int_queue.pl my_ip my_community query desc'
+ Executing script query 'perl /usr/share/cacti/scripts/juniper_int_queue.pl my_ip my_community query ifname'
+ Executing script query 'perl /usr/share/cacti/scripts/juniper_int_queue.pl my_ip my_community query ifalias'
+ Executing script query 'perl /usr/share/cacti/scripts/juniper_int_queue.pl my_ip my_community query iftype'
nilsmax
Posts: 2
Joined: Thu May 08, 2014 2:53 am

Re: Juniper MX960 host template

Post by nilsmax »

Every time i did add temple to my host i get following errors

This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information.
Select a graph type:


in Debug query i'm getting this

+ Running data query [12].
+ Found type = '4' [Script Query].
+ Found data query XML file at '/var/www/html/cacti/resource/script_queries/juniper.xml'
+ XML file parsed ok.
+ <arg_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting arg_index entries
+ Executing script for list of indexes 'perl /var/www/html/cacti/scripts/juniper.pl brio.englab.juniper.net public index' Index Count: 0
+ Executing script query 'perl /var/www/html/cacti/scripts/juniper.pl brio.englab.juniper.net public query index'
+ Executing script query 'perl /var/www/html/cacti/scripts/juniper.pl brio.englab.juniper.net public query description'


can you please help me on this.
Last edited by nilsmax on Thu May 08, 2014 3:12 am, edited 1 time in total.
User avatar
timi
Cacti User
Posts: 240
Joined: Wed Nov 09, 2005 8:35 am
Location: Timisoara, Romania
Contact:

Re: Juniper MX960 host template

Post by timi »

run the script manualy an see if it returns anything, if not then maybe there is a problema un the router like it has no oid for queue or something like it
nilsmax
Posts: 2
Joined: Thu May 08, 2014 2:53 am

Re: Juniper MX960 host template

Post by nilsmax »

:( So resolved the BER.PM issue and SNMP_Session.pm Issue ( which i copied from MRTG)..


Now following error. what next..

# perl /var/www/html/cacti/scripts/juniper.pl brio.englab.juniper.net public query index
Bareword "context_flag" not allowed while "strict subs" in use at /usr/lib/perl5/5.8.0/SNMP_Session.pm line 101.
BEGIN not safe after errors--compilation aborted at /usr/lib/perl5/5.8.0/SNMP_Session.pm line 490.
Compilation failed in require at /usr/lib/perl5/5.8.0/SNMP_util.pm line 35.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.0/SNMP_util.pm line 35.
Compilation failed in require at /var/www/html/cacti/scripts/juniper.pl line 6.
BEGIN failed--compilation aborted at /var/www/html/cacti/scripts/juniper.pl line 6.
[root@xpedia ~]#
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest