Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import of template fail #80

Open
gmourani opened this issue Nov 27, 2018 · 23 comments
Open

Import of template fail #80

gmourani opened this issue Nov 27, 2018 · 23 comments

Comments

@gmourani
Copy link

I've created a new template then tried to import it after a fresh re-install of Cacti with reportit without success.

Here the error message during import time:
Checksun error with Template 1 in xml file.

screen shot 2018-11-27 at 4 04 32 pm

Regards,

@netniV
Copy link
Member

netniV commented Nov 28, 2018

Was it the same version of reportit? I made some radical changes to the import facility.

@gmourani
Copy link
Author

Cacti 1.1.38
Reportit upcoming 1.1.3

I'll download the latest dev code today Nov 28 2018 and test again.

@gmourani
Copy link
Author

I've tested with latest dev code now and still the same problem with checksum error.

@netniV
Copy link
Member

netniV commented Nov 29, 2018

Can you post your template or email it to me ([email protected]) and I can review it.

@gmourani
Copy link
Author

gmourani commented Nov 29, 2018 via email

@netniV
Copy link
Member

netniV commented Nov 30, 2018

I don't see an attachment on GitHub, does that mean you also emailed it to me?

@gmourani
Copy link
Author

gmourani commented Nov 30, 2018 via email

@netniV
Copy link
Member

netniV commented Nov 30, 2018

It was in the reply before last (eg, 3 emails ago).

@gmourani
Copy link
Author

gmourani commented Nov 30, 2018 via email

@netniV
Copy link
Member

netniV commented Jul 14, 2019

I've tried to replicate this issue but I have been unable to. If you are still getting this @gmourani it would be nice to have a dump of your database to see why you are....

@netniV
Copy link
Member

netniV commented Jul 18, 2019

Thanks, I have a copy of that now, I'll see what I can spot as being the problem.

@Cacti Cacti deleted a comment from gmourani Jul 18, 2019
@gmourani
Copy link
Author

Very nice, let me know if you need something else, thanks.

@netniV
Copy link
Member

netniV commented Jul 18, 2019

The DB doesn't appear to have the exported template...

@gmourani
Copy link
Author

I can't import the template. So it couldn't have something to export !

@netniV
Copy link
Member

netniV commented Jul 18, 2019

Ah, I expect the original DB that held the template so I could run checks during import/export.

@gmourani
Copy link
Author

I'm not awar of some initial template into the DB!

@netniV
Copy link
Member

netniV commented Jul 18, 2019

So where did the export come from?

@gmourani
Copy link
Author

From a previous template that I've manually created before exporting as xml file and that I've tried to import from by re-installing Cacti and plugins.

I've attached the exported xml template in this message, if this could help you.
Network-Traffic.xml.zip

@netniV
Copy link
Member

netniV commented Jul 21, 2019

Right, so I exported a template that I had, and then reimported it. However, my import didn't have an issue.

@netniV
Copy link
Member

netniV commented Jul 21, 2019

So, I went and disabled the checksum check and imported your template, then I exported it again and tried to import. Again, no errors. I wondered if you had an older version of the plugin where the problem existed but I ruled that out as the version says the same (unless its a patch within that version). But for now I can't reproduce this.

@netniV
Copy link
Member

netniV commented Jul 21, 2019

<?xml version="1.0" encoding="UTF-8"?>
<report_templates>
<report_template>
  <reportit>
    <version>1.1.3</version>
    <type>1</type>
    <hash>a5e27cd47092b42936c212e6789996bf</hash>
  </reportit>
  <settings>
    <id>22</id>
    <name>5 Minute Report</name>
    <user_id>0</user_id>
    <modified_by>0</modified_by>
    <last_modified>2018-10-03 13:20:30</last_modified>
    <author>admin</author>
    <version>1.0</version>
    <description>My desc</description>
    <pre_filter/>
    <data_template_id>1</data_template_id>
    <locked>on</locked>
    <enabled/>
    <export_folder/>
  </settings>
  <measurands>
		</measurands>
  <variables>
		</variables>
  <data_source_items>
    <data_source_item>
      <id>0</id>
      <template_id>22</template_id>
      <group_id>0</group_id>
      <data_template_id>0</data_template_id>
      <data_source_name>5min_cpu</data_source_name>
      <data_source_alias/>
      <data_source_title/>
      <data_source_mp>1</data_source_mp>
    </data_source_item>
  </data_source_items>
</report_template></report_templates>

@gmourani
Copy link
Author

Thanks for the feedback. To eliminate the possibility that it's a patch within that version, I can download the latest available version on GIT and taste with it to see if I get the same result?

@netniV
Copy link
Member

netniV commented Jul 22, 2019

You could copy the above XML directly from the page. However, I wouldn't recommend the tasting of git as that's going to take quite a few bytes to eat (seriously though you can replace the code with a git cloned one as long as the directory it the same)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants