Guys,
We've implemented an apache monitoring template based on this article: https://www.zabbix.com/wiki/doku.php...mplates/apache. We adopted Method 3 to do that monitoring. All of our agents were zabbix version 1.8.
After upgrading all of then to 2.0.8, UserParameter not worked anymore. It shows ZBX_NOTSUPPORTED after exec zabbix_get.
In client, we see this message:
1459:20131002:080209.710 Requested [apache[BusyWorkers]]
1459:20131002:080209.710 Sending back [ZBX_NOTSUPPORTED]
But zabbix agent don't execute the script (I've put an echo in the script's first line to trace the execution). It simply send ZBX_NOTSUPPORTED. I thing there is a bug with UserParameter or the sintax was changed in version 2.0.8, because other templates that uses UserParameter isn't working anymore.
/etc/zabbix/zabbix_agentd.conf:
ERROR:
We've implemented an apache monitoring template based on this article: https://www.zabbix.com/wiki/doku.php...mplates/apache. We adopted Method 3 to do that monitoring. All of our agents were zabbix version 1.8.
After upgrading all of then to 2.0.8, UserParameter not worked anymore. It shows ZBX_NOTSUPPORTED after exec zabbix_get.
In client, we see this message:
1459:20131002:080209.710 Requested [apache[BusyWorkers]]
1459:20131002:080209.710 Sending back [ZBX_NOTSUPPORTED]
But zabbix agent don't execute the script (I've put an echo in the script's first line to trace the execution). It simply send ZBX_NOTSUPPORTED. I thing there is a bug with UserParameter or the sintax was changed in version 2.0.8, because other templates that uses UserParameter isn't working anymore.
/etc/zabbix/zabbix_agentd.conf:
Code:
PidFile=/var/run/zabbix/zabbix_agentd.pid LogFile=/var/log/zabbix-agent/zabbix_agentd.log LogFileSize=0 DebugLevel=4 EnableRemoteCommands=1 Server=xxxxxxxxxxxx Hostname=150162002111 AllowRoot=1 Include=/etc/zabbix/zabbix_agentd.conf.d/ UnsafeUserParameters=1 UserParameter=apache[*],/etc/zabbix/apache.sh '$1'
ERROR:
Code:
root@zabbix:~# zabbix_get -s xxxxxxx -k 'apache[BusyWorkers]' ZBX_NOTSUPPORTED

Comment