Ad Widget

Collapse

Help using UserParameters and external scripts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jfriedman
    Junior Member
    • Jun 2006
    • 9

    #1

    Help using UserParameters and external scripts

    Hello, I am new to Zabbix, and am having trouble finding examples of how to use your own scripts.
    For example, if I add this to zabbix_agentd.conf:
    UserParameter=mailq,echo /var/spool/mail/* | wc -w
    What do I enter for "key" when I add an Item on the server? Just "mailq"?
    When I try this, it goes "unsupported" right away.
    Confused.

    Thanks in advance.

    Jeff Friedman
  • jfriedman
    Junior Member
    • Jun 2006
    • 9

    #2
    Got it working!

    Seems I just needed to try a few more things. Adding the line to zabbix_agentd.conf and then using that key when creating a new item was all it needed.

    Comment

    • just2blue4u
      Senior Member
      • Apr 2006
      • 347

      #3
      you can try out your items with the following commands:

      at client side: zabbix_agentd -t <item key> (e.g. mailq)
      at server side: zabbix_get -s <client hostname or IP> -k <item key> (e.g. -s mail.domain -k mailq)
      Big ZABBIX is watching you!
      (... and my 48 hosts, 4513 items, 1280 triggers via zabbix v1.6 on CentOS 5.0)

      Comment

      Working...