Hello,
I'm trying to run an external script from Zabbix Server (3.2) to run SSL checks.
I set up the script zext_ssl_cert.sh (coming from Zabbix forum). When trying to run it manually, it does what it should do ;-)
But when trying to run from within Zabbix Server it does not work. I can't get any values...
I then checked if the script is in the right place (/usr/local/etc/zabbix32/zabbix/externalscript under FreeBSD 11).
Still not working.
Then I decided to create a simple script check.sh in the same location:
(BASH path differs from linux)
The program does what it should, when checked manually:
It writes a log file with its date of last run and returns value 12345 to console.
But when I start it from within zabbix, it still writes the log file, but there seems no value to be returned...
So the script MUST be in the right location. I also checked that it is running with zabbix user permissions...
What's wrong here?
Any help is appreciated!
Regards
Olaf
I'm trying to run an external script from Zabbix Server (3.2) to run SSL checks.
I set up the script zext_ssl_cert.sh (coming from Zabbix forum). When trying to run it manually, it does what it should do ;-)
But when trying to run from within Zabbix Server it does not work. I can't get any values...
I then checked if the script is in the right place (/usr/local/etc/zabbix32/zabbix/externalscript under FreeBSD 11).
Still not working.
Then I decided to create a simple script check.sh in the same location:
#! /usr/local/bin/bash
echo "Programm $0 gestartet am `date`" >> /tmp/test.log
echo 12345
echo "Programm $0 gestartet am `date`" >> /tmp/test.log
echo 12345
The program does what it should, when checked manually:
It writes a log file with its date of last run and returns value 12345 to console.
But when I start it from within zabbix, it still writes the log file, but there seems no value to be returned...
So the script MUST be in the right location. I also checked that it is running with zabbix user permissions...
What's wrong here?

Any help is appreciated!
Regards
Olaf


Comment