Ad Widget

Collapse

UserParameter in Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • liviusbr
    Junior Member
    • Jun 2013
    • 6

    #1

    UserParameter in Zabbix

    Hi,

    I have the following UserParameter defined in zabbix_agentd.conf file:

    UnsafeUserParameters=1

    UserParameter=Inst1,ps -ef | grep 14501 | awk {'print $4'}

    This should return the CPU utilisation of a specific process, and the command works nicely while executing it from the terminal.

    Now, I defined a new item, as per attached pic.

    Any insights on why this fails to work ? Nothing I can see in the graph..
    Attached Files
  • liviusbr
    Junior Member
    • Jun 2013
    • 6

    #2
    Hi.

    Can someone reply please?

    Comment

    • eskytthe
      Senior Member
      Zabbix Certified Specialist
      • May 2011
      • 363

      #3
      Try "$$4" in your awk parameters.
      Also check the zabbix server log and your item status (it goes to "Not supported" if no data from agent)
      If still not working try to search this forum - there is a lot on problems with userparameters.
      BR
      Erik

      Comment

      • mbsit
        Senior Member
        • Sep 2012
        • 130

        #4
        I'm sure '$$4' will solve the issue
        Pozdrawiam
        Grzegorz Grabowski
        ____
        WdroĊĵenia, szkolenia, umowy serwisowe
        Warszawa - Polska

        Comment

        Working...