New Cacti 1.2 install - Restore Graph Tempates

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
spoonman
Cacti User
Posts: 305
Joined: Tue May 03, 2005 8:54 am
Location: GA

New Cacti 1.2 install - Restore Graph Tempates

Post by spoonman »

Guys...I've just setup an new Cacti 1.2 install on windows, how can i pull out the original graph templates from the installer and re-import them...
I've installed/imported one or two other templates that overwrote a few graph templates...i'd like to redo them back to original 1.2 state....are they in the install folders somewhere?
Mainly the Windows Template/Disk usage and Interface statistics graphs
Thanks

Cacti Windows 1.2 Installer
Operating System: Windows 2016 x64
Webserver: IIS 10
Cacti: 1.2
Spine: 1.1.35 x64
MySQL: 5.
PHP: 7.2.13
RRDTool (Cygwin or Win32 build): 1.7
Net-SNMP: 5.5
Cygwin (cygwin1.dll version): 2.10.0
Plugin Architecture:
CCNA
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: New Cacti 1.2 install - Restore Graph Tempates

Post by netniV »

Check the installs/templates folder for the packages. Use the cli/import_package.php script to import them.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
spoonman
Cacti User
Posts: 305
Joined: Tue May 03, 2005 8:54 am
Location: GA

Re: New Cacti 1.2 install - Restore Graph Tempates

Post by spoonman »

Thanks netniV...I've looked there and it has just the default 5 Device templates...in .gz format. I'm really wanting the default graph templates...or what ever file from install is used to import them?
Thx
CCNA
spoonman
Cacti User
Posts: 305
Joined: Tue May 03, 2005 8:54 am
Location: GA

Re: New Cacti 1.2 install - Restore Graph Tempates

Post by spoonman »

Well, Nevermind...After i re-read your post netniV, that's exactly what I needed. Thanks. Worked perfectly.

I ran that cmd against the Windows_device.xml.gz...
fixed my broken templates...or updated them back to default it appers.

Thanks
CCNA
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: New Cacti 1.2 install - Restore Graph Tempates

Post by netniV »

Yeah I hate that the template system currently makes it so easy to break when user a mods system (also known as cacti group) templates to make things work for themselves, then updates another template which relies on those changes and they get exported with the template, thus when imported over right the good stuff!

One day, we may get to the state of Signed templates so that an author can only modify things that aren't controlled by others, thus prevent one template breaking another. But there are far more important things first and it only takes a few lines to re-import ours.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest