Recently I installed the zabbix_agentd from ports.
OS: 8.4-RELEASE FreeBSD 8.4-RELEASE #0 r251259: Mon Jun 3 01:14:28 UTC 2013
zabbix_agentd:
Zabbix Agent (daemon) v2.0.5 (revision 33558) (12 February 2013)
Compilation time: Mar 8 2014 11:06:24
I have added a userparameter to zabbix_agentd.conf.
That works when called from local machine:
and returns the correct value (1).
But when called from the zabbix server itself, it shows "0" as result:
The logfile with "debuglevel=4" shows:
I quite don't understand what's going on here.
Any hints?
OS: 8.4-RELEASE FreeBSD 8.4-RELEASE #0 r251259: Mon Jun 3 01:14:28 UTC 2013
zabbix_agentd:
Zabbix Agent (daemon) v2.0.5 (revision 33558) (12 February 2013)
Compilation time: Mar 8 2014 11:06:24
I have added a userparameter to zabbix_agentd.conf.
That works when called from local machine:
Code:
$ /usr/local/sbin/zabbix_agentd -c zabbix_agentd.conf -t proc_num[vmtoolsd,root] proc_num[vmtoolsd,root][/usr/local/etc/zabbix2/externalscripts/proc_num.sh vmtoolsd root] [t|1]
But when called from the zabbix server itself, it shows "0" as result:
Code:
zabbix@zabbix:~> zabbix-get -s freebsd -k proc_num[vmtoolsd,root] 0
Code:
29397:20140308:130939.922 Requested [proc_num[vmtoolsd,root]] 29397:20140308:130939.922 In zbx_popen() command:'/usr/local/etc/zabbix2/externalscripts/proc_num.sh vmtoolsd root' 29397:20140308:130939.922 End of zbx_popen():7 29428:20140308:130939.922 zbx_popen(): executing script 29397:20140308:130939.931 In zbx_waitpid() 29397:20140308:130939.931 zbx_waitpid() exited, status:0 29397:20140308:130939.931 End of zbx_waitpid():29428 29397:20140308:130939.931 Run remote command [/usr/local/etc/zabbix2/externalscripts/proc_num.sh vmtoolsd root] Result [1] [0]... 29397:20140308:130939.931 Sending back [0]
Any hints?
Comment