Ad Widget

Collapse

UserParameter not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • knarfling
    Member
    • Sep 2006
    • 47

    #1

    UserParameter not working

    I am having some difficulty with a UserParameter.

    my configuration looks like this
    Code:
    UserParameter=sem.num,/usr/bin/ipcs|grep apache|wc -l
    When I do zabbix_agentd -t sem.num I get
    sem.num [t|7]

    However, on the server side when I do zabbix_get -s 192.168.yyy.zzz -k sem.num it always returns 0

    On the web I configured it as a zabbix agent using various data types. None of them seem to work. If I change it to an active zabbix agent, it becomes unsupported. When I change back the log shows
    Code:
    Parameter [sem.num] became supported by agent on host
    but it still returns a 0 instead of the correct number.

    Any idea what I am doing wrong? It only takes .006 seconds for the command, so I do not believe it is a timeout error.

    I am currently using zabbix 1.1.5 on both the server and the agent under Red Hat Linux.

    Thanx for any help.
  • den_crane
    Senior Member
    • Feb 2006
    • 272

    #2
    # ipcs|grep www|wc -l
    2

    # su zabbix
    > ipcs|grep www|wc -l
    0

    Comment

    Working...