Juniper template didn't loaded

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

Moderators: Developers, Moderators

Post Reply
Kaktus
Posts: 14
Joined: Wed Oct 04, 2017 3:45 am

Juniper template didn't loaded

Post by Kaktus »

Hi
I am running Cacti Version 1.1.38
For some reason can't import juniper related templates.
data_queries.png
data_queries.png (107.62 KiB) Viewed 5422 times
On official release page there are no new version for this files. Do you have any idea how to solve this issue?

cacti/resource/script_queries]$ ls -l
total 16
-rw-r--r-- 1 www-data www-data 1099 Apr 15 2018 host_cpu.xml
-rw-r--r-- 1 www-data www-data 1694 Apr 15 2018 host_disk.xml
-rw-r--r-- 1 www-data www-data 40 Apr 15 2018 index.php
-rw-r--r-- 1 www-data www-data 1363 Apr 15 2018 unix_disk.xml
All other querie templates has loaded successfully.
Thanks in advance
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Juniper template didn't loaded

Post by cigamit »

Some templates require you to copy files to their respective directories. That one may be one of them, but I don't know because I haven't looked at it.
Kaktus
Posts: 14
Joined: Wed Oct 04, 2017 3:45 am

Re: Juniper template didn't loaded

Post by Kaktus »

thank you,your solution solve my problem.

Anyhow i run into new one.Trying to make a graph for devices. For instance Juniper FRU CPU but even query is existing it's report that "NO ITEM FOUND"

Data query:



When I run in debug mode I get this:

Any suggestions?
Anyhow juniper.xml template is for Cacti 0.8X versin...there is no newer.

Thanks in advanced
Last edited by Kaktus on Wed Nov 25, 2020 3:00 pm, edited 1 time in total.
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Juniper template didn't loaded

Post by cigamit »

It seems that your devices don't have the OIDS that the template you are using needs. You may have to dig into the template, find the OID its using, and try to do an snmpwalk of the device yourself to verify.
Kaktus
Posts: 14
Joined: Wed Oct 04, 2017 3:45 am

Re: Juniper template didn't loaded

Post by Kaktus »

HI,
Is there any official list of MIB files that should be placed in usr/share/snmp/mibs directory?

when I do snmpwalk on localhosi I get hundreds of lines like this (all related to Cisco mibs):

Group not found in module (ciscoCtrlGroupRev3): At line 64 in /usr/share/snmp/mibs/CISCO-RTTMON-CAPABILITY.txt
Group not found in module (ciscoCtrlGroupRev5): At line 70 in /usr/share/snmp/mibs/CISCO-RTTMON-CAPABILITY.txt
Group not found in module (ciscoStatsGroupRev6): At line 114 in /usr/share/snmp/mibs/CISCO-RTTMON-CAPABILITY.txt
Group not found in module (ciscoStatsGroupRev6): At line 231 in /usr/share/snmp/mibs/CISCO-RTTMON-CAPABILITY.txt
Group not found in module (snmpCommunityTableGroup): At line 71 in /usr/share/snmp/mibs/CISCO-SNMP-COMMUNITY-CAPABILITY.txt
Group not found in module (snmpCommunityTableGroup): At line 113 in /usr/share/snmp/mibs/CISCO-SNMP-COMMUNITY-CAPABILITY.txt
Group not found in module (snmpCommunityTableGroup): At line 170 in /usr/share/snmp/mibs/CISCO-SNMP-COMMUNITY-CAPABILITY.txt
Group not found in module (cnatStatisticsGroup): At line 50 in /usr/share/snmp/mibs/CISCO-IETF-NAT-CAPABILITY.txt
Object not found in module (cnatConfDynAddrMapType): At line 172 in /usr/share/snmp/mibs/CISCO-IETF-NAT-CAPABILITY.txt
Object not found in module (cnatSessionOrigPulbicPort): At line 339 in /usr/share/snmp/mibs/CISCO-IETF-NAT-CAPABILITY.txt
Object not found in module (cnatSessionCurrentIdleTime): At line 349 in /usr/share/snmp/mibs/CISCO-IETF-NAT-CAPABILITY.txt
Object not found in module (cmsProfileReportSuppression): At line 70 in /usr/share/snmp/mibs/CISCO-MLD-SNOOPING-CAPABILITY.txt
Object not found in module (dsx1LineMode): At line 272 in /usr/share/snmp/mibs/CISCO-DS1-CAPABILITY.txt
Object not found in module (dsx1LineBuildOut): At line 278 in /usr/share/snmp/mibs/CISCO-DS1-CAPABILITY.txt
Object not found in module (dsx1LineMode): At line 435 in /usr/share/snmp/mibs/CISCO-DS1-CAPABILITY.txt
Object not found in module (dsx1LineBuildOut): At line 441 in /usr/share/snmp/mibs/CISCO-DS1-CAPABILITY.txt
Object not found in module (dsx1LineMode): At line 597 in /usr/share/snmp/mibs/CISCO-DS1-CAPABILITY.txt
...

Thanks a lot
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Juniper template didn't loaded

Post by TheWitness »

You may have to:

export MIBS=all

Before running the command.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Kaktus
Posts: 14
Joined: Wed Oct 04, 2017 3:45 am

Re: Juniper template didn't loaded

Post by Kaktus »

it is done during installation
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests