Ad Widget

Collapse

Macro / other way of setting template override

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

    #1

    Macro / other way of setting template override

    Thank you in advance with your patience for my question here - I'm still pretty new to Zabbix and have been using the forum and google to aid with my questions, but I've run into something where I'm not finding a clear cut example of how to do this.

    Situation:

    We use the Macro tab in a particular Template to populate several values on each host (at discover time) so that for a base system with nothing else configured, we can send trigger information to ServiceNow and have tickets created in the appropriate bucket for the OS Admin team.

    There are certain cases (we can use Oracle file systems for the example), where we might want to send that notification directly to a different team.

    I've set up a separate trigger to override the auto discovered File System triggers for a test file system, but I'm not spotting anywhere on the trigger itself where I could change the macro that says send the tickets to say the DBA team versus the UNIX team.

    #1, is there a way to do that in the administration gui to override the macro that we execute for the host based on the template or am I out of luck doing so?

    #2, If #1 is false, then I thought I realized that via LLD Discovery, you can populate some values in your /etc/zabbix/zabbix_agent.conf (or the zabbix_agentd.conf) to do this, but I haven't spotted a good clear cut example of how to do this as a per-file-system override of populating a value.

    let's use
    systemname=myunixmachine
    file system in question = /u01
    parameter_we_macro_1=UNIX group

    Any thoughts, or are we out of luck?
  • steveboyson
    Senior Member
    • Jul 2013
    • 582

    #2
    Maybe you could use a custom alertscript and utilize a lookup table there, which checks for the origin of the trigger and based on that finds out the specific target to send the alert to.

    Comment

    • jeffreys
      Junior Member
      • Mar 2014
      • 8

      #3
      Any links to either the doco or examples I can check into for that? I'm not asking anyone to do the work for me, I'm just still quite recent to this and have yet to figure out what's what.

      Comment

      • steveboyson
        Senior Member
        • Jul 2013
        • 582

        #4

        Comment

        Working...