Error while importing template "unmet dependency"

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Moderators, Developers

Post Reply
Author
Message
Deviloper
Cacti User
Posts: 256
Joined: Tue Jul 07, 2009 8:03 am

Error while importing template "unmet dependency"

#1 Post by Deviloper » Tue Sep 22, 2009 5:39 am

Hi there,

I exported all graph, data, host and query templates from my pilot-system to integrate them into my production system. the rpoduction system is a freshly installed and configured cacti.

I importat all templates to. And noticed some Errors complaining about "unmet dependencies". I exported with "Include Dependency"-Save file localy. And importat "Use defaults for this installation (Recommended)". I tryed importing very template two times so all depedencies should be solved at the 2nd try. But this was not the case.

So I am a little worried about the missing "dependencies".

Thanks
Boa

User avatar
gandalf
Developer
Posts: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#2 Post by gandalf » Tue Sep 22, 2009 3:45 pm

As I suppose, you are running two systems at the same software level.
Then, please tell us, which template was throwing that error. Please provide the XML for that template in order to reproduce
Reinhard

User avatar
BSOD2600
Cacti Moderator
Posts: 12160
Joined: Sat May 08, 2004 12:44 pm
Location: USA

#3 Post by BSOD2600 » Tue Sep 22, 2009 7:40 pm

Depending on what you're doing... there is an unreleased patch (in the SVN) which fixes some issues with the database and hash creation for templates. There was also a tool which fixes the templates (repair_templates.php) released.

Deviloper
Cacti User
Posts: 256
Joined: Tue Jul 07, 2009 8:03 am

#4 Post by Deviloper » Wed Sep 23, 2009 2:50 am

Error output and Template.

Cacti 0.8.7.e fully Patched with PA 2.5.


###############################################
CDEF
[success] Turn Bytes into Bits [update]
[success] Multiply by 1000000 [update]

GPRINT Preset
[success] Normal [update]

Data Input Method
[success] Get SNMP Data (Indexed) [update]

Data Template
[success] Interface - HighTraffic [update]
[success] Interface - Errors/Discards [update]
[success] Enhanced Interface - HighCasts 64Bit [update]

Graph Template
[success] Interface - Traffic (bits/sec Total Bandwidth 64-Bit) [update]
[success] Interface - Errors/Discards HC [update]
[success] Enhanced Interface - Traffic 64Bit [update]

Data Query
[success] SNMP - High Speed Interface Statistics [update]
+ Found Dependency: (Data Input Method) Get SNMP Data (Indexed)
+ Found Dependency: (Graph Template) Enhanced Interface - Traffic 64Bit
+ Found Dependency: (Data Template) Interface - Errors/Discards
+ Found Dependency: (Data Template Item) errors_in
+ Found Dependency: (Data Template Item) discards_in
+ Found Dependency: (Data Template Item) discards_out
+ Found Dependency: (Data Template Item) errors_out
+ Unmet Dependency: (Data Template) Interface - Unicast Packets
+ Unmet Dependency: (Data Template Item) unicast_in
+ Unmet Dependency: (Data Template Item) unicast_out
+ Found Dependency: (Data Template) Interface - HighTraffic
+ Found Dependency: (Data Template Item) hc_traffic_in
+ Found Dependency: (Data Template Item) hc_traffic_out
+ Found Dependency: (Data Template Item) hcspeed
+ Unmet Dependency: (Data Template) Interface - HCUnicast Packets
+ Unmet Dependency: (Data Template Item) hc_unicast_in
+ Unmet Dependency: (Data Template Item) hc_unicast_out
+ Found Dependency: (Data Template) Enhanced Interface - HighCasts 64Bit
+ Found Dependency: (Data Template Item) ifHCInMulticastPkts
+ Found Dependency: (Data Template Item) ifHCOutMulticastPkt
+ Found Dependency: (Data Template Item) ifHCInBroadcastPkts
+ Found Dependency: (Data Template Item) ifHCOutBroadcastPkt
+ Found Dependency: (Data Template Item) ifHCInUcastPkts
+ Found Dependency: (Data Template Item) ifHCOutUcastPkts
+ Found Dependency: (Graph Template) Interface - Traffic (bits/sec, Total Bandwidth 64-Bit)
+ Unmet Dependency: (Data Template) Interface - Traffic
+ Unmet Dependency: (Data Template Item) traffic_in
+ Unmet Dependency: (Data Template Item) traffic_out
+ Found Dependency: (Graph Template) Interface - Errors/Discards HC

Host Template
[success] Firewall HighSpeed [update]
###############################################
Attachments
cacti_host_template_firewall_highspeed.xml
The Template.
(75.83 KiB) Downloaded 268 times

User avatar
BSOD2600
Cacti Moderator
Posts: 12160
Joined: Sat May 08, 2004 12:44 pm
Location: USA

#5 Post by BSOD2600 » Wed Sep 23, 2009 11:53 am

Adding the repair template script for you to try running. Backup your database first, just in case. Although the problem will keep occurring until the Cacti files get fixed.

No specific bug which this was worked under with the developers, but bug 1461 and bug 1366 have all the relations of the effected bugs. The updated code is in the SVN and awaiting release by Rony.
Attachments
repair_templates.zip
(1.58 KiB) Downloaded 312 times

Deviloper
Cacti User
Posts: 256
Joined: Tue Jul 07, 2009 8:03 am

#6 Post by Deviloper » Wed Sep 23, 2009 4:20 pm

I am glad to hear that.

Also it looks like this bug cause no problems after the import is done. the imported templates look like if they work correctly (I would not place my hand in fire for that by now)-

User avatar
TheWitness
Developer
Posts: 14817
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

#7 Post by TheWitness » Wed Sep 23, 2009 7:43 pm

This was released in an official patch a few weeks ago.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.

Post Reply