Ad Widget

Collapse

Zabbix 2.4.3 : Difference between system.run[command] and UserParameter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kpon
    Junior Member
    • Mar 2016
    • 1

    #1

    Zabbix 2.4.3 : Difference between system.run[command] and UserParameter

    Hello everybody

    I have a question about the difference between the agent keys system.run[command] and define a key inside the agent with an UserParameter:

    I want to run a linux command on a host and create a trigger on the standard output of this command, and I can use system.run or an User Parameter.

    What is the best way to run my command ? Are they making a difference ?

    Thanks for you answer.
  • Sebneu
    Junior Member
    • Jan 2015
    • 12

    #2
    Hi Kpon

    thank you for your question, which brought me on the right track! I was googling the internet & searching the forum to find an easy way to deploy UserParameter to all clients. I could not find any hint. Reinstalling the agent with a customized conf - seemed quite complicated. And I did not want to use the file c:\zabbix\zabbix_agentd.userparams.conf (I cannot believe that this is the default value for the include).

    You gave me the idea to use the system.run[] command and it works like a charm - no deployment required. Perfect!

    I tried to collect specific information about each client which I did with the help of an one line powershell script. So far I cannot find any difference (at least for a windows machine), accept it is much easier to implement.

    May be the agent conf file should include a comment, that the system.run command could be an alternative to the UserParameter!

    Regards
    SebNeu

    Comment

    Working...