-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot create item: invalid value for preprocessing step #1: unsupported construct in jsonpath starting with: "-db01.archive_command.status". #1
Comments
Thank you. I will try to upgrade zabbix to higher minor versions than try again. |
Hi @CarlosARAlmeida, With which version did you experience the error in your screenshot? |
I will update my Zabbix to >5, but not now. This error was tried adapt you template to Zabbix 4, I'll try a few more times if i get something, I'll let you know. Thank you very much for responding! |
Recently I run across the same issue (#1: unsupported construct in JSON path starting with: "-gis-pg02.archive_command.status"). I was able to solve that by replacing unquoted JSON path accessors in item prototypes preprocessing with their quoted variants. Instead of: there should be: and so on, for each item prototype. Without quotes, it is possible that provided macro value is not compatible with JSON path "simple" dot accessors. |
Worked for me thanks |
Zabbix agent is collecting the JSON data and sending to Zabbix server without problem.
{"db01": {"archive_command": {"hint": "", "status": "OK"}, "archive_mode": {"hint": "", "status": "OK"}, "archiver_errors": {"hint": "", "status": "OK"}, "backup_maximum_age": {"hint": "interval provided: 10 days, latest backup age: 19 hours, 33 minutes, 57 seconds", "status": "OK"}, "compression_settings": {"hint": "", "status": "OK"}, "continuous_archiving": {"hint": "", "status": "OK"}, "directories": {"hint": "", "status": "OK"}, "failed_backups": {"hint": "there are 0 failed backups", "status": "OK"}, "minimum_redundancy_requirements": {"hint": "have 10 backups, expected at least 1", "status": "OK"}, "pg_receivexlog": {"hint": "", "status": "OK"}, "pg_receivexlog_compatible": {"hint": "", "status": "OK"}, "postgresql": {"hint": "", "status": "OK"}, "postgresql_streaming": {"hint": "", "status": "OK"}, "receive_wal_running": {"hint": "", "status": "OK"}, "replication_slot": {"hint": "", "status": "OK"}, "retention_policy_settings": {"hint": "", "status": "OK"}, "ssh": {"hint": "PostgreSQL server", "status": "OK"}, "superuser_or_standard_user_with_backup_privileges": {"hint": "", "status": "OK"}, "systemid_coherence": {"hint": "", "status": "OK"}, "wal_level": {"hint": "", "status": "OK"}}}
But Zabbix cannot process the JSOn data and giving this error message ;
Cannot create item: invalid value for preprocessing step #1: unsupported construct in jsonpath starting with: "-db01.archive_command.status".
Cannot create item: invalid value for preprocessing step #1: unsupported construct in jsonpath starting with: "-db01.archive_mode.status".
Cannot create item: invalid value for preprocessing step #1: unsupported construct in jsonpath starting with: "-db01.archiver_errors.status".
Cannot create item: invalid value for preprocessing step #1: unsupported construct in jsonpath starting with: "-db01.backup_maximum_age.status".
Cannot create item: invalid value for preprocessing step #1: unsupported construct in jsonpath starting with: "-db01.compression_settings.status".
The system is running on Centos7 / Zabbix 5.0.3 and Barman .
Thank you.
The text was updated successfully, but these errors were encountered: