nmidDataExport plugin released

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

optimuscream
Posts: 39
Joined: Mon Jun 13, 2011 11:20 pm

Re: nmidDataExport plugin released

Post by optimuscream »

Hi Phalek.

I've made the change ,

But still not work. No difference.

Code: Select all

"Date","Inbound","Outbound"
"2015-05-29 07:35:00","",""
"2015-05-29 07:40:00","",""
"2015-05-29 07:45:00","",""
"2015-05-29 07:50:00","",""
"2015-05-29 07:55:00","",""
"2015-05-29 08:00:00","",""
"2015-05-29 08:05:00","",""
"2015-05-29 08:10:00","",""
"2015-05-29 08:15:00","",""
"2015-05-29 08:20:00","",""
"2015-05-29 08:25:00","",""
"2015-05-29 08:30:00","",""
"2015-05-29 08:35:00","",""
optimuscream
Posts: 39
Joined: Mon Jun 13, 2011 11:20 pm

Re: nmidDataExport plugin released

Post by optimuscream »

Hello Phalek ,

I'm using second method now.

the rrdtool daemon that fill up the cpu resources before turns out originated from built-in Cacti Settings (Graph Export) that I played before.
It eat a lot cpu resources until the unit non responsive. After I disabled it the system now running well.

It collecting the graph every 5 minutes with the time range one hour.
Now I have to make a script to merge all the 5 minutes files to one big files of one month data.

Thks.
NaT1
Posts: 32
Joined: Sun Jan 04, 2015 1:23 pm

Re: nmidDataExport plugin released

Post by NaT1 »

Hi

Any idea why I'm getting values every 2.5h exactly for graphs generated from same device while others from others are exporting just fine every less than 5min.
Ignore the values of the in/out, currently no traffic on this interface.

Code: Select all


"Date","Inbound","Outbound"
"2015-07-21 19:12:00","0.00","0.00"
"2015-07-21 21:36:00","243860.38","0.00"
"2015-07-22 00:00:00","534107.69","0.00"
"2015-07-22 02:24:00","606122.81","0.00"
"2015-07-22 04:48:00","678016.32","0.00"
"2015-07-22 07:12:00","639967.65","0.00"
"2015-07-22 09:36:00","666183.50","0.00"
"2015-07-22 12:00:00","642326.01","0.00"
"2015-07-22 14:24:00","0.00","0.00"
"2015-07-22 16:48:00","0.00","0.00"
"2015-07-22 19:12:00","0.00","0.00"
"2015-07-22 21:36:00","0.00","0.00"
"2015-07-23 00:00:00","0.00","0.00"
"2015-07-23 02:24:00","0.00","0.00"
"2015-07-23 04:48:00","0.00","0.00"
below that's a good one. Less than 5min sample

Code: Select all

"Date","Inbound","Outbound"
"2015-07-21 19:12:00","0.00","0.00"
"2015-07-21 19:16:30","0.00","0.00"
"2015-07-21 19:21:00","0.00","0.00"
"2015-07-21 19:25:30","0.00","0.00"
"2015-07-21 19:30:00","0.00","0.00"
"2015-07-21 19:34:30","0.00","0.00"
"2015-07-21 19:39:00","0.00","0.00"
"2015-07-21 19:43:30","0.00","0.00"
"2015-07-21 19:48:00","0.00","0.00"
"2015-07-21 19:52:30","0.00","0.00"
"2015-07-21 19:57:00","0.00","0.00"
"2015-07-21 20:01:30","0.00","0.00"
"2015-07-21 20:06:00","0.00","0.00"
"2015-07-21 20:10:30","0.00","0.00"
"2015-07-21 20:15:00","0.00","0.00"
"2015-07-21 20:19:30","0.00","0.00"
"2015-07-21 20:24:00","0.00","0.00"
"2015-07-21 20:28:30","0.00","0.00"
"2015-07-21 20:33:00","0.00","0.00"
I export interface graphs and tried already to delete the problematic graphs with the data sources as well , added it back but nothing seems to work.

Any clue ?

Thanks
rovshango
Posts: 11
Joined: Tue Feb 10, 2015 3:56 am

Re: nmidDataExport plugin released

Post by rovshango »

Hi Guys,

I am getting validation error after selecting Auto Export > Go.

Please give solution if you got this fixed.

Thanks
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: nmidDataExport plugin released

Post by phalek »

Hi

Try this: In cacti/site/include/csrf/csrf_magic.php put $GLOBALS['csrf']['defer'] = true;
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
rovshango
Posts: 11
Joined: Tue Feb 10, 2015 3:56 am

Re: nmidDataExport plugin released

Post by rovshango »

phalek wrote:Hi

Try this: In cacti/site/include/csrf/csrf_magic.php put $GLOBALS['csrf']['defer'] = true;
Sorry but I couldn't locate cacti/site/include/csrf/csrf_magic.php file at all.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: nmidDataExport plugin released

Post by phalek »

Search for it under your cacti install dir.

/path/to/cacti/include/csrf/csrf_magic.php

In CactiEZ it's here:

/var/www/html/include/csrf/csrf_magic.php
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
rovshango
Posts: 11
Joined: Tue Feb 10, 2015 3:56 am

Re: nmidDataExport plugin released

Post by rovshango »

Well, seems I missed some posts.
Cause I do not have even "csrf" directory.
msantana
Posts: 27
Joined: Mon May 18, 2009 8:33 am

Re: nmidDataExport plugin released

Post by msantana »

Hi folks,

I'm ashamed to ask this question, but once a wise person told me a stupid question is the one you don't ask... ;)

After installing the plugin, I use the process to create an automated report and nothing really happens. The attached file is a screenshot I get after clicking Go (after selecting a graph and selected "Automated Export - Add to Export"). Not sure if this is the correct response.

I noticed no file is generated in the export directory and I also check my cacti log file and notice the script does not generate a file.

03/30/2016 12:05:18 PM - nmidDataExport: Poller[0] Exported 0 file(s)
03/30/2016 12:10:17 PM - nmidDataExport: Poller[0] Exported 0 file(s)
03/30/2016 12:15:18 PM - nmidDataExport: Poller[0] Exported 0 file(s)
03/30/2016 12:20:17 PM - nmidDataExport: Poller[0] Exported 0 file(s)
03/30/2016 12:25:17 PM - nmidDataExport: Poller[0] Exported 0 file(s)

Has someone had a similar symptom? How can I solve this?

Thanks!
Attachments
screenshot.png
screenshot.png (216.41 KiB) Viewed 15848 times
msantana
Posts: 27
Joined: Mon May 18, 2009 8:33 am

Re: nmidDataExport plugin released

Post by msantana »

Managed to solve it. Somehow, the plugin was conflicting with the threshold plugin. After disabling and enabling the threshold plugin, the dataexport plugin began to generate the files.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: nmidDataExport plugin released

Post by phalek »

Great to hear that. Btw. is threshold plugin = Thold ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
msantana
Posts: 27
Joined: Mon May 18, 2009 8:33 am

Re: nmidDataExport plugin released

Post by msantana »

Correct. Regards
torohuang
Posts: 1
Joined: Wed Nov 20, 2013 6:02 am

Re: nmidDataExport plugin released

Post by torohuang »

Hi, I got the same problem, and I already disabling and enabling the threshold plugin, but still not working.
Someone can help me fix it?
msantana
Posts: 27
Joined: Mon May 18, 2009 8:33 am

Re: nmidDataExport plugin released

Post by msantana »

Hi torohuang

I'm not an expert on this, try going to the Plugin Management section and make sure the NmidDataExport plugin is loaded before the Thold plugin. You'd have to click the "Load Order**" option, this provides you the ability to move the load order.

I hope this helps...
msantana
Posts: 27
Joined: Mon May 18, 2009 8:33 am

Re: nmidDataExport plugin released

Post by msantana »

Hi folks.

This is a very old plugin but I hope someone can help me with a simple question.

I installed the plugin in the directory /var/www/html/cacti/plugins/nmidDataExport/export.

Within the export directory there's a file called index.html that contains the list of graphs that are using the plugin. This file may also reference any deleted graph that was not properly removed from the script. To properly remove the reference to
a graph one should the "Automate Export - Remove Graph(s)" option under the graph management.

How do I eliminate the reference the script is making to graphs that do not exist anymore? Is there a file or database that I can access to modify those references?

By the way, modifying the index.html doesn't fix the problem. This reference comes from another source within the script.

Thanks in advanced.

-Moises
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests