Hi Guys,
So I'm trying to write an external script. I wanted it to run a curl with specific parameters but it didn't work.
So I tried something simpler. My script is the one that follows:
In my server configuration file I have this:
and, with user zabbix I have this:
So I can fairly assume that the zabbix has access to this file, and permissions to execute it.
Still...
I've been trying to wrap my head around this since friday morning, and I can't get it to work. Any idea ?
I tried using zabbix_agentd -t. this is what I get:
What does the "m" stand for ?
So I'm trying to write an external script. I wanted it to run a curl with specific parameters but it didn't work.
So I tried something simpler. My script is the one that follows:
Code:
#!/bin/bash echo 0
Code:
ExternalScripts=/opt/ZUY10/Logiciel/ZABXSERVER/etc/externalscripts
Code:
namei -m /opt/ZUY10/Logiciel/ZABXSERVER/etc/externalscripts/jbw.sh f: /opt/ZUY10/Logiciel/ZABXSERVER/etc/externalscripts/jbw.sh drwxr-xr-x / drwxr-xr-x opt drwxr-xr-x ZUY10 drwxr-xr-x Logiciel drwxr-xr-x ZABXSERVER drwxr-xr-x etc drwxr-xr-x externalscripts -rwxrwxr-x jbw.sh
Still...
Code:
$ /opt/zabxagent/bin/zabbix_get -s SLMUYAZABX05 -p 10050 -k jbw.sh[] ZBX_NOTSUPPORTED
I tried using zabbix_agentd -t. this is what I get:
Code:
/opt/ZUY10/Logiciel/ZABXAGENT/sbin/zabbix_agentd -t 'jbw.sh[]' jbw.sh [m|ZBX_NOTSUPPORTED]
Comment