cacti 1.1 dhcpd template

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
javerti
Posts: 1
Joined: Wed Mar 22, 2017 9:39 am

cacti 1.1 dhcpd template

Post by javerti »

Hello all,
Someone managed to run dhcpd template on new cacti 1.1 ?

Work fine on 0.8* , after upgrade does not draw anything

After importing templates, in log I see.

2017-03-22 17:26:57 - CMDPHP IMPORT NOTE: Found 1 Damaged data_input_fields
2017-03-22 17:26:57 - CMDPHP IMPORT NOTE: Repairing 1 Damaged data_input_fields
smiles
Cacti User
Posts: 79
Joined: Mon Sep 10, 2012 5:54 pm

Re: cacti 1.1 dhcpd template

Post by smiles »

I've had this working on my dev box for a long time, which started at 1.0 and is now on 1.1.16. So I tried to export it from the dev box into a second 1.1.16 instance, and it fails to import.

2017/08/08 12:52:55 - IMPORT ERROR: 0101 hash version if for a newer Cacti!
2017/08/08 12:52:55 - IMPORT $dep_hash_cache[$type][$i]['type']: cdef
2017/08/08 12:52:55 - IMPORT $dep_hash_cache[$type][$i]['version']:
2017/08/08 12:52:55 - ERROR PHP NOTICE: Undefined index: in file: /var/www/html/cacti/lib/import.php on line: 71
2017/08/08 12:52:55 - CMDPHP PHP ERROR NOTICE Backtrace: (/templates_import.php: 34 form_save)(/templates_import.php: 87 import_xml_data)(/lib/import.php: 71 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/08/08 12:52:55 - IMPORT $cacti_version_codes{$dep_hash_cache[$type][$i]['version']}:
2017/08/08 12:52:55 - IMPORT $dep_hash_cache[$type][$i]['hash']: f18ff01fce23fca1fbee46a8a88600f7
2017/08/08 12:52:55 - ERROR PHP NOTICE: Undefined index: in file: /var/www/html/cacti/lib/import.php on line: 74
2017/08/08 12:52:55 - CMDPHP PHP ERROR NOTICE Backtrace: (/templates_import.php: 34 form_save)(/templates_import.php: 87 import_xml_data)(/lib/import.php: 74 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
2017/08/08 12:52:55 - ERROR PHP NOTICE: Undefined index: hash_05f18ff01fce23fca1fbee46a8a88600f7 in file: /var/www/html/cacti/lib/import.php on line: 74
2017/08/08 12:52:55 - CMDPHP PHP ERROR NOTICE Backtrace: (/templates_import.php: 34 form_save)(/templates_import.php: 87 import_xml_data)(/lib/import.php: 74 CactiErrorHandler)(/lib/functions.php: 4421 cacti_debug_backtrace)
smiles
Cacti User
Posts: 79
Joined: Mon Sep 10, 2012 5:54 pm

Re: cacti 1.1 dhcpd template

Post by smiles »

I built a new template from scratch on 1.1.16, and its working perfectly. However, the export/import process is broken. I have opened an issue on github. Hopefully it will be resolved shortly. I will post my template if there is interest.
smiles
Cacti User
Posts: 79
Joined: Mon Sep 10, 2012 5:54 pm

Re: cacti 1.1 dhcpd template

Post by smiles »

My DHCPD Shared Network graph template attached (Cacti 1.1.16 export)
Attachments
cacti_data_query_dhcpd_shared_network_state.zip
(11.07 KiB) Downloaded 94 times
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests