I set up a Proxy 6.2 with ODBC for an Oracle DB.
The connection is running and I can collect some data from the DB.
I can test the connection using iSQL and it works fine at the command line.
Now, I wanted to execute manually that command from within Zabbix Frontend.
For that, I created a script in Administration/Scripts with the same command.
When I try to start the script upon an event, it fails with the following error.
The proxy log only shows the same error.
What would that be?
The connection is running and I can collect some data from the DB.
I can test the connection using iSQL and it works fine at the command line.
Code:
$ isql [dsn] [user] [pass] -b << EOF select count(*) from GENESYS_[dsn].TABLE; EOF +-----------------------------------------+ | COUNT(*) | +-----------------------------------------+ | 13
Code:
$ isql [dsn] [user] [pass] -b <<< 'select count(*) from GENESYS_[dsn].TABLE;' +-----------------------------------------+ | COUNT(*) | +-----------------------------------------+ | 13
For that, I created a script in Administration/Scripts with the same command.
When I try to start the script upon an event, it fails with the following error.
Code:
sh: line 1: 1654538 Segmentation fault (core dumped) isql [dsn] [user] [pass] <<< 'select count(*) from GENESYS_[dsn].TABLE;'
Code:
1650390:20221014:120210.382 Failed to execute command "isql [dsn] [user] [pass] <<< 'select count(*) from GENESYS_[dsn].TABLE;'": sh: line 1: 1650690 Segmentation fault (core dumped) isql [dsn] [user] [pass] <<< 'select count(*) from GENESYS_[dsn].TABLE;'
Comment