Juniper RPM (IP-SLA)
Moderators: Developers, Moderators
Juniper RPM (IP-SLA)
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
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
Re: Juniper RPM (IP-SLA)
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.
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.
Re: Juniper RPM (IP-SLA)
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.
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.
Re: Juniper RPM (IP-SLA)
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
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.
Re: Juniper RPM (IP-SLA)
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
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
Re: Juniper RPM (IP-SLA)
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
prk.
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
prk.
- Attachments
-
- juniper-rpm-rtt_jitter_pktloss.tgz
- Juniper RPM RTT, Jitter & Packetloss bundle
- (5.03 KiB) Downloaded 578 times
Re: Juniper RPM (IP-SLA)
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?
Was anyone able to resolve the issue?
- Attachments
-
- example_1.jpg (56.89 KiB) Viewed 8247 times
Re: Juniper RPM (IP-SLA)
Please see new version with packet loss monitoring and few fixes
Nitzan
Nitzan
- Attachments
-
- Juniper-RPM.zip
- (5.95 KiB) Downloaded 379 times
Re: Juniper RPM (IP-SLA)
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
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
Re: Juniper RPM (IP-SLA)
Hi, may I know what cacti versions supports Juniper RPM?
Re: Juniper RPM (IP-SLA)
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.queenieR wrote:Hi, may I know what cacti versions supports Juniper RPM?
Those are not errors, they are debug logs.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
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Who is online
Users browsing this forum: No registered users and 3 guests