Juniper RPM (IP-SLA)

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

Moderators: Developers, Moderators

Post Reply
moonman
Cacti User
Posts: 101
Joined: Sat Sep 06, 2003 10:25 am

Juniper RPM (IP-SLA)

Post by moonman »

Hi

Here is juniper RPM template it use perl script to query the router for the tests

To Install :
put the juniper-rpm.pl file in the scripts folder
the juniper-rpm.xml file in resource/script_queries folder
and import the third file

the problem with this mib is that the index is based on SnmpAdminString where each word is prefix with its length and the word is in ascii Decimal format so I need to find the length and then the string and then convert it to ascii in the query stage
and when I want to to get the resoult I need to convert it back to the OID

Nitzan
Attachments
juniper-rpm.zip
(4.54 KiB) Downloaded 1348 times
gnoz
Posts: 1
Joined: Tue Aug 03, 2010 3:57 am

Post by gnoz »

This script very useful. Thank so much.
aerce
Posts: 18
Joined: Sat Mar 19, 2005 8:24 am

Re: Juniper RPM (IP-SLA)

Post by aerce »

hi moonman,

i just tried to use the template, and got "Error in data query".
please help me what step for me to do so i can monitor latency and packet loss between routers.
i have configured service rpm on the router.

many thanks.
ognjen
Posts: 10
Joined: Fri Oct 12, 2007 12:26 pm

Re: Juniper RPM (IP-SLA)

Post by ognjen »

Hi guys

has anyone gotten this to work? I have empty graphs. Installation went without a problem but the graph is empty and it only picks up one
interface instead of 10 that i have configured with RPM.
richardvk
Posts: 1
Joined: Mon Mar 07, 2011 7:36 am

Re: Juniper RPM (IP-SLA)

Post by richardvk »

Hi,

This worked out the box on Ubuntu/Debian, but the juniper-rpm.pl needed a bit of tweaking for FreeBSD. Apply the attached patch with:

> patch juniper-rpm.pl juniper-rpm-freebsd_pl.patch

Richard
Attachments
juniper-rpm-freebsd_pl.patch
(899 Bytes) Downloaded 566 times
Last edited by richardvk on Mon Mar 07, 2011 8:15 am, edited 1 time in total.
ognjen
Posts: 10
Joined: Fri Oct 12, 2007 12:26 pm

Re: Juniper RPM (IP-SLA)

Post by ognjen »

Hi guys

i am wondering if anyone can help, i downloaded and installed juniper-rpm template i found on the forum. Installation was smooth easy and no errors, but the graph show nan values. If i check my log i can see that i am getting data but the graph never get updated. Any help on this is appreciated. My log shows the following:

03/23/2011 05:50:52 PM - CMDPHP: Poller[0] Host[9] DS[3374] CMD: /usr/bin/perl /var/www/html/cacti/scripts/juniper-rpm.pl ip public get jitter JB-ID-MSC-MX-to-CT-RO-MSC-M.ICMP, output: U
03/23/2011 05:50:52 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/html/cacti/rra/jb-id-msc-mx_avaragertt_3374.rrd --template avaragertt:jitter 1300895433:U:U
03/23/2011 05:55:51 PM - CMDPHP: Poller[0] Host[9] DS[3374] CMD: /usr/bin/perl /var/www/html/cacti/scripts/juniper-rpm.pl ip public get jitter JB-ID-MSC-MX-to-CT-RO-MSC-M.ICMP, output: U
03/23/2011 05:55:51 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/html/cacti/rra/jb-id-msc-mx_avaragertt_3374.rrd --template avaragertt:jitter 1300895733:U:U
03/23/2011 06:00:49 PM - CMDPHP: Poller[0] Host[9] DS[3374] CMD: /usr/bin/perl /var/www/html/cacti/scripts/juniper-rpm.pl ip public get jitter JB-ID-MSC-MX-to-CT-RO-MSC-M.ICMP, output: U
03/23/2011 06:00:49 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/html/cacti/rra/jb-id-msc-mx_avaragertt_3374.rrd --template jitter:avaragertt 1300896033:U:U
prk
Posts: 1
Joined: Mon Oct 06, 2014 9:23 pm

Re: Juniper RPM (IP-SLA)

Post by prk »

Hi all,

I've updated moonman's original bundle to include support for Juniper RPM packet loss ( jnxRpmResSumPercentLost )

I've also fixed a few typoes (junper -> juniper, avarage -> average)

The attached bundle contains the following files:

juniper-rpm.pl
juniper-rpm-pktloss.xml
juniper-rpm-rttjitter.xml
cacti_data_query_juniper_rpm_packetloss.xml
cacti_data_query_juniper_rpm_rttjitter.xml

Put juniper.rpm.pl in your cacti scripts directory
Put juniper-rpm-pktloss.xml & juniper-rpm-rttjitter.xml in your cacti resource/script_queries directory
Import cacti_data_query_juniper_rpm_packetloss.xml & cacti_data_query_juniper_rpm_rttjitter.xml as templates.

Huge thanks to moonman for the original bundle.

Note - provided as is, without warranty or support :P

prk.
Attachments
juniper-rpm-rtt_jitter_pktloss.tgz
Juniper RPM RTT, Jitter & Packetloss bundle
(5.03 KiB) Downloaded 578 times
titanman
Posts: 2
Joined: Wed Apr 08, 2015 11:38 pm

Re: Juniper RPM (IP-SLA)

Post by titanman »

I seem to be having the same issue as ognjen, no data in my graph and "-nan" value in the current, average and maximum fields.

Was anyone able to resolve the issue?
Attachments
example_1.jpg
example_1.jpg (56.89 KiB) Viewed 8242 times
moonman
Cacti User
Posts: 101
Joined: Sat Sep 06, 2003 10:25 am

Re: Juniper RPM (IP-SLA)

Post by moonman »

Please see new version with packet loss monitoring and few fixes

Nitzan
Attachments
Juniper-RPM.zip
(5.95 KiB) Downloaded 377 times
titanman
Posts: 2
Joined: Wed Apr 08, 2015 11:38 pm

Re: Juniper RPM (IP-SLA)

Post by titanman »

Nitzan,

What version of Cacti are you using?

I'm trying to implement these files on Cacti version 0.8.8a.

I'm seeing these errors:

11/11/2015 12:25:05 PM - CMDPHP: Poller[0] Host[240] DS[14127] CMD: /usr/bin/perl /var/www/cacti/scripts/juniper-rpm.pl hostname.com communitystring get average p1.source_to_destination, output: 211146
11/11/2015 12:25:05 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti/rra/hostname_received_14127.rrd --template jitter:received:avaragertt:percent_lost:sent 1447262704:U:U:U:U:U

The perl script is also ran for jitter, received, sent, and percent loss, these also return integer values.

Any help would be greatly appreciated!!!

Titanman
queenieR
Posts: 1
Joined: Mon May 14, 2018 12:38 am

Re: Juniper RPM (IP-SLA)

Post by queenieR »

Hi, may I know what cacti versions supports Juniper RPM?
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Juniper RPM (IP-SLA)

Post by netniV »

queenieR wrote:Hi, may I know what cacti versions supports Juniper RPM?
From the looks of things, the template was implement in 0.8.8. However, for them to work in 1.x, some work may be required.
titanman wrote:Nitzan,

What version of Cacti are you using?

I'm trying to implement these files on Cacti version 0.8.8a.

I'm seeing these errors:

11/11/2015 12:25:05 PM - CMDPHP: Poller[0] Host[240] DS[14127] CMD: /usr/bin/perl /var/www/cacti/scripts/juniper-rpm.pl hostname.com communitystring get average p1.source_to_destination, output: 211146
11/11/2015 12:25:05 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/cacti/rra/hostname_received_14127.rrd --template jitter:received:avaragertt:percent_lost:sent 1447262704:U:U:U:U:U

The perl script is also ran for jitter, received, sent, and percent loss, these also return integer values.

Any help would be greatly appreciated!!!

Titanman
Those are not errors, they are debug logs.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests