Hi,
I tried to configure UserParameter for a key to retrieve some data from monitored Oracle database but failed. I noticed in this forum that Nagios script does that so it should be possible some how. For very basic test I created simple shell script ora_test.sh like this:
#!/bin/ksh
result=`sqlplus -s zabbix/zabbix@tst10g @/opt/zabbix/check/test.sql`
echo $result
and corresponding entry like this:
UserParameter=ora_test,/opt/zabbix/check/ora_test.sh
It perfectly works in client site:
zabbix_agentd -t ora_test
ora_test [t|ZABBIX]
But in the server site I got:
zabbix_get -s <client_machine> -k ora_test
ZBX_NOTSUPPORTED
Any help to fix that will be much appreciated.
Thanks,
I tried to configure UserParameter for a key to retrieve some data from monitored Oracle database but failed. I noticed in this forum that Nagios script does that so it should be possible some how. For very basic test I created simple shell script ora_test.sh like this:
#!/bin/ksh
result=`sqlplus -s zabbix/zabbix@tst10g @/opt/zabbix/check/test.sql`
echo $result
and corresponding entry like this:
UserParameter=ora_test,/opt/zabbix/check/ora_test.sh
It perfectly works in client site:
zabbix_agentd -t ora_test
ora_test [t|ZABBIX]
But in the server site I got:
zabbix_get -s <client_machine> -k ora_test
ZBX_NOTSUPPORTED
Any help to fix that will be much appreciated.
Thanks,
Comment