Hi all guys,
I have an Oracle server run with two PDB on the same Containers with using the same user to monitor. I'a able to use this use to access to the CDB and the two PDB. I have configured the following parameters in the oracle.conf file in /etc/zabbix/zabbix-agent.d/plugins. Setting are :
Plugins.Oracle.Sessions.co11911e.Uri=tcp://svx-ora-11e:1521
Plugins.Oracle.Sessions.DAP1.Uri=tcp://svx-ora-11e:1521
Plugins.Oracle.Sessions.IAP1.Uri=tcp://svx-ora-11e:1521
Plugins.Oracle.Sessions.co11911e.Service=co11911e. unifr.ch
Plugins.Oracle.Sessions.DAP1.Service=DAP1.unifr.ch
Plugins.Oracle.Sessions.IAP1.Service=IAP1.unifr.ch
Plugins.Oracle.Sessions.co11911e.User=zabbix
Plugins.Oracle.Sessions.DAP1.User=zabbix
Plugins.Oracle.Sessions.IAP1.User=zabbix
Plugins.Oracle.Sessions.co11911e.Password=password
Plugins.Oracle.Sessions.DAP1.Password=password
Plugins.Oracle.Sessions.IAP1.Password=password
In the Host on the web console, I have configured this following Macros:
{$ORACLE.CONNSTRING} = tcp://svx-ora-11e:1521
{$ORACLE.PASSWORD} = password
{$ORACLE.SERVICE} = co11911e.unifr.ch
{$ORACLE.USER} = zabbix
I need help to understand if it's correctly set and if I need other setting. The reason is that I have many errors with Dependens Items for the PDB IAP1. See below an exemple of error:
[root@svx-mon-02p ~]# zabbix_get -s svx-ora-11e -k oracle.ts.stats["tcp://svx-ora-11e:1521","zabbix","password","co11911e.unifr.ch ","ACTIVITI","PERMANENT","DAP1"]
[{"ACTIVITI":{"contents":"PERMANENT","file_bytes ":1 2616466432,"max_bytes":32212254720,"free_bytes":74 5603072,"used_bytes":11870863360,"used_pct_max":39 .17,"used_file_pct":94.09,"used_from_max_pct":36.8 5,"status":1}}]
[root@svx-mon-02p ~]# zabbix_get -s svx-ora-11e -k oracle.ts.stats["tcp://svx-ora-11e:1521","zabbix","password","co11911e.unifr.ch ","ACTIVITI","PERMANENT","IAP1"]
[root@svx-mon-02p ~]#
And on the Zabbix console server, I see the error message:
Preprocessing failed for:
1. Failed: cannot extract value from json by path "$..['ACTIVITI'].status.first()": invalid object format, expected opening character '{' or '[' at: ''
I use Zabbix version 7.0.4 for the server and version 7.0.3 for the client.
I need help
Regards
Olivier
I have an Oracle server run with two PDB on the same Containers with using the same user to monitor. I'a able to use this use to access to the CDB and the two PDB. I have configured the following parameters in the oracle.conf file in /etc/zabbix/zabbix-agent.d/plugins. Setting are :
Plugins.Oracle.Sessions.co11911e.Uri=tcp://svx-ora-11e:1521
Plugins.Oracle.Sessions.DAP1.Uri=tcp://svx-ora-11e:1521
Plugins.Oracle.Sessions.IAP1.Uri=tcp://svx-ora-11e:1521
Plugins.Oracle.Sessions.co11911e.Service=co11911e. unifr.ch
Plugins.Oracle.Sessions.DAP1.Service=DAP1.unifr.ch
Plugins.Oracle.Sessions.IAP1.Service=IAP1.unifr.ch
Plugins.Oracle.Sessions.co11911e.User=zabbix
Plugins.Oracle.Sessions.DAP1.User=zabbix
Plugins.Oracle.Sessions.IAP1.User=zabbix
Plugins.Oracle.Sessions.co11911e.Password=password
Plugins.Oracle.Sessions.DAP1.Password=password
Plugins.Oracle.Sessions.IAP1.Password=password
In the Host on the web console, I have configured this following Macros:
{$ORACLE.CONNSTRING} = tcp://svx-ora-11e:1521
{$ORACLE.PASSWORD} = password
{$ORACLE.SERVICE} = co11911e.unifr.ch
{$ORACLE.USER} = zabbix
I need help to understand if it's correctly set and if I need other setting. The reason is that I have many errors with Dependens Items for the PDB IAP1. See below an exemple of error:
[root@svx-mon-02p ~]# zabbix_get -s svx-ora-11e -k oracle.ts.stats["tcp://svx-ora-11e:1521","zabbix","password","co11911e.unifr.ch ","ACTIVITI","PERMANENT","DAP1"]
[{"ACTIVITI":{"contents":"PERMANENT","file_bytes ":1 2616466432,"max_bytes":32212254720,"free_bytes":74 5603072,"used_bytes":11870863360,"used_pct_max":39 .17,"used_file_pct":94.09,"used_from_max_pct":36.8 5,"status":1}}]
[root@svx-mon-02p ~]# zabbix_get -s svx-ora-11e -k oracle.ts.stats["tcp://svx-ora-11e:1521","zabbix","password","co11911e.unifr.ch ","ACTIVITI","PERMANENT","IAP1"]
[root@svx-mon-02p ~]#
And on the Zabbix console server, I see the error message:
Preprocessing failed for:
1. Failed: cannot extract value from json by path "$..['ACTIVITI'].status.first()": invalid object format, expected opening character '{' or '[' at: ''
I use Zabbix version 7.0.4 for the server and version 7.0.3 for the client.
I need help
Regards
Olivier
Comment