Scheduling to export datasource to text file

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

Post Reply
pattapongj
Posts: 2
Joined: Wed Mar 16, 2016 9:58 pm

Scheduling to export datasource to text file

Post by pattapongj »

This plugin will export rrd file from specific datasource to text format to use in another system. It let's you create a schedule then add datasources to each schedule.

Source code:
https://github.com/TheGU/cacti_rrdexport

P.S. Could anyone guide me about how to add this to plugin page in wiki?

Screenshot
scheduler overview
scheduler overview
cacti_1_snip_25590317155527.png (35.87 KiB) Viewed 10826 times
setup scheduler
setup scheduler
cacti_2_snip_25590317155554.png (24.88 KiB) Viewed 10826 times
Select Datasource to associated with scheduler
Select Datasource to associated with scheduler
cacti_3_snip_25590317155616.png (66.7 KiB) Viewed 10826 times
Last edited by pattapongj on Fri Jul 13, 2018 2:26 am, edited 1 time in total.
ch3i
Posts: 17
Joined: Tue Mar 03, 2015 6:22 am

Re: New plugin : Scheduling export rrd file

Post by ch3i »

Hi,

It seems to be cool. I'll test asap.

Ch3i.
areast
Cacti User
Posts: 105
Joined: Wed Oct 29, 2014 5:08 am

Re: New plugin : Scheduling export rrd file

Post by areast »

Hi pattapongj
Could you please show more step to setup this addon?

I did setup follow by the guideline and not collect anything still
Anyway to debug ??


1) download zip from https://github.com/TheGU/cacti_rrdexport
2) rename cacti_rrdexport-master.zip to rrdexport
3) copy to plugins
4) install from plugin management
5) Go to setting -> RRD Export Schedule
6) Export Output path -> Cacti/plugins/rrdexport/New Folder
7) Setup schedules job


Beside i am using 0.8.8C with Window platform
areast
Cacti User
Posts: 105
Joined: Wed Oct 29, 2014 5:08 am

Re: New plugin : Scheduling export rrd file

Post by areast »

06/12/2017 11:29:08 AM - SYSTEM RRD EXPORT STATS: Time:0.0000 TotalJobs:0
06/12/2017 11:29:08 AM - SYSTEM RRD EXPORT RUN: 2017-06-12 11:29:08
06/12/2017 11:19:07 AM - SYSTEM RRD EXPORT STATS: Time:0.0000 TotalJobs:0
06/12/2017 11:19:07 AM - SYSTEM RRD EXPORT RUN: 2017-06-12 11:19:07
06/12/2017 11:14:00 AM - SYSTEM RRD EXPORT STATS: Time:0.0000 TotalJobs:0
06/12/2017 11:14:00 AM - SYSTEM RRD EXPORT RUN: 2017-06-12 11:14:00
06/12/2017 11:11:36 AM - CMDPHP: Poller[0] RRDEXPORT DEBUG - finished save
06/12/2017 11:11:36 AM - CMDPHP: Poller[0] RRDEXPORT DEBUG - try save to plugin_rrdexport_schedules
06/12/2017 11:11:36 AM - CMDPHP: Poller[0] RRDEXPORT DEBUG - save component schedule : a:6:{s:2:"id";s:1:"1";s:4:"name";s:6:"Test 1";s:7:"cf_type";s:7:"AVERAGE";s:5:"stime";i:1497237300;s:11:"sc_interval";s:5:"86400";s:7:"enabled";s:2:"on";}
06/12/2017 11:11:36 AM - CMDPHP: Poller[0] RRDEXPORT DEBUG - save component schedule : id=1
06/12/2017 11:11:36 AM - CMDPHP: Poller[0] RRDEXPORT DEBUG - form save action
06/12/2017 11:11:10 AM - CMDPHP: Poller[0] RRDEXPORT DEBUG - finished save
06/12/2017 11:11:10 AM - CMDPHP: Poller[0] RRDEXPORT DEBUG - try save to plugin_rrdexport_schedules
06/12/2017 11:11:10 AM - CMDPHP: Poller[0] RRDEXPORT DEBUG - save component schedule : a:6:{s:2:"id";s:1:"1";s:4:"name";s:6:"Test 1";s:7:"cf_type";s:7:"AVERAGE";s:5:"stime";i:1497237300;s:11:"sc_interval";s:5:"86400";s:7:"enabled";s:2:"on";}
06/12/2017 11:11:10 AM - CMDPHP: Poller[0] RRDEXPORT DEBUG - save component schedule : id=1
06/12/2017 11:11:10 AM - CMDPHP: Poller[0] RRDEXPORT DEBUG - form save action
06/12/2017 11:09:28 AM - SYSTEM RRD EXPORT STATS: Time:0.0000 TotalJobs:0
06/12/2017 11:09:28 AM - SYSTEM RRD EXPORT RUN: 2017-06-12 11:09:28
06/12/2017 11:06:51 AM - CMDPHP: Poller[0] RRDEXPORT DEBUG - finished save
06/12/2017 11:06:51 AM - CMDPHP: Poller[0] RRDEXPORT DEBUG - try save to plugin_rrdexport_schedules
06/12/2017 11:06:51 AM - CMDPHP: Poller[0] RRDEXPORT DEBUG - save component schedule : a:6:{s:2:"id";s:1:"1";s:4:"name";s:6:"Test 1";s:7:"cf_type";s:7:"AVERAGE";s:5:"stime";i:1497237300;s:11:"sc_interval";s:6:"604800";s:7:"enabled";s:2:"on";}
06/12/2017 11:06:51 AM - CMDPHP: Poller[0] RRDEXPORT DEBUG - save component schedule : id=1
06/12/2017 11:06:51 AM - CMDPHP: Poller[0] RRDEXPORT DEBUG - form save action
06/12/2017 11:03:53 AM - SYSTEM RRD EXPORT STATS: Time:0.0156 TotalJobs:0
06/12/2017 11:03:53 AM - CMDPHP: Poller[0] [rrdexport] [WARNING] created new path: D:/Inetpub/wwwroot/plugins/rrdexport/
06/12/2017 11:03:53 AM - SYSTEM RRD EXPORT RUN: 2017-06-12 11:03:53
06/12/2017 11:02:38 AM - CMDPHP: Poller[0] RRDEXPORT DEBUG - finished save
06/12/2017 11:02:38 AM - CMDPHP: Poller[0] RRDEXPORT DEBUG - try save to plugin_rrdexport_schedules
06/12/2017 11:02:38 AM - CMDPHP: Poller[0] RRDEXPORT DEBUG - save component schedule : a:6:{s:2:"id";i:0;s:4:"name";s:6:"Test 1";s:7:"cf_type";s:7:"AVERAGE";s:5:"stime";i:1497236460;s:11:"sc_interval";s:6:"604800";s:7:"enabled";s:2:"on";}
06/12/2017 11:02:38 AM - CMDPHP: Poller[0] RRDEXPORT DEBUG - save component schedule : id=0 or create new schedule
06/12/2017 11:02:38 AM - CMDPHP: Poller[0] RRDEXPORT DEBUG - form save action
06/12/2017 10:58:57 AM - SYSTEM RRD EXPORT STATS: Time:0.0156 TotalJobs:0
pattapongj
Posts: 2
Joined: Wed Mar 16, 2016 9:58 pm

Re: New plugin : Scheduling export rrd file

Post by pattapongj »

In debug log it said you don't have any jobs.

To setup you need to
1. Setup plugin and create schedule job
2. Add data source to job to export

I think it not export anything because it doesn't have any datasource associate with it.

setup data source to schedules job
Go to Management > RRD Export Schedules
Add or edit new schedule
Add associate data source to schedule.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests