Ad Widget

Collapse

Sending logs in a triggered email

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CarlosMassiah
    Junior Member
    • Aug 2013
    • 8

    #1

    Sending logs in a triggered email

    I have tried sending a log called Dump in an email using the following;

    Code:
    {{HOSTNAME}:templatename.Dump.last(0)}
    {{HOSTNAME}:Dump.last(0)}
    {{HOSTNAME}:log["/tmp/dump.log"].last(0)}
    and it does not work. What is the correct syntax to do this (if it's possible) also is there a document on what statements / macro's exist in Zabbix? (2.0)

    Thanks
    Last edited by CarlosMassiah; 07-10-2013, 11:23. Reason: added a space to prevent a
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    List of available macros https://www.zabbix.com/documentation...ed_by_location
    So try:
    {HOST.NAME}{ITEM.VALUE}
    maybe
    {HOST.NAME}{ITEM.LASTVALUE}
    I'm not if it works also for logs.
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    Working...