Scheduling to export datasource to text file

Addons for Cacti and discussion about those addons

Moderators: Moderators, Developers

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

Scheduling to export datasource to text file

#1 Post by pattapongj » Thu Mar 17, 2016 3:59 am

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
cacti_1_snip_25590317155527.png
scheduler overview
cacti_1_snip_25590317155527.png (35.87 KiB) Viewed 3594 times
cacti_2_snip_25590317155554.png
setup scheduler
cacti_2_snip_25590317155554.png (24.88 KiB) Viewed 3594 times
cacti_3_snip_25590317155616.png
Select Datasource to associated with scheduler
cacti_3_snip_25590317155616.png (66.7 KiB) Viewed 3594 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

#2 Post by ch3i » Fri Mar 25, 2016 4:32 am

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

#3 Post by areast » Sun Jun 11, 2017 10:20 pm

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

#4 Post by areast » Sun Jun 11, 2017 10:32 pm

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

#5 Post by pattapongj » Fri Jul 13, 2018 2:18 am

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