Ad Widget

Collapse

Multible values for one item

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alzabbixforum
    Junior Member
    • Mar 2014
    • 8

    #1

    Multible values for one item

    Hi.

    I haven't found an answer to the following question.

    Maybe I have searched wrong.

    I want to reduce the call of

    fail2ban-client status ssh

    The current solution is like this

    Code:
    UserParameter=f2b.filter.cf,/usr/bin/fail2ban-client status ssh|awk '/Currently failed:/ {print $5}'
    UserParameter=f2b.filter.tf,/usr/bin/fail2ban-client status ssh|awk '/Total failed:/ {print $5}'
    ...fail2ban-client status ssh|awk '/Currently banned:/ {print $4}'
    ...fail2ban-client status ssh|awk '/Total banned:/ {print $4}'
    for this I have script which calls only once the fail2ban-client collect the data and can return all date once, similar like munin.



    In general is it possible to return more then one value to Zabbix server over UserParameter?

    Thank you for your help
    al
  • coreychristian
    Senior Member
    Zabbix Certified Specialist
    • Jun 2012
    • 159

    #2
    You need to use zabbix sender to insert multiple values at the same time.

    So it's doable, just not with a standard user parameter.

    Comment

    Working...