Ad Widget

Collapse

cant find UserParameter

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • EvgenyA
    Junior Member
    • Aug 2021
    • 1

    #1

    cant find UserParameter

    Hi,
    I've just added a UserParameter to the configuration file /etc/zabbix/zabbix_agentd.conf.

    Code:
    UserParameter=fping.chk,fping -e 8.8.8.8 | awk '{ print $4 }' | tr -d '('
    I've checked it with zabbix_agentd (it's fine)

    Code:
    $zabbix_agentd -t fping.chk
    fping.chk [t|12.6]
    And it works if I check with zabbix_get

    Code:
    $zabbix_get -s 127.0.0.1 -p 10050 -k "fping.chk"
    12.9
    I restarted both server and agent, but still can't see fping.chk in the list of keys in the new data item page.

    Do you have any idea of what went wrong?
    Thanks in advance!
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Add it as an item to the host or template.

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #3
      UserParameters do not show up inthe list like built in ones. You just need to know them and use them, where appropriate..

      Comment

      Working...