Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Wed Jan 23, 2019 3:20 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Juniper MX960 host template
PostPosted: Tue May 13, 2014 1:36 am 
Offline
Cacti User
User avatar

Joined: Wed Nov 09, 2005 8:35 am
Posts: 240
Location: Timisoara, Romania
looks like there is a problem with your perl modules, try to upgrade or reinstall

_________________
Check out my CACTI Templates


Top
 Profile  
 
 Post subject: Re: Juniper MX960 host template
PostPosted: Fri Jun 27, 2014 10:41 am 
Offline

Joined: Thu May 29, 2014 5:21 pm
Posts: 36
Well I have imported the Juniper MX960 template and I see that the graph templates and host templates are imported, but if I go to data queries, and click on Juniper data queries it says could not locate the XML file. Is that a problem? Did my import work?


Top
 Profile  
 
 Post subject: Re: Juniper MX960 host template
PostPosted: Mon Jun 30, 2014 1:13 am 
Offline
Cacti User
User avatar

Joined: Wed Nov 09, 2005 8:35 am
Posts: 240
Location: Timisoara, Romania
snasre wrote:
Well I have imported the Juniper MX960 template and I see that the graph templates and host templates are imported, but if I go to data queries, and click on Juniper data queries it says could not locate the XML file. Is that a problem? Did my import work?


you did not follow the steps describe, you need put the xml file in the <path_cacti>/resource/snmp_queries/

_________________
Check out my CACTI Templates


Top
 Profile  
 
 Post subject: Re: Juniper MX960 host template
PostPosted: Wed Jul 01, 2015 6:10 am 
Offline

Joined: Sun Jan 04, 2015 1:23 pm
Posts: 32
Sorry to bump this old thread but I'm curious if anybody succeed to use this template over other MX models (MX104 maybe?)


Top
 Profile  
 
 Post subject: Re: Juniper MX960 host template
PostPosted: Thu Sep 10, 2015 10:34 am 
Offline

Joined: Thu Sep 10, 2015 10:31 am
Posts: 1
Sorry, not tried this on any other MX, though likely to do so later this year.

For other that find this thread, the perl has a dependancy on 'SNMP_util', this can be installed using the package 'libsnmp-session-perl'


Top
 Profile  
 
 Post subject: Re: Juniper MX960 host template
PostPosted: Tue Oct 13, 2015 10:48 am 
Offline
Cacti User
User avatar

Joined: Wed Apr 27, 2005 9:37 am
Posts: 55
I'm having a similar problem after migrating Cacti to a new server. The script cannot poll my routers and for some reason, it keeps trying to use SNMPv1, according to the output:

Code:
SNMP Error:
no response received
SNMPv1_Session (remote host: "xx.xx.xx.xxxxxx.xx" [192.168.1.65].161)


I can query hosts from the Cacti server just fine using v2c. If I configure the router to accept SNMPv1 requests, it works, but I don't want to do that on all my routers. Is there a way to force these scripts to use SNMPv2c? I don't understand why it works on the old server and not the new, unless something has changed between the different versions of Perl/Net::SNMP.

EDIT: As is usually the case, after wasting half a day on the problem, I find the solution less than 60 minutes after posting to a public forum. The issue for me was the difference between the SNMP_util.pm on the old server and the new server. The new server helpfully had the following:

Code:
  $version = '1' unless defined $version;


Whereas the old server was:

Code:
  $version = '2c' unless defined $version;


Changed it and now everything works as it should.


Top
 Profile  
 
 Post subject: Re: Juniper MX960 host template
PostPosted: Tue Feb 23, 2016 12:32 pm 
Offline

Joined: Tue Jul 15, 2014 3:39 am
Posts: 42
nilsmax wrote:
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.


I know this is an old thread but has anyone found a solution to this error yet or point me to other juniper mx960 templates/

Thanks in advance


Top
 Profile  
 
 Post subject: Re: Juniper MX960 host template
PostPosted: Tue Mar 22, 2016 2:24 pm 
Offline

Joined: Tue Mar 22, 2016 2:20 pm
Posts: 1
Hi.
You need to install SNMP_util.pm http://www.filewatcher.com/m/SNMP_util.pm.41180-0.html


Top
 Profile  
 
 Post subject: Re: Juniper MX960 host template
PostPosted: Mon Oct 29, 2018 2:13 am 
Offline

Joined: Mon Oct 29, 2018 1:55 am
Posts: 21
hi All
I have installed cacti Version 1.1.38 on centos7 but i have missed to tick device template list so, i have download templates from (https://docs.cacti.net/templates) for Official Cacti 1.x Packages. but its there not there juniper M series official package.
there is Contributed Host Templates with juniper template which i have tried to install but its not working since its there are many .xml files as attached print screen,

Kindly someone send me a link to download Juniper M Series Device Template to run as below,

#cd /usr/share/cacti/cli/
# php ./import_template.php --filename=cacti_host_template_juniper_mx960.xml.gz


Thanks,


Attachments:
Capture.JPG
Capture.JPG [ 17.81 KiB | Viewed 75 times ]
Top
 Profile  
 
 Post subject: Re: Juniper MX960 host template
PostPosted: Mon Oct 29, 2018 7:22 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 1944
I'm not aware that there is a packaged version of the Juniper device. You can import the other template files (*.xml) using the Import/Export from the Console menu in Cacti itself.

_________________
Official Cacti Developer

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

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours


Who is online

Users browsing this forum: Bing [Bot] and 14 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