Ad Widget

Collapse

zabbix agents on freebsd 8.4

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • steveboyson
    Senior Member
    • Jul 2013
    • 582

    #1

    zabbix agents on freebsd 8.4

    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:
    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]
    and returns the correct value (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
    The logfile with "debuglevel=4" shows:
    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]
    I quite don't understand what's going on here.
    Any hints?
  • steveboyson
    Senior Member
    • Jul 2013
    • 582

    #2
    I did a refresh of the ports and built zabbix_agentd 2.0.10.

    Still no avail :-(

    Comment

    Working...