Ad Widget

Collapse

agentd - Items - script problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bennethos
    Member
    • Jan 2005
    • 31

    #1

    agentd - Items - script problem

    Hi all,

    Been a year since i configged a zabbix server, and I'm stuck with something that seemed to work perfectly well with my old setup

    got following prob :

    Simple checks do work in Items (ie. httpd) It gives output 1 and updates each 30 secs.

    with agent(active) max.kernelfiles and other are working perfectly well...

    When I add following to my zabbix_agentd.conf :

    UserParameter=test[test],/home/zabbix/test.sh

    some info bout the file :
    (-rwxr-xr-x 1 zabbix zabbix 22 2006-02-02 23:29 /home/zabbix/test.sh)
    cat /home/zabbix/test.sh :
    #!/bin/bash
    echo 1000

    I can run the file as www-data or other users, so I guess permissions are OK.

    when I execute the file I get a nice : 1000

    But my Zabbix frontend gives me :
    17224 test[test] fgsdg 30 90 365 ZABBIX agent (active) Active Not supported by agent

    Im also confused on what to put in the "Key" area ? I suppose I have to put test[test] there ?
    and the description doesnt matter ?
  • bennethos
    Member
    • Jan 2005
    • 31

    #2
    I found in my /var/log/zabbix_agentd.log that he couldnt add my userparameteres...

    probably because i used a name that was too long, maybe the brackets and the underscore caused the problem as well... :
    monthly_traffic[total]

    I changed it to mtraf and it works fine now.

    I still have a problem with a script outputting 22,457 , when I config the item as a floating point doesnt work... when i config it as a charachter it works perfectly well

    I think the , comma is causing the prob here, can someone confirm this please?

    I can allways use CUT or SED command if the comma is a prob of course

    Comment

    Working...