Ad Widget

Collapse

Logrt to count

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • thysk
    Junior Member
    • May 2013
    • 21

    #1

    Logrt to count

    Hi

    I have a mail server and I want to count the amount of emails relayed via my server. I am currently doing this with a script that counts the successful deliveries and then sends the result using zsender. grep -c "string"

    Is it possible to do this with logrt ? I only see an option to pass matching text output to the Zabbix server but I would prefer to just count them on the agent's side instead of passing the full string or part.

    Thanks in advance
    T
  • andris
    Zabbix developer
    • Feb 2012
    • 228

    #2
    It will be possible in Zabbix 3.2 (not yet released) with logrt.count[] item.

    See https://www.zabbix.com/documentation...s/zabbix_agent and https://www.zabbix.com/documentation...ypes/log_items .
    Last edited by andris; 10-08-2016, 16:04.

    Comment

    • thysk
      Junior Member
      • May 2013
      • 21

      #3
      Thanks for the super quick response, will wait for 3.2 then.

      Comment

      Working...