New Cacti 1.2 install - Restore Graph Tempates

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

Moderators: Moderators, Developers

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

New Cacti 1.2 install - Restore Graph Tempates

#1 Post by spoonman » Tue Jan 22, 2019 2:43 pm

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: 2795
Joined: Sun Aug 27, 2017 12:05 am

Re: New Cacti 1.2 install - Restore Graph Tempates

#2 Post by netniV » Wed Jan 23, 2019 2:19 pm

Check the installs/templates folder for the packages. Use the cli/import_package.php script to import them.

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

Re: New Cacti 1.2 install - Restore Graph Tempates

#3 Post by spoonman » Wed Jan 23, 2019 2:40 pm

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: 298
Joined: Tue May 03, 2005 8:54 am
Location: GA

Re: New Cacti 1.2 install - Restore Graph Tempates

#4 Post by spoonman » Wed Jan 23, 2019 3:37 pm

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: 2795
Joined: Sun Aug 27, 2017 12:05 am

Re: New Cacti 1.2 install - Restore Graph Tempates

#5 Post by netniV » Thu Jan 24, 2019 2:33 pm

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.

Post Reply