create Data Template / Data Source
Moderators: Developers, Moderators
-
- Posts: 4
- Joined: Fri Apr 18, 2025 9:14 am
create Data Template / Data Source
Hello,
maybe someone can help me, unfortunately I have not found anything via the search.
Installation is on a RaspberryPi, Debian version 12.10, cacti version 1.2.30.
I have created a "Data Template", it expects 4 values as input and should return one value. The script behind it simply reads on a host (1.value), a file (2.value), searches for a string (3.value) and cuts out a field (4.value).
This works fine on the command line.
In the Data template I cannot save a parameter in the field for the file, I always get:
"Sorry, we could not process your last action.
Save Failed due to field input errors (Check red fields).", even if I only write one letter in the field.
The field does not get a red border either, but I can save with an empty field.
Same problem also when I try to use the template as data source, without input the script can't work, with input I can't save.
What else can I check to find the error?
maybe someone can help me, unfortunately I have not found anything via the search.
Installation is on a RaspberryPi, Debian version 12.10, cacti version 1.2.30.
I have created a "Data Template", it expects 4 values as input and should return one value. The script behind it simply reads on a host (1.value), a file (2.value), searches for a string (3.value) and cuts out a field (4.value).
This works fine on the command line.
In the Data template I cannot save a parameter in the field for the file, I always get:
"Sorry, we could not process your last action.
Save Failed due to field input errors (Check red fields).", even if I only write one letter in the field.
The field does not get a red border either, but I can save with an empty field.
Same problem also when I try to use the template as data source, without input the script can't work, with input I can't save.
What else can I check to find the error?
Re: create Data Template / Data Source
Please show screenshot. Cannot reproduce your issue
Let the Cacti grow!
-
- Posts: 4
- Joined: Fri Apr 18, 2025 9:14 am
Re: create Data Template / Data Source
Hi,
Thanks for the reply, I'm glad someone is trying to help me.
I have created a “Data Input Method”. I want to use a script to get a value from a file with measured values. I then want to use this method in the template. But I can't save the name of the file with the values in the template. When I have entered it and want to save it, it is removed from the field and an error message appears.
But without this input it cannot work.
Thanks for the reply, I'm glad someone is trying to help me.
I have created a “Data Input Method”. I want to use a script to get a value from a file with measured values. I then want to use this method in the template. But I can't save the name of the file with the values in the template. When I have entered it and want to save it, it is removed from the field and an error message appears.
But without this input it cannot work.
Re: create Data Template / Data Source
ok, I tried to reproduce it and it works without issues. Is something in cacti log?
Let the Cacti grow!
-
- Posts: 4
- Joined: Fri Apr 18, 2025 9:14 am
Re: create Data Template / Data Source
There is nothing in the log, I tested yesterday and then switched off the computer. Just switched it on, log entries in between:
Errolog is empty, no other log files written at this time:
Just set up Cacti again from scratch?
Code: Select all
2025-04-25 08:45:02 - SYSTEM WARNING: Primary Admin account notifications disabled! Unable to send administrative Email.
2025-04-25 08:45:02 - POLLER: Poller[1] PID[1075] WARNING: Cactid/Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cactid/Cron, but 60,900.6 seconds have passed since the last poll!
2025-04-24 15:50:08 - SYSTEM MAINT STATS: Time:0.03
2025-04-24 15:50:06 - SYSTEM STATS: Time:3.3519 Method:cmd.php Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:7
2025-04-24 15:45:07 - SYSTEM MAINT STATS: Time:0.03
2025-04-24 15:45:05 - SYSTEM STATS: Time:2.3385 Method:cmd.php Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:7
2025-04-24 15:40:06 - SYSTEM MAINT STATS: Time:0.04
2025-04-24 15:40:04 - SYSTEM STATS: Time:2.3621 Method:cmd.php Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:7
2025-04-24 15:35:07 - SYSTEM MAINT STATS: Time:0.03
2025-04-24 15:35:06 - SYSTEM STATS: Time:2.3425 Method:cmd.php Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:7
2025-04-24 15:30:07 - SYSTEM MAINT STATS: Time:0.04
2025-04-24 15:30:05 - SYSTEM STATS: Time:2.3436 Method:cmd.php Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:7
2025-04-24 15:25:07 - SYSTEM MAINT STATS: Time:0.04
2025-04-24 15:25:05 - SYSTEM STATS: Time:2.3374 Method:cmd.php Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:7
2025-04-24 15:21:57 - AUTH LOGIN: User 'admin' authenticated from IP Address '2003:e5:7f3a:e200:98a:5658:631b:3003'
Code: Select all
root@raspi02:/var/log/cacti# ll -art
total 96
-rw-r----- 1 root root 0 Mar 17 2024 rrd.log
-rw-r----- 1 root root 0 Mar 17 2024 poller-error.log
-rw-r--r-- 1 www-data www-data 107 Mar 17 2024 install-sync.log.1.gz
-rw-r--r-- 1 www-data www-data 1297 Mar 17 2024 install-general.log.1.gz
-rw-r--r-- 1 www-data www-data 1379 Mar 17 2024 install-complete.log.2.gz
-rw-r----- 1 www-data www-data 4152 Mar 24 2024 cacti.log.9.gz
-rw-r----- 1 www-data www-data 0 Dec 1 11:18 install-sync.log
-rw-r----- 1 www-data www-data 0 Dec 1 11:18 install-general.log
-rw-r----- 1 www-data www-data 1919 Dec 7 15:15 cacti.log.8.gz
-rw-r----- 1 www-data www-data 1308 Dec 8 16:55 cacti.log.7.gz
-rw-r----- 1 www-data www-data 1832 Feb 19 17:15 cacti.log.6.gz
-rw-r----- 1 www-data www-data 3052 Feb 28 16:35 cacti.log.5.gz
-rw-r----- 1 www-data www-data 2323 Mar 3 18:15 cacti.log.4.gz
-rw-r----- 1 www-data www-data 4944 Apr 3 14:55 cacti.log.3.gz
-rw-r--r-- 1 www-data www-data 104 Apr 12 17:45 cacti_stderr.log.2.gz
-rw-r----- 1 www-data www-data 2647 Apr 12 17:45 cacti.log.2.gz
-rw-r--r-- 1 www-data www-data 160 Apr 13 13:35 install-templates.log.1.gz
-rw-r--r-- 1 www-data www-data 128 Apr 13 13:35 install-template.log.1.gz
-rw-r----- 1 www-data www-data 205 Apr 13 13:35 install-complete.log.1.gz
-rw-r----- 1 www-data www-data 0 Apr 14 11:10 install-complete.log
-rw-r----- 1 www-data www-data 21 Apr 18 17:01 cacti_stderr.log.1.gz
-rw-r----- 1 www-data www-data 5084 Apr 18 17:35 cacti.log.1.gz
-rw-r----- 1 www-data www-data 0 Apr 24 17:10 install-templates.log
-rw-r----- 1 www-data www-data 0 Apr 24 17:10 install-template.log
-rw-r----- 1 www-data www-data 0 Apr 24 17:10 cacti_stderr.log
drwxr-xr-x 2 www-data www-data 4096 Apr 24 17:10 .
drwxr-xr-x 10 root root 4096 Apr 24 17:15 ..
-rw-r----- 1 www-data www-data 6325 Apr 25 10:50 cacti.log
Re: create Data Template / Data Source
try insert shorter value or remove any characters (/,.,.). I don't know if there is any input check/regexp. Try to find which characters or strings are allowed.
Let the Cacti grow!
-
- Posts: 4
- Joined: Fri Apr 18, 2025 9:14 am
Re: create Data Template / Data Source
That was also my idea, so I tried it with just the file name and then wanted to add the path in the script. But nothing can be entered there.
Re: create Data Template / Data Source
hmmm, still cannot reproduce. Try to create your Data source (template) and data input method from scratch
Let the Cacti grow!
Who is online
Users browsing this forum: No registered users and 4 guests