Ad Widget

Collapse

Agentd problem with UserParameter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kso
    Junior Member
    • Aug 2008
    • 9

    #1

    Agentd problem with UserParameter

    I try to use parameter to monitor Oracle10g using zabora script(thanks to the provider).
    But I encountered problem with the Agent Daemon:
    The Daemon is running under Zabbix User (version 1.5.3 linux 2.6.18 source compiled).

    When I start the daemon, i can see in the log file of the agent that the parameters are taking into account:
    5213:20080813:111338 cfg: para: [UserParameter] val [oracle[*],/usr/local/zabbix/script/zabora $1 $2]
    5213:20080813:111338 Accepted configuration parameter: 'UserParameter' = 'oracle[*],/usr/local/zabbix/script/zabora $1 $2'

    With User Zabbix Identity, i can run the script:
    ./zabora usercount
    569

    When I try to ask the agentD for this parameter it does not recognize it:
    /usr/local/zabbix/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf -t oracle[usercount]
    oracle [m|ZBX_NOTSUPPORTED]

    When I try to ask the agent for the same parameter and same config file, it's ok:
    /usr/local/zabbix/sbin/zabbix_agent -c /etc/zabbix/zabbix_agentd.conf -t oracle[usercount]
    oracle[/usr/local/zabbix/script/zabora usercount ] [t|584]

    Does anybody know what can be the problem ?
    Thanks for help !!
  • Inakrin
    Junior Member
    • Dec 2009
    • 10

    #2
    I have the same problem. Suggestion is:
    In example was UserParameter=oracle[*],/home/zabbix-1.8/zabora /$1 /$2
    I change it to
    UserParameter=oracle[*],/home/zabbix-1.8/zabora $1 $2

    Comment

    Working...