Difference between revisions of "Freeside:3:Documentation:Developer/FS/part export/cacti"
From Freeside
(Edit via perl MediaWiki framework (1.13)) |
m (Edit via perl MediaWiki framework (1.13)) |
||
Line 6: | Line 6: | ||
==DESCRIPTION== | ==DESCRIPTION== | ||
− | This module in particular handles FS::part_export object creation for Cacti integration; consult any existing [[Freeside:3:Documentation:Developer/FS/part export|FS::part_export]] documentation for details on how that works | + | This module in particular handles FS::part_export object creation for Cacti integration; consult any existing [[Freeside:3:Documentation:Developer/FS/part export|FS::part_export]] documentation for details on how that works. |
− | == | + | ==SUBROUTINES== |
− | + | ; process_graphs JOB PARAM | |
+ | :Intended to be run as an FS::queue job. | ||
− | + | :Copies graphs for a single service from Cacti export directory to FS cache, generates basic html pages for this service with base64-encoded graphs embedded, and stores the generated pages in the database. | |
− | + | ==METHODS== | |
+ | ; cleanup | ||
+ | :Removes all expired graphs for this export from the database. | ||
+ | ; exptime [ TIME ] | ||
+ | :Accepts optional current time, defaults to actual current time. | ||
− | + | :Returns timestamp for the oldest possible non-expired graph import, based on the import_freq option. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==AUTHOR== | ==AUTHOR== |
Latest revision as of 08:25, 20 April 2015
NAME
FS::part_export::cacti
SYNOPSIS
Cacti integration for Freeside
DESCRIPTION
This module in particular handles FS::part_export object creation for Cacti integration; consult any existing FS::part_export documentation for details on how that works.
SUBROUTINES
- process_graphs JOB PARAM
- Intended to be run as an FS::queue job.
- Copies graphs for a single service from Cacti export directory to FS cache, generates basic html pages for this service with base64-encoded graphs embedded, and stores the generated pages in the database.
METHODS
- cleanup
- Removes all expired graphs for this export from the database.
- exptime [ TIME ]
- Accepts optional current time, defaults to actual current time.
- Returns timestamp for the oldest possible non-expired graph import, based on the import_freq option.
AUTHOR
Jonathan Prykop jonathan@freeside.biz
LICENSE AND COPYRIGHT
Copyright 2015 Freeside Internet Services
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.