zabbix_export:
  version: '7.0'
  template_groups:
    - uuid: dc5a44a0fce848ada7440f4e2b6d0fa4
      name: BestPracticeTemplates
    - uuid: 846977d1dfed4968bc5f8bdb363285bc
      name: 'Templates/Operating systems'
  templates:
    - uuid: d8210fe2734a4f85b5b89de3b6116b6d
      template: 'KD Linux by Zabbix agent Active'
      name: 'KD Linux by Zabbix agent Active'
      description: |
        Summary:
        Zabbix standard Linux template for Kyndryl implementations. 
        
        Deployment Details:
        Import the template to your Zabbix system, assign your target devices.
        
        Log Monitoring:
        To implement log monitoring you can use the log related Macros. There are 3 Macros reserved for each severity, they have the following pattern <br>
        **{$LOG\.\<SEVERITY\>\.\<SLOT\>}**
        
        Each macro supports up to 2048 characters. 
        
        Use the following pattern to implement the monitoring
        
        ```bash
        
        <log_file>;<regex1>||<log_file>;<regex2>||<log_file>;<regexN>
        
        ```
        
        Note that each rule is separated by **double pipe** (||). So basically the pattern is the **file full path** followed by **semi-colon** (;) followed by the **regex** and if need to add another rule, then separate by double pipe. 
        
        The following example demonstrate 3 monitoring rules implemented for CRITICAL severity (the example is not for real environment). 
        
        Pick macro **{$LOG.CRITICAL.1}** and add the following value
        
        ```bash
        
        /var/log/mylog.log;Password is expired for user ([\\w|\\d]+)||/var/log/mylog.log;*(hdisk\\d+)\\s+PATH HAS RECOVERED||/var/log/messages;Severe Failure
        
        ```
        
        Make sure to add groups to your regex when you need to have unique tickets created using the same regex rule. For example, mind the first regex in the example above and the following captured values1
        
        Password is expired for user **user1**
        
        Password is expired for user **user2**
        
        Password is expired for user **user3**
        
        The regex provided **Password is expired for user ([\\w|\\d]+)**  contain the regex group (regex patterns enclosed by parenthesis) that will capture each user as different problem instances, and this will generate 3 different tickets
        
        If the regex is just **Password is expired for user** the 3 messages captured will generate a single ticket.
        
        
        ## Caveat
         
        **In the log monitoring macro when adding a regex and need to add a backslash, make sure add it doubled (\\), otherwise Zabbix will understand it as a escape character only**
        
        User Password Monitoring:
        Configure Macros for User Password Monitoring
        {$PASSWORD_ACCOUNT_MONITORED}
        Description: A comma-separated list of usernames to be monitored.
        Behavior: If this macro is left empty, the system will monitor all non-system users by default.
        
        {$PASSWORD_EXPIRY_THRESHOLD}
        Description: A numeric value that represents the number of days before a password expires.
        Default Value: 7 days.
        
        Host Configuration Guide:
        - Python 3.8 or newer must be installed on the host. DO NOT replace the default python on the host, instead install a newer version alongside the default one.
        - Deploy the Script: Copy the entire userpassmon folder to the Zabbix agent's configuration directory (/opt/zabbix/conf.d).
        - Verify Permissions: Ensure the zabbix user has read and execute permissions for all files and directories you copied.
        - Configure Logging: The script defaults to writing a log file at /tmp/userpassmon.log. Ensure the zabbix user has permissions to create and write to this file
        - Update the UserParameter: The userpassmon.conf file should be located inside /opt/zabbix/conf.d/. This file contains the UserParameter that executes your Python script.
        - Adjust Python Executable Path (if using a virtual environment): If you are using a Python virtual environment (like Miniconda or venv), you must update the UserParameter definition in userpassmon.conf to use the absolute path of the Python executable from your environment.
        - Grant sudo Privileges: The userpassmon.py script requires sudo access to run the passwd and chage commands. zabbix ALL=(ALL) NOPASSWD: /usr/bin/passwd -S *, /usr/bin/chage -l *
        - Finalize Changes: After making all modifications, restart the Zabbix agent to apply the new configuration and permissions.
        
        Known problems and limitations:
        SRM collection might require collection interval 1m or scheduled interval m/5. that are not recommended by Global O&A due impact on performance and resources. The fix is expected on SRM side.
        
        Prerequisites:
        Zabbix agent or agent2 installed with ACTIVE mode enabled.
      vendor:
        name: 'Kyndryl O&A'
        version: 2.2.0
      groups:
        - name: BestPracticeTemplates
        - name: 'Templates/Operating systems'
      items:
        - uuid: ef6886b8d21643f188868d4994e05434
          name: 'Host name of Zabbix agent running'
          type: ZABBIX_ACTIVE
          key: agent.hostname
          delay: 1h
          history: 7d
          value_type: CHAR
          trends: '0'
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          tags:
            - tag: component
              value: 'Monitoring agent'
        - uuid: d08c1c5dc882408995f9e5d7a35442ac
          name: 'Zabbix agent ping'
          type: ZABBIX_ACTIVE
          key: agent.ping
          delay: 5m
          history: 7d
          trends: 90d
          description: 'The agent always returns "1" for this item. May be used in combination with `nodata()` for the availability check.'
          tags:
            - tag: component
              value: 'Monitoring agent'
          triggers:
            - uuid: b82a8a959a0f4bf6a72d1ab72c72cff3
              expression: 'nodata(/KD Linux by Zabbix agent Active/agent.ping,{$AGENT.AVAILABILITY.TIMEOUT})=1'
              name: 'Zabbix agent is not available'
              event_name: 'Zabbix agent is not available (or nodata for {$AGENT.AVAILABILITY.TIMEOUT})'
              priority: HIGH
              manual_close: 'YES'
              dependencies:
                - name: 'Host is unavailable'
                  expression: 'nodata(/KD Linux by Zabbix agent Active/agent.ping,{$HOST.AVAILABILITY.TIMEOUT})=1 and max(/KD Linux by Zabbix agent Active/icmpping[,3,1000,,1000,],{$HOST.AVAILABILITY.TIMEOUT})=0'
                - name: 'Host is unavailable'
                  expression: 'nodata(/KD Linux by Zabbix agent Active/agent.ping,{$HOST.AVAILABILITY.TIMEOUT})=1 and max(/KD Linux by Zabbix agent Active/net.tcp.service[tcp,,{$HOST.AVAILABILITY.TCPPORT}],{$HOST.AVAILABILITY.TIMEOUT})=0'
              tags:
                - tag: ApplId
                  value: LINUX
                - tag: Component
                  value: Zabbix
                - tag: ComponentType
                  value: Application
                - tag: SubComponent
                  value: Agent
        - uuid: affa451f30124c2c9463d68801479cbf
          name: 'Version of Zabbix agent running'
          type: ZABBIX_ACTIVE
          key: agent.version
          delay: 1d
          history: 90d
          value_type: CHAR
          trends: '0'
          inventory_link: SOFTWARE
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          tags:
            - tag: component
              value: 'Monitoring agent'
            - tag: inventory
        - uuid: 5a420834d8a74ca3922c9b1960b0f6c4
          name: 'Get User Accounts'
          type: ZABBIX_ACTIVE
          key: 'get.user_accounts[{$PASSWORD_EXPIRY_THRESHOLD},{$PASSWORD_ACCOUNT_MONITORED}]'
          delay: 1d
          history: '0'
          value_type: TEXT
          trends: '0'
          status: DISABLED
        - uuid: 1fc9165fe81147c4a5cd13133f478537
          name: 'Zabbix agent ping by simplecheck'
          type: SIMPLE
          key: 'icmpping[,,,,]'
          delay: 5m
          history: 7d
          trends: 90d
          description: 'The agent always returns 1 for this item. It could be used in combination with nodata() for availability check.'
          tags:
            - tag: component
              value: 'Monitoring agent'
        - uuid: 62d5ce0ef5544ea587faf99db97fae8c
          name: 'Host availability by ICMP'
          type: SIMPLE
          key: 'icmpping[,3,1000,,1000,]'
          delay: 5m
          history: 7d
          trends: 90d
          status: DISABLED
          description: 'This item is used in combined trigger for host availability alert. Please make sure you have enabled ICMP traffic between Zabbix proxies and monitored hosts. The item is disabled by default and you must enable it. You can also enable alternative monitoring method using TCP, depending on your preference.'
          tags:
            - tag: component
              value: connectivity
        - uuid: 6d81d144affa403688dac28ec0a3c48e
          name: 'Log Monitoring - Average'
          type: SCRIPT
          key: log.monitoring.average
          history: 7d
          value_type: TEXT
          trends: '0'
          params: |
            var json_output = [];
            var input_list = '{$LOG.AVERAGE.1}';
            var input_list1 = '{$LOG.AVERAGE.2}';
            var input_list2 = '{$LOG.AVERAGE.3}';
            
            // Combine all macros into a single input list, ignoring macros that contain their own names as values
            var combined_input_list = [input_list, input_list1, input_list2]
              .filter(function(value) {
                return value && !value.includes('{$LOG.AVERAGE') && !value.includes('UNKNOWN');
              })
              .join('||');
            
            // Workaround for an empty combined input list
            if (combined_input_list.length < 1) {
              //var jsonObject = { "{#VALUE}" : "no rules configured" };
              var jsonObject = { "{#LOG_FILE_A}": "no rules configured"};
              json_output.push(jsonObject);
            } else {
              var process_list = combined_input_list.split('||');
            
              for (var iter_process = 0; iter_process < process_list.length; iter_process++) {
                if (process_list[iter_process].length > 0) {
                  var process_user_split = process_list[iter_process].split(';');
                  var jsonObject = {
                    "{#LOG_FILE_A}": process_user_split[0], // log file name
                    "{#LOG_REGEX_A}": process_user_split[1] || "" // regex
                  };
                  json_output.push(jsonObject);
                }
              }
            }
            
            result = json_output;
            return JSON.stringify(result);
        - uuid: f63105eb07e641f789cdd9d4458aafe8
          name: 'Log Monitoring - Disaster'
          type: SCRIPT
          key: log.monitoring.disaster
          history: 7d
          value_type: TEXT
          trends: '0'
          params: |
            var json_output = [];
            var input_list = '{$LOG.DISASTER.1}';
            var input_list1 = '{$LOG.DISASTER.2}';
            var input_list2 = '{$LOG.DISASTER.3}';
            
            // Combine all macros into a single input list, ignoring macros that contain their own names as values
            var combined_input_list = [input_list, input_list1, input_list2]
              .filter(function(value) {
                return value && !value.includes('{$LOG.DISASTER') && !value.includes('UNKNOWN');
              })
              .join('||');
            
            // Workaround for an empty combined input list
            if (combined_input_list.length < 1) {
              //var jsonObject = { "{#VALUE}" : "no rules configured" };
              var jsonObject = { "{#LOG_FILE_D}": "no rules configured"};
              json_output.push(jsonObject);
            } else {
              var process_list = combined_input_list.split('||');
            
              for (var iter_process = 0; iter_process < process_list.length; iter_process++) {
                if (process_list[iter_process].length > 0) {
                  var process_user_split = process_list[iter_process].split(';');
                  var jsonObject = {
                    "{#LOG_FILE_D}": process_user_split[0], // log file name
                    "{#LOG_REGEX_D}": process_user_split[1] || "" // regex
                  };
                  json_output.push(jsonObject);
                }
              }
            }
            
            result = json_output;
            return JSON.stringify(result);
        - uuid: 5c597bdcd9984226b7c69dd7e5d87678
          name: 'Log Monitoring - High'
          type: SCRIPT
          key: log.monitoring.high
          history: 7d
          value_type: TEXT
          trends: '0'
          params: |
            var json_output = [];
            var input_list = '{$LOG.HIGH.1}';
            var input_list1 = '{$LOG.HIGH.2}';
            var input_list2 = '{$LOG.HIGH.3}';
            
            // Combine all macros into a single input list, ignoring macros that contain their own names as values
            var combined_input_list = [input_list, input_list1, input_list2]
              .filter(function(value) {
                return value && !value.includes('{$LOG.HIGH') && !value.includes('UNKNOWN');
              })
              .join('||');
            
            // Workaround for an empty combined input list
            if (combined_input_list.length < 1) {
              //var jsonObject = { "{#VALUE}" : "no rules configured" };
              var jsonObject = { "{#LOG_FILE_H}": "no rules configured"};
              json_output.push(jsonObject);
            } else {
              var process_list = combined_input_list.split('||');
            
              for (var iter_process = 0; iter_process < process_list.length; iter_process++) {
                if (process_list[iter_process].length > 0) {
                  var process_user_split = process_list[iter_process].split(';');
                  var jsonObject = {
                    "{#LOG_FILE_H}": process_user_split[0], // log file name
                    "{#LOG_REGEX_H}": process_user_split[1] || "" // regex
                  };
                  json_output.push(jsonObject);
                }
              }
            }
            
            result = json_output;
            return JSON.stringify(result);
        - uuid: 287381f4c1f6433d842cd1fe45b356cb
          name: 'Log Monitoring - Warning'
          type: SCRIPT
          key: log.monitoring.warning
          history: 7d
          value_type: TEXT
          trends: '0'
          params: |
            var json_output = [];
            var input_list = '{$LOG.WARNING.1}';
            var input_list1 = '{$LOG.WARNING.2}';
            var input_list2 = '{$LOG.WARNING.3}';
            
            // Combine all macros into a single input list, ignoring macros that contain their own names as values
            var combined_input_list = [input_list, input_list1, input_list2]
              .filter(function(value) {
                return value && !value.includes('{$LOG.WARNING') && !value.includes('UNKNOWN');
              })
              .join('||');
            
            // Workaround for an empty combined input list
            if (combined_input_list.length < 1) {
              //var jsonObject = { "{#VALUE}" : "no rules configured" };
              var jsonObject = { "{#LOG_FILE_W}": "no rules configured"};
              json_output.push(jsonObject);
            } else {
              var process_list = combined_input_list.split('||');
            
              for (var iter_process = 0; iter_process < process_list.length; iter_process++) {
                if (process_list[iter_process].length > 0) {
                  var process_user_split = process_list[iter_process].split(';');
                  var jsonObject = {
                    "{#LOG_FILE_W}": process_user_split[0], // log file name
                    "{#LOG_REGEX_W}": process_user_split[1] || "" // regex
                  };
                  json_output.push(jsonObject);
                }
              }
            }
            
            result = json_output;
            return JSON.stringify(result);
        - uuid: bfbb2c7f7eb74f928a7a74df9287451e
          name: 'Host availability by TCP'
          type: SIMPLE
          key: 'net.tcp.service[tcp,,{$HOST.AVAILABILITY.TCPPORT}]'
          delay: 5m
          history: 7d
          trends: 90d
          status: DISABLED
          description: 'This item is used in combined trigger for host availability alert. Please make sure you have enabled TCP traffic for the port specified in template macro between Zabbix proxies and monitored hosts. The item is disabled by default and you must enable it. You can also enable alternative monitoring method using ICMP, depending on your preference.'
          tags:
            - tag: component
              value: connectivity
        - uuid: 351e47a1fc1b4aa2a3c1a71cdab15d08
          name: 'Memory process'
          type: ZABBIX_ACTIVE
          key: 'proc.mem[,,avg]'
          delay: 5m
          history: 7d
          value_type: FLOAT
          trends: 90d
          description: |
            Memory Used By Process.
            Item for Grafana Dashboard.
          tags:
            - tag: component
              value: memory
        - uuid: 2cab74b320224f0684b3fd72b3459467
          name: 'State of running processes [chronyd|ntp]'
          type: ZABBIX_ACTIVE
          key: 'proc.num[,,,chronyd|ntdp]'
          delay: 5m
          history: 7d
          trends: 90d
          tags:
            - tag: component
              value: Process
        - uuid: 3184d6d469104e31ad078d7826d40f67
          name: 'State of running processes [cron]'
          type: ZABBIX_ACTIVE
          key: 'proc.num[,,,cron.*]'
          delay: 5m
          history: 7d
          trends: 90d
          tags:
            - tag: component
              value: Process
        - uuid: cf1873ffdfc940f6bf17728a6e2e8d08
          name: 'State of running processes [ssh]'
          type: ZABBIX_ACTIVE
          key: 'proc.num[,,,ssh.*]'
          delay: 5m
          history: 7d
          trends: 90d
          tags:
            - tag: component
              value: Process
        - uuid: c19e5c6f45224c1bb5f1872a1a3f8dba
          name: 'State of running processes [syslog]'
          type: ZABBIX_ACTIVE
          key: 'proc.num[,,,syslog.*]'
          delay: 5m
          history: 7d
          trends: 90d
          tags:
            - tag: component
              value: Process
        - uuid: 2535173fc80043559dd5c642120466c3
          name: 'Number of zombie processes'
          type: ZABBIX_ACTIVE
          key: 'proc.num[,,zomb]'
          delay: 15m
          history: 7d
          trends: 90d
          tags:
            - tag: component
              value: Process
          triggers:
            - uuid: e762376ba6d64f64b6883093552e5d47
              expression: 'min(/KD Linux by Zabbix agent Active/proc.num[,,zomb],10m)>{$SYSTEM.PROC.ZOMBIE.MEDIUM}'
              recovery_mode: RECOVERY_EXPRESSION
              recovery_expression: 'max(/KD Linux by Zabbix agent Active/proc.num[,,zomb],10m)<{$SYSTEM.PROC.ZOMBIE.MEDIUM}'
              name: 'Linux zombie processes [Average]'
              event_name: 'Linux zombie processes are over {$SYSTEM.PROC.ZOMBIE.MEDIUM}: {ITEM.VALUE}'
              status: DISABLED
              priority: AVERAGE
              manual_close: 'YES'
              dependencies:
                - name: 'Linux zombie processes [High]'
                  expression: 'min(/KD Linux by Zabbix agent Active/proc.num[,,zomb],10m)>{$SYSTEM.PROC.ZOMBIE.HIGH}'
                  recovery_expression: 'max(/KD Linux by Zabbix agent Active/proc.num[,,zomb],10m)<{$SYSTEM.PROC.ZOMBIE.HIGH}'
              tags:
                - tag: ApplId
                  value: LINUX
                - tag: Component
                  value: LINUX
                - tag: ComponentType
                  value: OperatingSystem
                - tag: SubComponent
                  value: Process
            - uuid: 4df578215e9b4d149256d549d8fa88fe
              expression: 'min(/KD Linux by Zabbix agent Active/proc.num[,,zomb],10m)>{$SYSTEM.PROC.ZOMBIE.HIGH}'
              recovery_mode: RECOVERY_EXPRESSION
              recovery_expression: 'max(/KD Linux by Zabbix agent Active/proc.num[,,zomb],10m)<{$SYSTEM.PROC.ZOMBIE.HIGH}'
              name: 'Linux zombie processes [High]'
              event_name: 'Linux zombie processes are over {$SYSTEM.PROC.ZOMBIE.HIGH}: {ITEM.VALUE}'
              priority: HIGH
              manual_close: 'YES'
              tags:
                - tag: ApplId
                  value: LINUX
                - tag: Component
                  value: LINUX
                - tag: ComponentType
                  value: OperatingSystem
                - tag: SubComponent
                  value: Process
        - uuid: 73e369452c6d46e2970881e71e55730e
          name: 'Total number of processes'
          type: ZABBIX_ACTIVE
          key: 'proc.num[]'
          delay: 5m
          history: 7d
          trends: 90d
          tags:
            - tag: component
              value: Process
        - uuid: e041efc174fd4da7ad891b0de3e75c47
          name: 'Load average (1m avg)'
          type: ZABBIX_ACTIVE
          key: 'system.cpu.load[all,avg1]'
          delay: 5m
          history: 7d
          value_type: FLOAT
          trends: 90d
          tags:
            - tag: component
              value: cpu
        - uuid: 0ee3caf6d48f45a7ab67b80831933c93
          name: 'Load average (5m avg)'
          type: ZABBIX_ACTIVE
          key: 'system.cpu.load[all,avg5]'
          delay: 5m
          history: 7d
          value_type: FLOAT
          trends: 90d
          tags:
            - tag: component
              value: cpu
        - uuid: 05dddd260b9e4e06a5156e3266781f1d
          name: 'Load average (15m avg)'
          type: ZABBIX_ACTIVE
          key: 'system.cpu.load[all,avg15]'
          delay: 5m
          history: 7d
          value_type: FLOAT
          trends: 90d
          tags:
            - tag: component
              value: cpu
        - uuid: 115894fd54bc457cba09f0abda3d4002
          name: 'Number of CPUs'
          type: ZABBIX_ACTIVE
          key: system.cpu.num
          delay: 1d
          history: 90d
          trends: '0'
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          tags:
            - tag: component
              value: cpu
            - tag: SRM
        - uuid: dba2179659e24c71b9adf66aa5dd974c
          name: 'Linux: CPU context switches per second'
          type: ZABBIX_ACTIVE
          key: system.cpu.switches
          delay: 5m
          history: 7d
          trends: '0'
          status: DISABLED
          tags:
            - tag: SRM
        - uuid: 03f1548cd3904432bf76149053c0e203
          name: 'CPU utilization'
          type: DEPENDENT
          key: system.cpu.util
          delay: '0'
          history: 7d
          value_type: FLOAT
          trends: 90d
          units: '%'
          description: 'CPU utilization in %'
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - |
                  //Calculate utilization
                  return (100 - value)
          master_item:
            key: 'system.cpu.util[,idle]'
          tags:
            - tag: component
              value: cpu
          triggers:
            - uuid: 83942e7e98ef464e93fa521addbf2e3c
              expression: 'min(/KD Linux by Zabbix agent Active/system.cpu.util,30m)>{$CPU.UTIL.HIGH}'
              recovery_mode: RECOVERY_EXPRESSION
              recovery_expression: 'max(/KD Linux by Zabbix agent Active/system.cpu.util,15m)<{$CPU.UTIL.HIGH}'
              name: 'High CPU utilization'
              event_name: 'High CPU utilization (over {$CPU.UTIL.HIGH}% for 30m)'
              opdata: 'Current utilization: {ITEM.LASTVALUE1}'
              priority: HIGH
              description: 'CPU utilization is too high. The system might be slow to respond.'
              manual_close: 'YES'
              dependencies:
                - name: 'High CPU Load Average'
                  expression: 'min(/KD Linux by Zabbix agent Active/system.cpu.load[all,avg5],15m)/last(/KD Linux by Zabbix agent Active/system.cpu.num)>{$CPU.LOAD_AVG_PER_CPU.MAX.HIGH}'
              tags:
                - tag: ApplId
                  value: LINUX
                - tag: Component
                  value: LINUX
                - tag: ComponentType
                  value: OperatingSystem
                - tag: SubComponent
                  value: CPU
        - uuid: 6a9912f2edac43bd9eb637ccea768971
          name: 'CPU idle time'
          type: ZABBIX_ACTIVE
          key: 'system.cpu.util[,idle]'
          delay: 5m
          history: 7d
          value_type: FLOAT
          trends: 90d
          units: '%'
          description: 'The time the CPU has spent doing nothing.'
          tags:
            - tag: component
              value: cpu
        - uuid: 45883748c4474c5ba67a54ef407334f6
          name: 'CPU IO wait'
          type: ZABBIX_ACTIVE
          key: 'system.cpu.util[,iowait,avg5]'
          delay: 5m
          history: 7d
          value_type: FLOAT
          trends: 90d
          description: 'Item for Grafana Dashboard.'
          tags:
            - tag: component
              value: cpu
        - uuid: 3517ee35311e4c9d82a2545449add3ea
          name: 'Linux: CPU iowait time'
          type: ZABBIX_ACTIVE
          key: 'system.cpu.util[,iowait]'
          delay: 5m
          history: 7d
          value_type: FLOAT
          trends: '0'
          status: DISABLED
          units: '%'
          tags:
            - tag: SRM
        - uuid: 480e4a16809641f2889a59cf7cb5bc7f
          name: 'CPU system %'
          type: ZABBIX_ACTIVE
          key: 'system.cpu.util[,system,avg5]'
          delay: 5m
          history: 7d
          value_type: FLOAT
          trends: 90d
          description: 'Item for Grafana Dashboard.'
          tags:
            - tag: component
              value: cpu
        - uuid: aa852e9295904071ba0db8bb8e0829aa
          name: 'Linux: CPU system time'
          type: ZABBIX_ACTIVE
          key: 'system.cpu.util[,system]'
          delay: 5m
          history: 7d
          value_type: FLOAT
          trends: '0'
          status: DISABLED
          units: '%'
          description: 'Partially duplicate to (system.cpu.util[,user,avg5])'
          tags:
            - tag: SRM
        - uuid: 8ef02f65ead64e8b9e07957d4bea3710
          name: 'CPU user %'
          type: ZABBIX_ACTIVE
          key: 'system.cpu.util[,user,avg5]'
          delay: 5m
          history: 7d
          value_type: FLOAT
          trends: 90d
          description: 'Item for Grafana Dashboard.'
          tags:
            - tag: component
              value: cpu
        - uuid: f72c7c96b4884333a2405b793e07c103
          name: 'Linux: CPU user time'
          type: ZABBIX_ACTIVE
          key: 'system.cpu.util[,user]'
          delay: 5m
          history: 7d
          value_type: FLOAT
          trends: '0'
          status: DISABLED
          units: '%'
          description: 'Partially duplicate to system.cpu.util[,user, avg5]'
          tags:
            - tag: SRM
        - uuid: 5fe79f8654c34df9946e1ac325bb77c5
          name: 'System name'
          type: ZABBIX_ACTIVE
          key: system.hostname
          delay: 1d
          history: 90d
          value_type: CHAR
          trends: '0'
          description: 'System host name.'
          inventory_link: NAME
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 12h
          tags:
            - tag: component
              value: os
            - tag: inventory
            - tag: SRM
          triggers:
            - uuid: c88d59d7de404cb1a2ed21cd90ed1ec3
              expression: 'last(/KD Linux by Zabbix agent Active/system.hostname,#1)<>last(/KD Linux by Zabbix agent Active/system.hostname,#2) and length(last(/KD Linux by Zabbix agent Active/system.hostname))>0'
              name: 'System name has changed (new name: {ITEM.VALUE})'
              priority: WARNING
              description: 'System name has changed. Ack to close.'
              manual_close: 'YES'
              tags:
                - tag: ApplId
                  value: LINUX
                - tag: Component
                  value: LINUX
                - tag: ComponentType
                  value: OperatingSystem
        - uuid: 23ae308cb1d34a7f85f71fd31063fbc0
          name: 'Cpu model'
          type: ZABBIX_ACTIVE
          key: 'system.hw.cpu[0,model]'
          delay: 1d
          history: 90d
          value_type: CHAR
          trends: '0'
          tags:
            - tag: component
              value: cpu
            - tag: SRM
        - uuid: d81c2c0286e24e6383c4217b0b74dda8
          name: 'OS Short Name'
          type: DEPENDENT
          key: system.osshortname
          delay: '0'
          history: 7d
          value_type: TEXT
          trends: '0'
          inventory_link: OS_SHORT
          preprocessing:
            - type: REGEX
              parameters:
                - '^([\w\-]+)'
                - \1
          master_item:
            key: system.uname
          tags:
            - tag: component
              value: os
            - tag: inventory
        - uuid: d95083dc8a6444b39327a197131f3b7b
          name: 'Linux: Operating system architecture'
          type: ZABBIX_ACTIVE
          key: system.sw.arch
          delay: 1d
          history: 90d
          value_type: CHAR
          trends: '0'
          description: 'The architecture of the operating system.'
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          tags:
            - tag: SRM
        - uuid: 4fccf3fe86944807b4d690256dc5a8fa
          name: 'Linux: Operating system'
          type: ZABBIX_ACTIVE
          key: system.sw.os
          delay: 1d
          history: 90d
          value_type: CHAR
          trends: '0'
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          tags:
            - tag: SRM
        - uuid: a55e0461e8824f608c08df06cd235470
          name: 'Linux: Operating system (name)'
          type: ZABBIX_ACTIVE
          key: 'system.sw.os[name]'
          delay: 1d
          history: 90d
          value_type: CHAR
          trends: '0'
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          tags:
            - tag: SRM
        - uuid: 728dd3c1be9547a2b84125b13862ae0c
          name: 'Swap in'
          type: ZABBIX_ACTIVE
          key: system.swap.in
          delay: 5m
          history: 7d
          trends: '0'
          status: DISABLED
          units: B
          tags:
            - tag: component
              value: memory
            - tag: component
              value: storage
            - tag: SRM
        - uuid: 20aa9d19b2f74c068ef3979d2db0f505
          name: 'Swap in count'
          type: ZABBIX_ACTIVE
          key: 'system.swap.in[,count]'
          delay: 5m
          history: 7d
          trends: '0'
          status: DISABLED
          tags:
            - tag: component
              value: memory
            - tag: component
              value: storage
            - tag: SRM
        - uuid: abe9f923aa8f4b9e860d5ea491998353
          name: 'Pages paged in per second'
          type: ZABBIX_ACTIVE
          key: 'system.swap.in[,pages]'
          delay: 5m
          history: 7d
          trends: '0'
          tags:
            - tag: component
              value: memory
            - tag: SRM
        - uuid: 0bc4f306b60a4777a5e6d53fddbd176d
          name: 'Swap out'
          type: ZABBIX_ACTIVE
          key: system.swap.out
          delay: 5m
          history: 7d
          trends: '0'
          status: DISABLED
          units: B
          tags:
            - tag: component
              value: memory
            - tag: component
              value: storage
            - tag: SRM
        - uuid: 59c8039e1e564bb1932c860ea450c9a3
          name: 'Swap out count'
          type: ZABBIX_ACTIVE
          key: 'system.swap.out[,count]'
          delay: 5m
          history: 7d
          trends: '0'
          status: DISABLED
          units: B
          tags:
            - tag: component
              value: memory
            - tag: component
              value: storage
            - tag: SRM
        - uuid: 12ba398c21e94984a1938d1d32a24293
          name: 'Pages paged out per second'
          type: ZABBIX_ACTIVE
          key: 'system.swap.out[,pages]'
          delay: 5m
          history: 7d
          trends: '0'
          tags:
            - tag: component
              value: memory
            - tag: SRM
        - uuid: 96feebafd78949c9a90e19ef0054fd67
          name: 'Free swap space in %'
          type: ZABBIX_ACTIVE
          key: 'system.swap.size[,pfree]'
          delay: 5m
          history: 7d
          value_type: FLOAT
          trends: 90d
          units: '%'
          description: 'The free space of the swap volume/file expressed in %.'
          tags:
            - tag: component
              value: memory
            - tag: component
              value: storage
        - uuid: 920f86b289744284a5e6abd600961dee
          name: 'Swap usage percentage'
          type: ZABBIX_ACTIVE
          key: 'system.swap.size[,pused]'
          delay: 5m
          history: 7d
          value_type: FLOAT
          trends: 90d
          units: '%'
          tags:
            - tag: component
              value: memory
            - tag: SRM
        - uuid: 2629489a304b47ca9de0dcfd73e186ee
          name: 'Total swap space'
          type: ZABBIX_ACTIVE
          key: 'system.swap.size[,total]'
          delay: 5m
          history: 7d
          trends: 90d
          units: B
          description: 'The total space of the swap volume/file expressed in bytes.'
          tags:
            - tag: component
              value: memory
            - tag: component
              value: storage
        - uuid: 9e5988ec42294f8489b519dd6b42b92d
          name: 'Used swap space'
          type: ZABBIX_ACTIVE
          key: 'system.swap.size[,used]'
          delay: 5m
          history: 7d
          value_type: FLOAT
          trends: '0'
          status: DISABLED
          description: 'The used space of the swap volume/file.'
          tags:
            - tag: component
              value: memory
            - tag: component
              value: storage
            - tag: SRM
        - uuid: 8d06c90d83834fe5a80869dc2cb62f1f
          name: 'Swap free %'
          type: ZABBIX_ACTIVE
          key: 'system.swap.size[all,pfree]'
          delay: 5m
          history: 7d
          value_type: FLOAT
          trends: 90d
          description: 'Item for Grafana Dashboard.'
          tags:
            - tag: component
              value: memory
        - uuid: ce36618daa4b4e7ca361299643764dc5
          name: 'Operating system'
          type: ZABBIX_ACTIVE
          key: system.uname
          delay: 1d
          history: 90d
          value_type: CHAR
          trends: '0'
          inventory_link: OS_FULL
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          tags:
            - tag: component
              value: 'Monitoring agent'
            - tag: inventory
        - uuid: f5c7a4d6408d417e831a79bee944c8a5
          name: 'System uptime'
          type: ZABBIX_ACTIVE
          key: system.uptime
          delay: 5m
          history: 7d
          trends: 90d
          units: uptime
          description: 'System uptime in ''N days, hh:mm:ss'' format.'
          tags:
            - tag: component
              value: os
          triggers:
            - uuid: dd27092dd42c4ec6aaaa6d9f4389359b
              expression: 'change(/KD Linux by Zabbix agent Active/system.uptime)<0'
              recovery_mode: NONE
              name: 'Host was restarted'
              event_name: 'Host was restarted (uptime {ITEM.VALUE} minutes)'
              priority: WARNING
              description: 'The host uptime is less than 10 minutes'
              type: MULTIPLE
              manual_close: 'YES'
              tags:
                - tag: ApplId
                  value: LINUX
                - tag: Component
                  value: LINUX
                - tag: ComponentType
                  value: OperatingSystem
        - uuid: 77d0b385570f4adfa8a87a3f103afe6e
          name: 'Get filesystems from /etc/fstab'
          type: ZABBIX_ACTIVE
          key: 'vfs.file.contents[/etc/fstab]'
          delay: 5m
          history: 7d
          value_type: TEXT
          trends: '0'
          description: 'Get list of filesystems from /etc/fstab file for "Automount discovery"'
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - |
                  var json_output = [];
                  var list_fs = value.split("\n");
                  for (var iter_automount = 0; iter_automount < list_fs.length;iter_automount++){
                    if(list_fs[iter_automount].startsWith('#')){
                    }
                    else if (list_fs[iter_automount] ==""){
                    }
                    else {
                    list_fs[iter_automount]= list_fs[iter_automount].replace(/\s+/g,'+');
                    var list_fs_line_2 = list_fs[iter_automount].split("+");
                    var jsonObjectFs = { "automount_name": list_fs_line_2[1], "fstype": list_fs_line_2[2], "fsopt": list_fs_line_2[3].replace(/.*noauto.*/g,"noauto")};
                    json_output.push(jsonObjectFs);
                    }
                  }
                  result = json_output;
                  return JSON.stringify(result);
          tags:
            - tag: component
              value: storage
        - uuid: ffcbb146c3f642218529c74a9d67c7ce
          name: 'Automount Get FS'
          type: ZABBIX_ACTIVE
          key: vfs.fs.get
          delay: 5m
          history: 7d
          value_type: TEXT
          trends: '0'
          description: 'Get mountpoints for Automount discovery'
          tags:
            - tag: component
              value: storage
        - uuid: d04772edacfa43dfbbd595e55256a7b2
          name: 'Available memory in MB'
          type: ZABBIX_ACTIVE
          key: 'vm.memory.size[available]'
          delay: 5m
          history: 7d
          trends: 90d
          units: M
          description: |
            The available memory:
            - in Linux = free + buffers + cache;
            - on other platforms calculation may vary.

            See also Appendixes in Zabbix Documentation about parameters of the `vm.memory.size` item.
          preprocessing:
            - type: MULTIPLIER
              parameters:
                - '9.5367431640625E-7'
          tags:
            - tag: component
              value: memory
          triggers:
            - uuid: 66756f816d664f12b4232df969c890f8
              expression: 'last(/KD Linux by Zabbix agent Active/vm.memory.size[available])<{$MEMORY.MBFREE.MEDIUM}'
              name: 'Low available memory [Average]'
              opdata: '{ITEM.VALUE}'
              priority: AVERAGE
              manual_close: 'YES'
              status: DISABLED
              dependencies:
                - name: 'Low available memory [High]'
                  expression: 'last(/KD Linux by Zabbix agent Active/vm.memory.size[available])<{$MEMORY.MBFREE.HIGH}'
              tags:
                - tag: ApplId
                  value: LINUX
                - tag: Component
                  value: LINUX
                - tag: ComponentType
                  value: OperatingSystem
                - tag: SubComponent
                  value: Memory
            - uuid: 1ccff8300a7841188eba6c85d1c339e6
              expression: 'last(/KD Linux by Zabbix agent Active/vm.memory.size[available])<{$MEMORY.MBFREE.HIGH}'
              name: 'Low available memory [High]'
              opdata: '{ITEM.VALUE}'
              priority: HIGH
              manual_close: 'YES'
              status: DISABLED
              tags:
                - tag: ApplId
                  value: LINUX
                - tag: Component
                  value: LINUX
                - tag: ComponentType
                  value: OperatingSystem
                - tag: SubComponent
                  value: Memory
            - uuid: 27b7fc3319d0491ba9808cafbc04ce6e
              expression: 'last(/KD Linux by Zabbix agent Active/vm.memory.size[available])<{$MEMORY.MBFREE.LOW}'
              name: 'Low available memory [Warning]'
              opdata: '{ITEM.VALUE}'
              priority: WARNING
              manual_close: 'YES'
              status: DISABLED
              dependencies:
                - name: 'Low available memory [Average]'
                  expression: 'last(/KD Linux by Zabbix agent Active/vm.memory.size[available])<{$MEMORY.MBFREE.MEDIUM}'
              tags:
                - tag: ApplId
                  value: LINUX
                - tag: Component
                  value: LINUX
                - tag: ComponentType
                  value: OperatingSystem
                - tag: SubComponent
                  value: Memory
        - uuid: 297a2d312076400aace2099845eab667
          name: 'Available memory'
          type: ZABBIX_ACTIVE
          key: 'vm.memory.size[available]'
          delay: 5m
          history: 7d
          trends: 90d
          units: B
          description: |
            The available memory:
            - in Linux = free + buffers + cache;
            - on other platforms calculation may vary.
            
            See also Appendixes in Zabbix Documentation about parameters of the `vm.memory.size` item.
          tags:
            - tag: component
              value: memory
        - uuid: ad61c866bbfb4b75b1618c8809989dc4
          name: 'Memory Buffer size'
          type: ZABBIX_ACTIVE
          key: 'vm.memory.size[buffers]'
          delay: 5m
          history: 7d
          trends: '0'
          status: DISABLED
          tags:
            - tag: component
              value: memory
            - tag: SRM
        - uuid: 4d48d72eeb054ce5a6242aa6b6437a23
          name: 'Cached Memory size'
          type: ZABBIX_ACTIVE
          key: 'vm.memory.size[cached]'
          delay: 5m
          history: 7d
          trends: '0'
          status: DISABLED
          tags:
            - tag: component
              value: memory
            - tag: SRM
        - uuid: 6231ba0ae0c04eee8e3a584342828da2
          name: 'Free Memory size'
          type: ZABBIX_ACTIVE
          key: 'vm.memory.size[free]'
          delay: 5m
          history: 7d
          trends: '0'
          status: DISABLED
          tags:
            - tag: component
              value: memory
            - tag: SRM
        - uuid: 46346b28038640caaf7f375b0cb36d9c
          name: 'Available memory in %'
          type: ZABBIX_ACTIVE
          key: 'vm.memory.size[pavailable]'
          delay: 5m
          history: 7d
          value_type: FLOAT
          trends: 90d
          units: '%'
          description: 'Available memory as percentage of total. See also Appendixes in Zabbix Documentation about parameters of the vm.memory.size item.'
          tags:
            - tag: component
              value: memory
        - uuid: 979fc152ae2d444493cfa200173b20fc
          name: 'Virtual memory used %'
          type: ZABBIX_ACTIVE
          key: 'vm.memory.size[pused]'
          delay: 5m
          history: 7d
          value_type: FLOAT
          trends: 90d
          description: 'Item for Grafana Dashboard.'
          tags:
            - tag: component
              value: memory
        - uuid: 176c90f639f74449a513a27fa1f8f4fe
          name: 'Total memory'
          type: ZABBIX_ACTIVE
          key: 'vm.memory.size[total]'
          delay: 10m
          history: 7d
          trends: 90d
          units: B
          description: 'Total memory in Bytes'
          tags:
            - tag: component
              value: memory
        - uuid: 29bfb8699202437b9134b92e53d8224c
          name: 'Virtual memory used in bytes'
          type: ZABBIX_ACTIVE
          key: 'vm.memory.size[used]'
          delay: 5m
          history: 7d
          value_type: FLOAT
          trends: 90d
          description: 'Item for Grafana Dashboard'
          tags:
            - tag: component
              value: memory
        - uuid: b5229ae4bbc742b2af0b237d4d2db14d
          name: 'Memory utilization'
          type: DEPENDENT
          key: vm.memory.utilization
          delay: '0'
          history: 7d
          value_type: FLOAT
          trends: 90d
          units: '%'
          description: 'Memory used percentage is calculated as (100-pavailable)'
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - 'return (100-value);'
          master_item:
            key: 'vm.memory.size[pavailable]'
          tags:
            - tag: component
              value: memory
          triggers:
            - uuid: 3082c7557fbf479e94b76747b6ffc4c8
              expression: 'min(/KD Linux by Zabbix agent Active/vm.memory.utilization,30m)>{$MEMORY.UTIL.HIGH}'
              recovery_mode: RECOVERY_EXPRESSION
              recovery_expression: 'max(/KD Linux by Zabbix agent Active/vm.memory.utilization,15m)<{$MEMORY.UTIL.HIGH}'
              name: 'High memory utilization [High]'
              event_name: 'High memory utilization (>{$MEMORY.UTIL.HIGH}% for 30m)'
              opdata: 'Current utilization: {ITEM.LASTVALUE1} %'
              priority: HIGH
              description: 'The system is running out of free memory.'
              manual_close: 'YES'
              tags:
                - tag: ApplId
                  value: LINUX
                - tag: Component
                  value: LINUX
                - tag: ComponentType
                  value: OperatingSystem
                - tag: SubComponent
                  value: Memory
            - uuid: d5d81df4c24b441ebcb787f27d1eeadb
              expression: 'min(/KD Linux by Zabbix agent Active/vm.memory.utilization,30m)>{$MEMORY.UTIL.MEDIUM}'
              recovery_mode: RECOVERY_EXPRESSION
              recovery_expression: 'max(/KD Linux by Zabbix agent Active/vm.memory.utilization,15m)<{$MEMORY.UTIL.MEDIUM}'
              name: 'High memory utilization [Average]'
              event_name: 'High memory utilization (>{$MEMORY.UTIL.MEDIUM}% for 30m)'
              opdata: 'Current utilization: {ITEM.LASTVALUE1} %'
              status: DISABLED
              priority: AVERAGE
              description: 'The system is running out of free memory.'
              manual_close: 'YES'
              dependencies:
                - name: 'High memory utilization [High]'
                  expression: 'min(/KD Linux by Zabbix agent Active/vm.memory.utilization,30m)>{$MEMORY.UTIL.HIGH}'
                  recovery_expression: 'max(/KD Linux by Zabbix agent Active/vm.memory.utilization,15m)<{$MEMORY.UTIL.HIGH}'
              tags:
                - tag: ApplId
                  value: LINUX
                - tag: Component
                  value: LINUX
                - tag: ComponentType
                  value: OperatingSystem
                - tag: SubComponent
                  value: Memory
            - uuid: cf4823a23f724b02872917a553e9e575
              expression: 'min(/KD Linux by Zabbix agent Active/vm.memory.utilization,30m)>{$MEMORY.UTIL.LOW}'
              recovery_mode: RECOVERY_EXPRESSION
              recovery_expression: 'max(/KD Linux by Zabbix agent Active/vm.memory.utilization,15m)<{$MEMORY.UTIL.LOW}'
              name: 'High memory utilization [Warning]'
              event_name: 'High memory utilization (>{$MEMORY.UTIL.LOW}% for 30m)'
              opdata: 'Current utilization: {ITEM.LASTVALUE1} %'
              priority: WARNING
              description: 'The system is running out of free memory.'
              manual_close: 'YES'
              status: DISABLED
              dependencies:
                - name: 'High memory utilization [Average]'
                  expression: 'min(/KD Linux by Zabbix agent Active/vm.memory.utilization,30m)>{$MEMORY.UTIL.MEDIUM}'
                  recovery_expression: 'max(/KD Linux by Zabbix agent Active/vm.memory.utilization,15m)<{$MEMORY.UTIL.MEDIUM}'
              tags:
                - tag: ApplId
                  value: LINUX
                - tag: Component
                  value: LINUX
                - tag: ComponentType
                  value: OperatingSystem
                - tag: SubComponent
                  value: Memory
        - uuid: d3b1f8c8f9ff43ef887cbea2f0b140d0
          name: 'Number of unsupported items on the host'
          type: INTERNAL
          key: 'zabbix[host,,items_unsupported]'
          delay: 1h
          history: 90d
          trends: '0'
          tags:
            - tag: component
              value: 'Monitoring agent'
        - uuid: 7f40915e1ecd4d6fa3f1602c24c3ac55
          name: 'Active agent availability'
          type: INTERNAL
          key: 'zabbix[host,active_agent,available]'
          history: 7d
          trends: 90d
          description: |
            Availability of active checks on the host. The value of this item corresponds to availability icons in the host list.
            Possible values:
            0 - unknown
            1 - available
            2 - not available
          tags:
            - tag: component
              value: 'Monitoring agent'
        - uuid: ee8feb5884c346e8b45340e9141e7106
          name: 'Zabbix agent availability'
          type: INTERNAL
          key: 'zabbix[host,agent,available]'
          delay: 5m
          history: 7d
          trends: 90d
          description: 'Monitoring agent availability status'
          tags:
            - tag: component
              value: 'Monitoring agent'
      discovery_rules:
        - uuid: 66dae18f37aa42a1b91ea816a0334787
          name: 'Log Monitoring Discovery - Average'
          type: DEPENDENT
          key: log.discovery.average
          delay: '0'
          filter:
            conditions:
              - macro: '{#LOG_FILE_A}'
                value: 'no rules configured'
                operator: NOT_MATCHES_REGEX
                formulaid: A
          lifetime_type: DELETE_IMMEDIATELY
          lifetime: '0'
          item_prototypes:
            - uuid: 7c527f4c6f7643dca26aa66611833650
              name: '{#LOG_FILE_A} monitoring using regex: {#LOG_REGEX_A} - Average'
              type: ZABBIX_ACTIVE
              key: 'log[{#LOG_FILE_A},{#LOG_REGEX_A},,,skip]'
              history: 15d
              value_type: LOG
              trends: '0'
              tags:
                - tag: Component
                  value: log
              trigger_prototypes:
                - uuid: 8cb03c36189a4485a4e23cea8dd3187a
                  expression: 'last(/KD Linux by Zabbix agent Active/log[{#LOG_FILE_A},{#LOG_REGEX_A},,,skip],#1)<>0'
                  recovery_mode: NONE
                  name: 'Log monitoring: {ITEM.LASTVALUE}'
                  priority: AVERAGE
                  type: MULTIPLE
                  manual_close: 'YES'
                  tags:
                    - tag: LogInstance
                      value: '{{ITEM.VALUE}.regsub({#LOG_REGEX_A},\1:\2:\3:\4:\5:)}'
          master_item:
            key: log.monitoring.average
        - uuid: 5bdca61f63164bc2a73765d1b06da463
          name: 'Log Monitoring Discovery - Disaster'
          type: DEPENDENT
          key: log.discovery.disaster
          delay: '0'
          filter:
            conditions:
              - macro: '{#LOG_FILE_D}'
                value: 'no rules configured'
                operator: NOT_MATCHES_REGEX
                formulaid: A
          lifetime_type: DELETE_IMMEDIATELY
          lifetime: '0'
          item_prototypes:
            - uuid: 7420da47ed524379aae087d776c1adee
              name: '{#LOG_FILE_D} monitoring using regex: {#LOG_REGEX_D} - Disaster'
              type: ZABBIX_ACTIVE
              key: 'log[{#LOG_FILE_D},{#LOG_REGEX_D},,,skip]'
              history: 15d
              value_type: LOG
              trends: '0'
              tags:
                - tag: Component
                  value: log
              trigger_prototypes:
                - uuid: 13126b8b0a254a07a4ea23a3c7a1a20a
                  expression: 'last(/KD Linux by Zabbix agent Active/log[{#LOG_FILE_D},{#LOG_REGEX_D},,,skip],#1)<>0'
                  recovery_mode: NONE
                  name: 'Log monitoring: {ITEM.LASTVALUE}'
                  priority: DISASTER
                  type: MULTIPLE
                  manual_close: 'YES'
                  tags:
                    - tag: LogInstance
                      value: '{{ITEM.VALUE}.regsub({#LOG_REGEX_D},\1:\2:\3:\4:\5:)}'
          master_item:
            key: log.monitoring.disaster
        - uuid: 782b4fea4bc24d109c2a7184c8ddd782
          name: 'Log Monitoring Discovery - High'
          type: DEPENDENT
          key: log.discovery.high
          delay: '0'
          filter:
            conditions:
              - macro: '{#LOG_FILE_H}'
                value: 'no rules configured'
                operator: NOT_MATCHES_REGEX
                formulaid: A
          item_prototypes:
            - uuid: 04a511b0dabd4acf86baf65199d8928c
              name: '{#LOG_FILE_H} monitoring using regex: {#LOG_REGEX_H} - High'
              type: ZABBIX_ACTIVE
              key: 'log[{#LOG_FILE_H},{#LOG_REGEX_H},,,skip]'
              history: 15d
              value_type: LOG
              trends: '0'
              tags:
                - tag: Component
                  value: log
              trigger_prototypes:
                - uuid: 160e97eb7f214885aae4296b832ba6bd
                  expression: 'last(/KD Linux by Zabbix agent Active/log[{#LOG_FILE_H},{#LOG_REGEX_H},,,skip],#1)<>0'
                  recovery_mode: NONE
                  name: 'Log monitoring: {ITEM.LASTVALUE}'
                  priority: HIGH
                  type: MULTIPLE
                  manual_close: 'YES'
                  tags:
                    - tag: LogInstance
                      value: '{{ITEM.VALUE}.regsub({#LOG_REGEX_H},\1:\2:\3:\4:\5:)}'
          master_item:
            key: log.monitoring.high
        - uuid: bfa72d935f6448e4aa1fb6bbb344c409
          name: 'Log Monitoring Discovery - Warning'
          type: DEPENDENT
          key: log.discovery.warning
          delay: '0'
          filter:
            conditions:
              - macro: '{#LOG_FILE_W}'
                value: 'no rules configured'
                operator: NOT_MATCHES_REGEX
                formulaid: A
          lifetime_type: DELETE_IMMEDIATELY
          lifetime: '0'
          item_prototypes:
            - uuid: 6f2028e228f2420b9cc05b381e7029d4
              name: '{#LOG_FILE_W} monitoring using regex: {#LOG_REGEX_W} - Warning'
              type: ZABBIX_ACTIVE
              key: 'log[{#LOG_FILE_W},{#LOG_REGEX_W},,,skip]'
              history: 7d
              value_type: LOG
              trends: '0'
              tags:
                - tag: Component
                  value: log
              trigger_prototypes:
                - uuid: 2c629c6cdd80491aa6700b21d17bd883
                  expression: 'last(/KD Linux by Zabbix agent Active/log[{#LOG_FILE_W},{#LOG_REGEX_W},,,skip],#1)<>0'
                  recovery_mode: NONE
                  name: 'Log monitoring: {ITEM.LASTVALUE}'
                  priority: WARNING
                  type: MULTIPLE
                  manual_close: 'YES'
                  tags:
                    - tag: LogInstance
                      value: '{{ITEM.VALUE}.regsub({#LOG_REGEX_W},\1:\2:\3:\4:\5:)}'
          master_item:
            key: log.monitoring.warning
        - uuid: 1e7466137ca340558d8e7e2db6bcb6dd
          name: 'Network interface discovery (SRM)'
          type: ZABBIX_ACTIVE
          key: net.if.discovery
          delay: 1h
          status: DISABLED
          filter:
            conditions:
              - macro: '{#IFNAME}'
                value: '{$NET.IF.IFNAME.MATCHES}'
                formulaid: A
              - macro: '{#IFNAME}'
                value: '{$NET.IF.IFNAME.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
                formulaid: B
          item_prototypes:
            - uuid: d17fe41f5c6742849f9307ab5b3f5ecd
              name: 'Linux Interface [{#IFNAME}]: Number of out-of-window collisions'
              type: ZABBIX_ACTIVE
              key: 'net.if.collisions["{#IFNAME}"]'
              delay: 5m
              history: 7d
              trends: '0'
              tags:
                - tag: Interface
                  value: '{#IFNAME}'
                - tag: SRM
            - uuid: f0140d9338fe41adbbcb1e8e473467bb
              name: 'Linux Interface [{#IFNAME}]: Inbound packets discarded'
              type: ZABBIX_ACTIVE
              key: 'net.if.in["{#IFNAME}",dropped]'
              delay: 5m
              history: 7d
              trends: '0'
              preprocessing:
                - type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              tags:
                - tag: Interface
                  value: '{#IFNAME}'
                - tag: SRM
            - uuid: 5a9a96eca7b9400db5dab23320c46d62
              name: 'Linux Interface [{#IFNAME}]: Inbound packets with errors'
              type: ZABBIX_ACTIVE
              key: 'net.if.in["{#IFNAME}",errors]'
              delay: 5m
              history: 7d
              trends: '0'
              preprocessing:
                - type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              tags:
                - tag: Interface
                  value: '{#IFNAME}'
                - tag: SRM
            - uuid: ed36f0e63e754664bce5c16ddfa87f84
              name: 'Linux Interface [{#IFNAME}]: Inbound packets'
              type: ZABBIX_ACTIVE
              key: 'net.if.in["{#IFNAME}",packets]'
              delay: 5m
              history: 7d
              trends: '0'
              preprocessing:
                - type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              tags:
                - tag: Interface
                  value: '{#IFNAME}'
                - tag: SRM
            - uuid: 9d576629ae264c2bb7a7606e69b19e2b
              name: 'Linux Interface [{#IFNAME}]: Bits received'
              type: ZABBIX_ACTIVE
              key: 'net.if.in["{#IFNAME}"]'
              delay: 5m
              history: 7d
              trends: '0'
              units: bps
              preprocessing:
                - type: CHANGE_PER_SECOND
                  parameters:
                    - ''
                - type: MULTIPLIER
                  parameters:
                    - '8'
              tags:
                - tag: Interface
                  value: '{#IFNAME}'
                - tag: SRM
            - uuid: 9cf289bbe7434499b812c48fe5ca1e5e
              name: 'Linux Interface [{#IFNAME}]: Outbound packets discarded'
              type: ZABBIX_ACTIVE
              key: 'net.if.out["{#IFNAME}",dropped]'
              delay: 5m
              history: 7d
              trends: '0'
              preprocessing:
                - type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              tags:
                - tag: Interface
                  value: '{#IFNAME}'
                - tag: SRM
            - uuid: 1ad089058d5c44cf88872d0488636c0f
              name: 'Linux Interface [{#IFNAME}]: Outbound packets with errors'
              type: ZABBIX_ACTIVE
              key: 'net.if.out["{#IFNAME}",errors]'
              delay: 5m
              history: 7d
              trends: '0'
              preprocessing:
                - type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              tags:
                - tag: Interface
                  value: '{#IFNAME}'
                - tag: SRM
            - uuid: c684883d46f849f7a780d07fdb76965c
              name: 'Linux Interface [{#IFNAME}]: Outbound packets'
              type: ZABBIX_ACTIVE
              key: 'net.if.out["{#IFNAME}",packets]'
              delay: 5m
              history: 7d
              trends: '0'
              preprocessing:
                - type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              tags:
                - tag: Interface
                  value: '{#IFNAME}'
                - tag: SRM
            - uuid: 58ef4eadbd714e3e9042721ed7c859e6
              name: 'Linux Interface [{#IFNAME}]: Bits sent'
              type: ZABBIX_ACTIVE
              key: 'net.if.out["{#IFNAME}"]'
              delay: 5m
              history: 7d
              trends: '0'
              units: bps
              preprocessing:
                - type: CHANGE_PER_SECOND
                  parameters:
                    - ''
                - type: MULTIPLIER
                  parameters:
                    - '8'
              tags:
                - tag: Interface
                  value: '{#IFNAME}'
                - tag: SRM
            - uuid: 5f6eca7310e941d6bf1c75abc456aed0
              name: 'Linux Interface [{#IFNAME}]: MTU'
              type: ZABBIX_ACTIVE
              key: 'vfs.file.contents["/sys/class/net/{#IFNAME}/mtu"]'
              delay: 5m
              history: 7d
              value_type: TEXT
              trends: '0'
              tags:
                - tag: Interface
                  value: '{#IFNAME}'
                - tag: SRM
            - uuid: f20a1c349d0a4961986c84421d54e82c
              name: 'Linux Interface [{#IFNAME}]: Operational status'
              type: ZABBIX_ACTIVE
              key: 'vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"]'
              delay: 5m
              history: 7d
              value_type: TEXT
              trends: '0'
              description: 'Reference: https://www.kernel.org/doc/Documentation/networking/operstates.txt'
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - |
                      var newvalue;
                      switch(value) {
                        case "unknown":
                      	newvalue = 0;
                      	break;
                        case "notpresent":
                      	newvalue = 1;
                      	break;
                        case "down":
                      	newvalue = 2;
                      	break;
                        case "lowerlayerdown":
                      	newvalue = 3;
                      	break;
                        case "testing":
                      	newvalue = 4;
                      	break;
                        case "dormant":
                      	newvalue = 5;
                      	break;
                        case "up":
                      	newvalue = 6;
                      	break;  default:
                      	newvalue = "Problem parsing interface operstate in JS";
                      }
                      return newvalue;
              tags:
                - tag: Interface
                  value: '{#IFNAME}'
                - tag: SRM
            - uuid: 05e46030639f4b00b047e94a410ddab4
              name: 'Linux Interface [{#IFNAME}]: Speed'
              type: ZABBIX_ACTIVE
              key: 'vfs.file.contents["/sys/class/net/{#IFNAME}/speed"]'
              delay: 5m
              history: 7d
              value_type: TEXT
              trends: '0'
              description: |
                It indicates the latest or current speed value of the interface. The value is an integer representing the link speed expressed in bits/sec.
                This attribute is only valid for the interfaces that implement the ethtool `get_link_ksettings` method (mostly Ethernet).
                
                Reference: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '1000000'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 1h
              tags:
                - tag: Interface
                  value: '{#IFNAME}'
                - tag: SRM
            - uuid: bd1eb72e9537483da1c3f852de8fe366
              name: 'Linux Interface [{#IFNAME}]: Interface type'
              type: ZABBIX_ACTIVE
              key: 'vfs.file.contents["/sys/class/net/{#IFNAME}/type"]'
              delay: 1h
              history: 7d
              value_type: TEXT
              trends: '0'
              description: |
                It indicates the interface protocol type as a decimal value.
                See `include/uapi/linux/if_arp.h` for all possible values.
                Reference: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 1d
              tags:
                - tag: Interface
                  value: '{#IFNAME}'
                - tag: SRM
        - uuid: f6059502a51147a796463bfb4e83d32d
          name: 'CPU utilization processes discovery'
          type: ZABBIX_ACTIVE
          key: proc.get
          delay: 1h
          status: DISABLED
          filter:
            evaltype: AND
            conditions:
              - macro: '{#PROCESS_NAME}'
                value: '{$CPU.UTIL.LIST.PROC.MATCHES}'
                formulaid: A
              - macro: '{#PROCESS_NAME}'
                value: '{$CPU.UTIL.LIST.PROC.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
                formulaid: B
              - macro: '{#PROCESS_USER}'
                value: '{$CPU.UTIL.LIST.USER.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
                formulaid: C
          enabled_lifetime_type: DISABLE_AFTER
          enabled_lifetime: 1h
          description: 'Discovery of CPU utilization of processes.'
          item_prototypes:
            - uuid: 963229b6f8fd4a2fa7cfb0c62a9aaea5
              name: 'CPU usage - Process: {#PROCESS_NAME}, User: {#PROCESS_USER}'
              type: ZABBIX_ACTIVE
              key: 'proc.cpu.util[,{#PROCESS_USER},,{#PROCESS_NAME}]'
              delay: 5m
              history: 7d
              value_type: FLOAT
              trends: 90d
              trigger_prototypes:
                - uuid: 3bb07330260b487a95e3c32b5efa5f6c
                  expression: 'last(/KD Linux by Zabbix agent Active/proc.cpu.util[,{#PROCESS_USER},,{#PROCESS_NAME}])>{$CPU.UTIL.PROC:"{#PROCESS_NAME},{#PROCESS_USER}"}'
                  name: 'Alert CPU usage - Process: {#PROCESS_NAME}, User: {#PROCESS_USER}'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: ApplId
                      value: '{$CPU.UTIL.APPLID:"{#PROCESS_NAME},{#PROCESS_USER}"}'
                    - tag: Component
                      value: LINUX
                    - tag: ComponentType
                      value: OperatingSystem
                    - tag: SubComponent
                      value: Process
          lld_macro_paths:
            - lld_macro: '{#PROCESS_NAME}'
              path: $.name
            - lld_macro: '{#PROCESS_USER}'
              path: $.user
          overrides:
            - name: CPU.UTIL.MATCHES.DISASTER
              step: '1'
              stop: STOP
              filter:
                conditions:
                  - macro: '{#PROCESS_NAME}'
                    value: '{$CPU.UTIL.MATCHES.DISASTER}'
                    formulaid: A
              operations:
                - operationobject: TRIGGER_PROTOTYPE
                  operator: LIKE
                  value: 'Alert CPU usage'
                  discover: DISCOVER
                  status: ENABLED
                  severity: DISASTER
            - name: CPU.UTIL.MATCHES.HIGH
              step: '2'
              stop: STOP
              filter:
                conditions:
                  - macro: '{#PROCESS_NAME}'
                    value: '{$CPU.UTIL.MATCHES.HIGH}'
                    formulaid: A
              operations:
                - operationobject: TRIGGER_PROTOTYPE
                  operator: LIKE
                  value: 'Alert CPU usage'
                  discover: DISCOVER
                  status: ENABLED
                  severity: HIGH
            - name: CPU.UTIL.MATCHES.AVERAGE
              step: '3'
              stop: STOP
              filter:
                conditions:
                  - macro: '{#PROCESS_NAME}'
                    value: '{$CPU.UTIL.MATCHES.AVERAGE}'
                    formulaid: A
              operations:
                - operationobject: TRIGGER_PROTOTYPE
                  operator: LIKE
                  value: 'Alert CPU usage'
                  discover: DISCOVER
                  status: ENABLED
                  severity: AVERAGE
            - name: CPU.UTIL.MATCHES.WARNING
              step: '4'
              stop: STOP
              filter:
                conditions:
                  - macro: '{#PROCESS_NAME}'
                    value: '{$CPU.UTIL.MATCHES.WARNING}'
                    formulaid: A
              operations:
                - operationobject: TRIGGER_PROTOTYPE
                  operator: LIKE
                  value: 'Alert CPU usage'
                  discover: DISCOVER
                  status: ENABLED
                  severity: WARNING
        - uuid: 0a4b50b42ce642d7899416a1ce708d10
          name: 'Process Discovery'
          type: SCRIPT
          key: proc.get.dependant.discovery
          delay: 1h
          params: |
            var json_output = [];
            var input_list = '{$PROC.GET.LIST}';
            var input_list1 = '{$PROC.GET.LIST2}';
            var input_list2 = '{$PROC.GET.LIST3}';
            var input_list3 = '{$PROC.GET.LIST4}';
            var input_list4 = '{$PROC.GET.LIST5}';
            
            // Combine all macros into a single input list, filtering out unresolved macros
            var combined_input_list = [input_list, input_list1, input_list2, input_list3, input_list4]
                .filter(function(value) {
                    return value && !value.includes('{$PROC.GET.LIST');
                })
                .join('|');
            
            // Process the combined data
            if (combined_input_list.length === 0) {
                json_output.push({ "process_name": "EMPTY", "process_user": "" });
            } else {
                var process_list = combined_input_list.split('|');
                
                for (var i = 0; i < process_list.length; i++) {
                    if (process_list[i].length > 0) {
                        var process_user_split = process_list[i].split(',');
                        json_output.push({
                            "process_name": process_user_split[0],
                            "process_user": process_user_split[1] || ""
                        });
                    }
                }
            }
            
            return JSON.stringify(json_output);
          filter:
            evaltype: AND
            conditions:
              - macro: '{#PROCESS_NAME}'
                value: EMPTY
                operator: NOT_MATCHES_REGEX
                formulaid: A
              - macro: '{#PROCESS_NAME}'
                value: PROC.GET.LIST
                operator: NOT_MATCHES_REGEX
                formulaid: B
          enabled_lifetime_type: DISABLE_AFTER
          enabled_lifetime: 1h
          item_prototypes:
            - uuid: 4963dc3e46eb4cce9f276b02775ddf23
              name: '{#PROCESS_NAME}: Get number of process'
              type: ZABBIX_ACTIVE
              key: 'proc.num[,{#PROCESS_USER},,{#PROCESS_NAME}]'
              delay: 5m
              history: 7d
              trends: 90d
              description: 'get the number of process'
              timeout: 20s
              trigger_prototypes:
                - uuid: a3542b45c72f4b80b524d6f1581547f3
                  expression: |
                    (last(/KD Linux by Zabbix agent Active/proc.num[,{#PROCESS_USER},,{#PROCESS_NAME}])<{$PROC.GET.INSTANCE.MIN:"{#PROCESS_NAME}"}
                    or
                    last(/KD Linux by Zabbix agent Active/proc.num[,{#PROCESS_USER},,{#PROCESS_NAME}])>{$PROC.GET.INSTANCE.MAX:"{#PROCESS_NAME}"})
                  name: 'Process [{#PROCESS_NAME}]:{#PROCESS_USER} number of process doesn''t match the expected value'
                  priority: WARNING
                  manual_close: 'YES'
                  tags:
                    - tag: ApplId
                      value: '{$PROC.APPLID:"{#PROCESS_NAME}"}'
                    - tag: Component
                      value: Linux
                    - tag: ComponentType
                      value: OperatingSystem
                    - tag: SubComponent
                      value: Process
          graph_prototypes:
            - uuid: 7325d97fb35b4a03b2ed1c07cf1f379e
              name: '{#PROCESS_NAME}: number of process'
              graph_items:
                - color: 1A7C11
                  calc_fnc: ALL
                  item:
                    host: 'KD Linux by Zabbix agent Active'
                    key: 'proc.num[,{#PROCESS_USER},,{#PROCESS_NAME}]'
          lld_macro_paths:
            - lld_macro: '{#PROCESS_NAME}'
              path: $.process_name
            - lld_macro: '{#PROCESS_USER}'
              path: $.process_user
          overrides:
            - name: PROC.NAME.MATCHES.DISASTER
              step: '1'
              stop: STOP
              filter:
                conditions:
                  - macro: '{#PROCESS_NAME}'
                    value: '{$PROC.NAME.MATCHES.DISASTER}'
                    formulaid: A
              operations:
                - operationobject: TRIGGER_PROTOTYPE
                  operator: LIKE
                  value: 'doesn''t match the expected value'
                  discover: DISCOVER
                  status: ENABLED
                  severity: DISASTER
            - name: PROC.NAME.MATCHES.HIGH
              step: '2'
              stop: STOP
              filter:
                conditions:
                  - macro: '{#PROCESS_NAME}'
                    value: '{$PROC.NAME.MATCHES.HIGH}'
                    formulaid: A
              operations:
                - operationobject: TRIGGER_PROTOTYPE
                  operator: LIKE
                  value: 'doesn''t match the expected value'
                  discover: DISCOVER
                  status: ENABLED
                  severity: HIGH
            - name: PROC.NAME.MATCHES.AVERAGE
              step: '3'
              stop: STOP
              filter:
                conditions:
                  - macro: '{#PROCESS_NAME}'
                    value: '{$PROC.NAME.MATCHES.AVERAGE}'
                    formulaid: A
              operations:
                - operationobject: TRIGGER_PROTOTYPE
                  operator: LIKE
                  value: 'doesn''t match the expected value'
                  discover: DISCOVER
                  status: ENABLED
                  severity: AVERAGE
            - name: PROC.NAME.MATCHES.WARNING
              step: '4'
              stop: STOP
              filter:
                conditions:
                  - macro: '{#PROCESS_NAME}'
                    value: '{$PROC.NAME.MATCHES.WARNING}'
                    formulaid: A
              operations:
                - operationobject: TRIGGER_PROTOTYPE
                  operator: LIKE
                  value: 'doesn''t match the expected value'
                  discover: DISCOVER
                  status: ENABLED
                  severity: WARNING
        - uuid: be7d80f0f865404ebd6ff334859a4718
          name: 'Systemd process discovery'
          type: ZABBIX_ACTIVE
          key: 'systemd.unit.discovery[service]'
          delay: 1h
          filter:
            evaltype: OR
            conditions:
              - macro: '{#UNIT.NAME}'
                value: '{$SYSTEM.PROCESS.RUN}'
                formulaid: A
              - macro: '{#UNIT.NAME}'
                value: '{$SYSTEM.SERVICES.RUN}'
                formulaid: B
          enabled_lifetime_type: DISABLE_AFTER
          enabled_lifetime: 1h
          description: 'Discover systemd service units and their details.'
          item_prototypes:
            - uuid: 3d599ac695624b97a0430cdbc04bd347
              name: '{#UNIT.NAME}: Active state'
              type: DEPENDENT
              key: 'systemd.service.active_state["{#UNIT.NAME}"]'
              delay: '0'
              history: 7d
              trends: 90d
              description: |
                {#UNIT.DESCRIPTION}
                
                State value that reflects whether the unit is currently active or not. The following states are currently defined: "active", "reloading", "inactive", "failed", "activating", and "deactivating".
              valuemap:
                name: 'Unit Active State'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.ActiveState.state
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 30m
              master_item:
                key: 'systemd.unit.get["{#UNIT.NAME}"]'
              tags:
                - tag: component
                  value: SystemdProcess
                - tag: processName
                  value: '{#UNIT.NAME}'
            - uuid: 49b0570b034d4c1eae5616a8f6a571fe
              name: '{#UNIT.NAME}: Unit file state'
              type: DEPENDENT
              key: 'systemd.service.unitfile_state["{#UNIT.NAME}"]'
              delay: '0'
              history: 7d
              trends: 90d
              description: |
                {#UNIT.DESCRIPTION}

                Encodes the install state of the unit file of FragmentPath. It currently knows the following states: "enabled", "enabled-runtime", "linked", "linked-runtime", "masked", "masked-runtime", "static", "disabled", and "invalid".
              valuemap:
                name: 'Unit File State'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.UnitFileState.state
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 30m
              master_item:
                key: 'systemd.unit.get["{#UNIT.NAME}"]'
              tags:
                - tag: component
                  value: SystemdProcess
                - tag: processName
                  value: '{#UNIT.NAME}'
            - uuid: 9fd62deeb7ea45f6ba177316ba9dd4d1
              name: '{#UNIT.NAME}: Get unit info'
              type: ZABBIX_ACTIVE
              key: 'systemd.unit.get["{#UNIT.NAME}"]'
              delay: 5m
              history: '0'
              value_type: TEXT
              trends: '0'
              description: |
                Returns all properties of a systemd service unit.
                 Unit description: {#UNIT.DESCRIPTION}.
              tags:
                - tag: component
                  value: raw
                - tag: component
                  value: unit
          trigger_prototypes:
            - uuid: 741400edbb2047fdab71022f217fa0b5
              expression: 'last(/KD Linux by Zabbix agent Active/systemd.service.active_state["{#UNIT.NAME}"])<>1 and last(/KD Linux by Zabbix agent Active/systemd.service.unitfile_state["{#UNIT.NAME}"])=1'
              name: '{#UNIT.NAME}: Service is not running {#UNIT.DESCRIPTION}'
              priority: HIGH
              manual_close: 'YES'
              tags:
                - tag: ApplId
                  value: '{$SYSTEM.SERVICES.APPLID:"{#PROCESS_NAME}"}'
                - tag: Component
                  value: LINUX
                - tag: ComponentType
                  value: OperatingSystem
                - tag: SubComponent
                  value: Service
        - uuid: 9863e10a6d3244948df0cf72015a458d
          name: 'User Account Discovery'
          type: DEPENDENT
          key: user.password.account
          delay: '0'
          item_prototypes:
            - uuid: 8113dc46e71a47e8806f0be23900201d
              name: '{#USERNAME} expiring in'
              type: DEPENDENT
              key: 'user.account.expiring_in[{#USERNAME},{$PASSWORD_EXPIRY_THRESHOLD}]'
              delay: '0'
              history: 7d
              value_type: FLOAT
              trends: '0'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[?(@.username == "{#USERNAME}")].status.expiring_in.first()'
              master_item:
                key: 'get.user_accounts[{$PASSWORD_EXPIRY_THRESHOLD},{$PASSWORD_ACCOUNT_MONITORED}]'
              tags:
                - tag: component
                  value: userpassword
              trigger_prototypes:
                - uuid: 4a01636ed19745c3a5778d0e30cb1b6c
                  expression: 'last(/KD Linux by Zabbix agent Active/user.account.expiring_in[{#USERNAME},{$PASSWORD_EXPIRY_THRESHOLD}])>-1'
                  name: '{#USERNAME} password is expiring'
                  event_name: 'Password of the user {#USERNAME} will be expired in {ITEM.LASTVALUE} day(s)'
                  opdata: 'expiring in {ITEM.LASTVALUE} days'
                  priority: WARNING
                  manual_close: 'YES'
            - uuid: c9a05c10eebe47daa54dffb8701d5b83
              name: '{#USERNAME} locked status'
              type: DEPENDENT
              key: 'user.account.is_locked[{#USERNAME}]'
              delay: '0'
              history: 7d
              trends: '0'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[?(@.username == "{#USERNAME}")].status.is_locked.first()'
              master_item:
                key: 'get.user_accounts[{$PASSWORD_EXPIRY_THRESHOLD},{$PASSWORD_ACCOUNT_MONITORED}]'
              tags:
                - tag: component
                  value: userpassword
              trigger_prototypes:
                - uuid: 48684bf0ddf647b6b0bf96793f2bdbc0
                  expression: 'last(/KD Linux by Zabbix agent Active/user.account.is_locked[{#USERNAME}])=1'
                  name: '{#USERNAME} is locked'
                  event_name: 'The user {#USERNAME} is locked'
                  opdata: 'locked status is {ITEM.LASTVALUE}'
                  priority: AVERAGE
                  manual_close: 'YES'
            - uuid: f3cbbfd4a0f542339f4eff1e791c433a
              name: '{#USERNAME} password expired status'
              type: DEPENDENT
              key: 'user.account.password.is_expired[{#USERNAME}]'
              delay: '0'
              history: 7d
              trends: '0'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[?(@.username == "{#USERNAME}")].status.is_expired.first()'
              master_item:
                key: 'get.user_accounts[{$PASSWORD_EXPIRY_THRESHOLD},{$PASSWORD_ACCOUNT_MONITORED}]'
              tags:
                - tag: component
                  value: userpassword
              trigger_prototypes:
                - uuid: 056d0fb4628941abb3408983c943917b
                  expression: 'last(/KD Linux by Zabbix agent Active/user.account.password.is_expired[{#USERNAME}])=1'
                  name: '{#USERNAME} password already expired'
                  event_name: 'Password of the user {#USERNAME} has been expired'
                  opdata: 'expired status is {ITEM.LASTVALUE}'
                  priority: AVERAGE
                  manual_close: 'YES'
          master_item:
            key: 'get.user_accounts[{$PASSWORD_EXPIRY_THRESHOLD},{$PASSWORD_ACCOUNT_MONITORED}]'
          lld_macro_paths:
            - lld_macro: '{#USERNAME}'
              path: $.username
        - uuid: 94070a51f010487d97034ad3e3a0cc15
          name: 'Automount discovery'
          type: DEPENDENT
          key: vfs.automount.depends
          delay: '0'
          filter:
            evaltype: AND
            conditions:
              - macro: '{#AUTOMOUNT_NAME}'
                value: VFS.AUTOMOUNT.EXCLUDE.FS
                operator: NOT_MATCHES_REGEX
                formulaid: A
              - macro: '{#AUTOMOUNT_NAME}'
                value: '{$VFS.AUTOMOUNT.EXCLUDE.FS}'
                operator: NOT_MATCHES_REGEX
                formulaid: B
          description: 'The discovery of automount (fstab)'
          item_prototypes:
            - uuid: ceee2c7effda4b6e9f40791bdfd3909c
              name: '{#AUTOMOUNT_NAME}: Check state'
              type: DEPENDENT
              key: 'automount[{#AUTOMOUNT_NAME}]'
              delay: '0'
              history: 1d
              value_type: TEXT
              trends: '0'
              description: 'Check if the filesystem is mounted.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$.[?(@.fsname==''{#AUTOMOUNT_NAME}'')].first()'
                  error_handler: CUSTOM_VALUE
                  error_handler_params: '0'
              master_item:
                key: vfs.fs.get
              trigger_prototypes:
                - uuid: bb27258069df4db7bc8dcfe19031b16a
                  expression: 'last(/KD Linux by Zabbix agent Active/automount[{#AUTOMOUNT_NAME}])=0 and (({#AUTOMOUNT_OPTION}  = "noauto" and {$VFS.AUTOMOUNT.MONITORAUTO} = "YES") or ({#AUTOMOUNT_OPTION} <> "noauto"))'
                  name: 'Automount [{#AUTOMOUNT_NAME}]: the filesystem was not mounted'
                  opdata: 'The filesystem [{#AUTOMOUNT_NAME}] is not mounted'
                  priority: HIGH
                  manual_close: 'YES'
                  tags:
                    - tag: ApplId
                      value: '{$VFS.AUTOMOUNT.APPLID:"{#AUTOMOUNT_NAME}"}'
                    - tag: Component
                      value: LINUX
                    - tag: ComponentType
                      value: OperatingSystem
                    - tag: SubComponent
                      value: Fsavail
          master_item:
            key: 'vfs.file.contents[/etc/fstab]'
          lld_macro_paths:
            - lld_macro: '{#AUTOMOUNT_NAME}'
              path: $.automount_name
            - lld_macro: '{#AUTOMOUNT_OPTION}'
              path: $.fsopt
        - uuid: 29a727f87be34c45b9c8f66c483a7e37
          name: 'Block devices discovery (SRM)'
          type: ZABBIX_ACTIVE
          key: vfs.dev.discovery
          delay: 1h
          status: DISABLED
          filter:
            evaltype: AND
            conditions:
              - macro: '{#DEVNAME}'
                value: '{$VFS.DEV.DEVNAME.MATCHES}'
                formulaid: A
              - macro: '{#DEVNAME}'
                value: '{$VFS.DEV.DEVNAME.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
                formulaid: B
              - macro: '{#DEVTYPE}'
                value: disk
                formulaid: C
          item_prototypes:
            - uuid: a9e06c20391c4f8fbf90af73c1d05838
              name: 'Linux Disk [{#DEVNAME}]: Disk average queue size (avgqu-sz)'
              type: DEPENDENT
              key: 'vfs.dev.queue_size[{#DEVNAME}]'
              delay: '0'
              history: 7d
              value_type: FLOAT
              trends: '0'
              description: 'The current average disk queue; the number of requests outstanding on the disk while the performance data is being collected.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[10]'
                - type: CHANGE_PER_SECOND
                  parameters:
                    - ''
                - type: MULTIPLIER
                  parameters:
                    - '0.001'
              master_item:
                key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]'
              tags:
                - tag: Disk
                  value: '{#DEVNAME}'
                - tag: SRM
            - uuid: c9e3c687522d4b1b814d038cac0ca039
              name: 'Linux Disk [{#DEVNAME}]: Disk read request avg waiting time (r_await)'
              type: CALCULATED
              key: 'vfs.dev.read.await[{#DEVNAME}]'
              delay: 5m
              history: 7d
              value_type: FLOAT
              trends: '0'
              units: '!ms'
              params: '(last(//vfs.dev.read.time.rate[{#DEVNAME}])/(last(//vfs.dev.read.rate[{#DEVNAME}])+(last(//vfs.dev.read.rate[{#DEVNAME}])=0)))*1000*(last(//vfs.dev.read.rate[{#DEVNAME}]) > 0)'
              description: 'This formula contains two Boolean expressions that evaluate to 1 or 0 in order to set the calculated metric to zero and to avoid the exception - division by zero.'
              tags:
                - tag: Disk
                  value: '{#DEVNAME}'
                - tag: SRM
            - uuid: 599eb91a11254437bb3a4f21ef221fba
              name: 'Linux Disk [{#DEVNAME}]: Disk read rate'
              type: DEPENDENT
              key: 'vfs.dev.read.rate[{#DEVNAME}]'
              delay: '0'
              history: 7d
              value_type: FLOAT
              trends: '0'
              units: '!r/s'
              description: 'r/s (read operations per second) - the number (after merges) of read requests completed per second for the device.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[0]'
                - type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]'
              tags:
                - tag: Disk
                  value: '{#DEVNAME}'
                - tag: SRM
            - uuid: c3c5087d63fe4f309ed5d2d056ed81e0
              name: 'Linux Disk [{#DEVNAME}]: Disk read time (rate)'
              type: DEPENDENT
              key: 'vfs.dev.read.time.rate[{#DEVNAME}]'
              delay: '0'
              history: 7d
              value_type: FLOAT
              trends: '0'
              description: 'The rate of total read time counter; used in `r_await` calculation.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[3]'
                - type: CHANGE_PER_SECOND
                  parameters:
                    - ''
                - type: MULTIPLIER
                  parameters:
                    - '0.001'
              master_item:
                key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]'
              tags:
                - tag: Disk
                  value: '{#DEVNAME}'
                - tag: SRM
            - uuid: 496fa0455b4941759eeb130be85f4f84
              name: 'Linux Disk [{#DEVNAME}]: Disk read operations per second'
              type: ZABBIX_ACTIVE
              key: 'vfs.dev.read[{#DEVNAME},ops]'
              delay: 5m
              history: 7d
              value_type: FLOAT
              trends: '0'
              units: '!r/s'
              preprocessing:
                - type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              tags:
                - tag: Disk
                  value: '{#DEVNAME}'
                - tag: SRM
            - uuid: c447f9ebe6704b0b863a6620eeff8a02
              name: 'Linux Disk [{#DEVNAME}]: Disk read sectors per second'
              type: ZABBIX_ACTIVE
              key: 'vfs.dev.read[{#DEVNAME},sps]'
              delay: 5m
              history: 7d
              value_type: FLOAT
              trends: '0'
              preprocessing:
                - type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              tags:
                - tag: Disk
                  value: '{#DEVNAME}'
                - tag: SRM
            - uuid: 56655bb0a01544aa9977dfef2cca6370
              name: 'Linux Disk [{#DEVNAME}]: Disk utilization'
              type: DEPENDENT
              key: 'vfs.dev.util[{#DEVNAME}]'
              delay: '0'
              history: 7d
              value_type: FLOAT
              trends: '0'
              description: 'This item is the percentage of elapsed time during which the selected disk drive was busy while servicing read or write requests.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[9]'
                - type: CHANGE_PER_SECOND
                  parameters:
                    - ''
                - type: MULTIPLIER
                  parameters:
                    - '0.1'
              master_item:
                key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]'
              tags:
                - tag: Disk
                  value: '{#DEVNAME}'
                - tag: SRM
            - uuid: 535e1f4c7e28414fae41c97f90df96bc
              name: 'Linux Disk [{#DEVNAME}]: Disk write request avg waiting time (w_await)'
              type: CALCULATED
              key: 'vfs.dev.write.await[{#DEVNAME}]'
              delay: 5m
              history: 7d
              value_type: FLOAT
              trends: '0'
              units: '!ms'
              params: '(last(//vfs.dev.write.time.rate[{#DEVNAME}])/(last(//vfs.dev.write.rate[{#DEVNAME}])+(last(//vfs.dev.write.rate[{#DEVNAME}])=0)))*1000*(last(//vfs.dev.write.rate[{#DEVNAME}]) > 0)'
              description: 'This formula contains two Boolean expressions that evaluate to 1 or 0 in order to set the calculated metric to zero and to avoid the exception - division by zero.'
              tags:
                - tag: Disk
                  value: '{#DEVNAME}'
                - tag: SRM
            - uuid: 94831b3e6f5a42d1beaddd7565c69276
              name: 'Linux Disk [{#DEVNAME}]: Disk write rate'
              type: DEPENDENT
              key: 'vfs.dev.write.rate[{#DEVNAME}]'
              delay: '0'
              history: 7d
              value_type: FLOAT
              trends: '0'
              units: '!w/s'
              description: 'w/s (write operations per second) - the number (after merges) of write requests completed per second for the device.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[4]'
                - type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              master_item:
                key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]'
              tags:
                - tag: Disk
                  value: '{#DEVNAME}'
                - tag: SRM
            - uuid: 5ae4de0dc6e84a3e9eca997980eb3461
              name: 'Linux Disk [{#DEVNAME}]: Disk write time (rate)'
              type: DEPENDENT
              key: 'vfs.dev.write.time.rate[{#DEVNAME}]'
              delay: '0'
              history: 7d
              value_type: FLOAT
              trends: '0'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[7]'
                - type: CHANGE_PER_SECOND
                  parameters:
                    - ''
                - type: MULTIPLIER
                  parameters:
                    - '0.001'
              master_item:
                key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]'
              tags:
                - tag: Disk
                  value: '{#DEVNAME}'
                - tag: SRM
            - uuid: 1a8f7e3718294747827b234f4ca03c1b
              name: 'Linux Disk [{#DEVNAME}]: Disk write operations per second'
              type: ZABBIX_ACTIVE
              key: 'vfs.dev.write[{#DEVNAME},ops]'
              delay: 5m
              history: 7d
              value_type: FLOAT
              trends: '0'
              units: '!w/s'
              preprocessing:
                - type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              tags:
                - tag: Disk
                  value: '{#DEVNAME}'
                - tag: SRM
            - uuid: d0fb04cb52cc4c078c52ce81bf63157a
              name: 'Linux Disk [{#DEVNAME}]: Disk write sectors per second'
              type: ZABBIX_ACTIVE
              key: 'vfs.dev.write[{#DEVNAME},sps]'
              delay: 5m
              history: 7d
              value_type: FLOAT
              trends: '0'
              preprocessing:
                - type: CHANGE_PER_SECOND
                  parameters:
                    - ''
              tags:
                - tag: Disk
                  value: '{#DEVNAME}'
                - tag: SRM
            - uuid: d8a314adebd84a0d8feaf67fd53d1126
              name: 'Linux Disk [{#DEVNAME}]: Get stats'
              type: ZABBIX_ACTIVE
              key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]'
              delay: 5m
              history: 7d
              value_type: TEXT
              trends: '0'
              preprocessing:
                - type: JAVASCRIPT
                  parameters:
                    - 'return JSON.stringify(value.trim().split(/ +/));'
              tags:
                - tag: SRM
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
        - uuid: 23cbcfeeb91c4e77ba148de9e7640864
          name: 'Mounted filesystem discovery'
          type: ZABBIX_ACTIVE
          key: vfs.fs.discovery
          delay: 1h
          filter:
            evaltype: AND
            conditions:
              - macro: '{#FSNAME}'
                value: '{$VFS.FS.FSNAME.MATCHES}'
                formulaid: A
              - macro: '{#FSNAME}'
                value: '{$VFS.FS.FSNAME.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
                formulaid: B
              - macro: '{#FSTYPE}'
                value: '{$VFS.FS.FSTYPE.MATCHES}'
                formulaid: C
              - macro: '{#FSTYPE}'
                value: '{$VFS.FS.FSTYPE.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
                formulaid: D
          description: 'Discovery of file systems of different types.'
          item_prototypes:
            - uuid: fb0a957217d148569edfbc1ea924cc94
              name: '{#FSNAME}: Free inodes'
              type: ZABBIX_ACTIVE
              key: 'vfs.fs.inode[{#FSNAME},free]'
              delay: 5m
              history: 7d
              value_type: FLOAT
              trends: 90d
              status: DISABLED
              tags:
                - tag: component
                  value: storage
                - tag: filesystem
                  value: '{#FSNAME}'
                - tag: fstype
                  value: '{#FSTYPE}'
                - tag: SRM
            - uuid: 237233cb021b46c9a7babc75e63ae587
              name: '{#FSNAME}: Free inodes in %'
              type: ZABBIX_ACTIVE
              key: 'vfs.fs.inode[{#FSNAME},pfree]'
              delay: 5m
              history: 7d
              value_type: FLOAT
              trends: 90d
              units: '%'
              description: 'Free Inodes % for {#FSNAME}'
              tags:
                - tag: component
                  value: storage
                - tag: filesystem
                  value: '{#FSNAME}'
                - tag: fstype
                  value: '{#FSTYPE}'
              trigger_prototypes:
                - uuid: 69185de0624e48f7a13c23acdbbc500a
                  expression: 'max(/KD Linux by Zabbix agent Active/vfs.fs.inode[{#FSNAME},pfree],{$VFS.MIN.FS.INTERVAL})<={$VFS.FS.INODE.PFREE.MIN.MINOR:"{#FSNAME}"}'
                  name: '{#FSNAME}: Disk space free inode is low [Average]'
                  event_name: '{#FSNAME}: Disk space free inode is low (free <= {$VFS.FS.INODE.PFREE.MIN.MINOR:"{#FSNAME}"}%)'
                  opdata: 'Space used on {#FSNAME} is {ITEM.LASTVALUE}'
                  priority: AVERAGE
                  description: 'Conditions should match: First, percent free inodes should be above {$VFS.FS.INODE.PFREE.MIN.MINOR:"{#FSNAME}"}.'
                  manual_close: 'YES'
                  dependencies:
                    - name: '{#FSNAME}: Disk space free inode is low [High]'
                      expression: 'max(/KD Linux by Zabbix agent Active/vfs.fs.inode[{#FSNAME},pfree],{$VFS.MIN.FS.INTERVAL})<={$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}'
                  tags:
                    - tag: ApplId
                      value: '{$VFS.FS.APPLID:"{#FSNAME}"}'
                    - tag: Component
                      value: LINUX
                    - tag: ComponentType
                      value: OperatingSystem
                    - tag: SubComponent
                      value: FileSystem
                - uuid: e9af9b43b9d745ed9f31dfa78c82d19a
                  expression: 'max(/KD Linux by Zabbix agent Active/vfs.fs.inode[{#FSNAME},pfree],{$VFS.MIN.FS.INTERVAL})<={$VFS.FS.INODE.PFREE.MIN.FATAL:"{#FSNAME}"}'
                  name: '{#FSNAME}: Disk space free inode is low [Disaster]'
                  event_name: '{#FSNAME}: Disk space free inode is low (free <= {$VFS.FS.INODE.PFREE.MIN.FATAL:"{#FSNAME}"}%)'
                  opdata: 'Space used on {#FSNAME} is {ITEM.LASTVALUE}'
                  priority: DISASTER
                  description: 'Conditions should match: First, percent free inodes should be above {$VFS.FS.INODE.PFREE.MIN.FATAL:"{#FSNAME}"}.'
                  manual_close: 'YES'
                  tags:
                    - tag: ApplId
                      value: '{$VFS.FS.APPLID:"{#FSNAME}"}'
                    - tag: Component
                      value: LINUX
                    - tag: ComponentType
                      value: OperatingSystem
                    - tag: SubComponent
                      value: FileSystem
                - uuid: 03beab5a9aee4ed797534c9f8bc50880
                  expression: 'max(/KD Linux by Zabbix agent Active/vfs.fs.inode[{#FSNAME},pfree],{$VFS.MIN.FS.INTERVAL})<={$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}'
                  name: '{#FSNAME}: Disk space free inode is low [High]'
                  event_name: '{#FSNAME}: Disk space free inode is low (free <= {$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}%)'
                  opdata: 'Space used on {#FSNAME} is {ITEM.LASTVALUE}'
                  priority: HIGH
                  description: 'Conditions should match: First, percent free inodes should be above {$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}.'
                  manual_close: 'YES'
                  dependencies:
                    - name: '{#FSNAME}: Disk space free inode is low [Disaster]'
                      expression: 'max(/KD Linux by Zabbix agent Active/vfs.fs.inode[{#FSNAME},pfree],{$VFS.MIN.FS.INTERVAL})<={$VFS.FS.INODE.PFREE.MIN.FATAL:"{#FSNAME}"}'
                  tags:
                    - tag: ApplId
                      value: '{$VFS.FS.APPLID:"{#FSNAME}"}'
                    - tag: Component
                      value: LINUX
                    - tag: ComponentType
                      value: OperatingSystem
                    - tag: SubComponent
                      value: FileSystem
                - uuid: 16c6890e4d7e485980a67fd865ac386a
                  expression: 'max(/KD Linux by Zabbix agent Active/vfs.fs.inode[{#FSNAME},pfree],{$VFS.MIN.FS.INTERVAL})<={$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}'
                  name: '{#FSNAME}: Disk space free inode is low [Warning]'
                  event_name: '{#FSNAME}: Disk space free inode is low (free <= {$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}%)'
                  opdata: 'Space used on {#FSNAME} is {ITEM.LASTVALUE}'
                  priority: WARNING
                  description: 'Conditions should match: First, percent free inodes should be above {$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}.'
                  manual_close: 'YES'
                  dependencies:
                    - name: '{#FSNAME}: Disk space free inode is low [Average]'
                      expression: 'max(/KD Linux by Zabbix agent Active/vfs.fs.inode[{#FSNAME},pfree],{$VFS.MIN.FS.INTERVAL})<={$VFS.FS.INODE.PFREE.MIN.MINOR:"{#FSNAME}"}'
                  tags:
                    - tag: ApplId
                      value: '{$VFS.FS.APPLID:"{#FSNAME}"}'
                    - tag: Component
                      value: LINUX
                    - tag: ComponentType
                      value: OperatingSystem
                    - tag: SubComponent
                      value: FileSystem
            - uuid: 13b4022648e4463ab9bd1769b8a9a48d
              name: '{#FSNAME}: Used inodes in %'
              type: ZABBIX_ACTIVE
              key: 'vfs.fs.inode[{#FSNAME},pused]'
              delay: 5m
              history: 7d
              value_type: FLOAT
              trends: 90d
              status: DISABLED
              units: '%'
              description: 'Used Inodes % for {#FSNAME}'
              tags:
                - tag: component
                  value: storage
                - tag: filesystem
                  value: '{#FSNAME}'
                - tag: fstype
                  value: '{#FSTYPE}'
                - tag: SRM
            - uuid: 431e15bb736d491d83f9bd15ad19a01b
              name: '{#FSNAME}: Total inodes'
              type: ZABBIX_ACTIVE
              key: 'vfs.fs.inode[{#FSNAME},total]'
              delay: 5m
              history: 7d
              value_type: FLOAT
              trends: 90d
              status: DISABLED
              tags:
                - tag: component
                  value: storage
                - tag: filesystem
                  value: '{#FSNAME}'
                - tag: fstype
                  value: '{#FSTYPE}'
                - tag: SRM
            - uuid: e32fdd01f827415685e25042a4c9a24c
              name: '{#FSNAME}: Used inodes'
              type: ZABBIX_ACTIVE
              key: 'vfs.fs.inode[{#FSNAME},used]'
              delay: 5m
              history: 7d
              value_type: FLOAT
              trends: 90d
              status: DISABLED
              tags:
                - tag: component
                  value: storage
                - tag: filesystem
                  value: '{#FSNAME}'
                - tag: fstype
                  value: '{#FSTYPE}'
                - tag: SRM
            - uuid: 15d6f90a37544163a3642785c99eae97
              name: '{#FSNAME}: Free space'
              type: ZABBIX_ACTIVE
              key: 'vfs.fs.size[{#FSNAME},free]'
              delay: 5m
              history: 7d
              value_type: FLOAT
              trends: 90d
              status: DISABLED
              units: B
              tags:
                - tag: component
                  value: storage
                - tag: filesystem
                  value: '{#FSNAME}'
                - tag: fstype
                  value: '{#FSTYPE}'
                - tag: SRM
            - uuid: 9e2f1c86e6bb4ac2936c506bc0025c50
              name: '{#FSNAME}: Free space in %'
              type: ZABBIX_ACTIVE
              key: 'vfs.fs.size[{#FSNAME},pfree]'
              delay: 5m
              history: 7d
              value_type: FLOAT
              trends: 90d
              status: DISABLED
              units: '%'
              tags:
                - tag: component
                  value: storage
                - tag: filesystem
                  value: '{#FSNAME}'
                - tag: fstype
                  value: '{#FSTYPE}'
                - tag: SRM
            - uuid: 34b30231335045c59a1da9f5f4220229
              name: '{#FSNAME}: Space utilization in %'
              type: ZABBIX_ACTIVE
              key: 'vfs.fs.size[{#FSNAME},pused]'
              delay: 5m
              history: 7d
              value_type: FLOAT
              trends: 90d
              units: '%'
              description: 'Space utilization in % for {#FSNAME}'
              tags:
                - tag: component
                  value: storage
                - tag: filesystem
                  value: '{#FSNAME}'
                - tag: fstype
                  value: '{#FSTYPE}'
              trigger_prototypes:
                - uuid: d11e380ae3de4268b30368513c6daccb
                  expression: 'min(/KD Linux by Zabbix agent Active/vfs.fs.size[{#FSNAME},pused],{$VFS.MIN.FS.INTERVAL})>={$VFS.FS.PUSED.MAX.MINOR:"{#FSNAME}"}'
                  name: '{#FSNAME}: Disk space is low [Average]'
                  event_name: '{#FSNAME}: Disk space is low (used >= {$VFS.FS.PUSED.MAX.MINOR:"{#FSNAME}"}%)'
                  opdata: 'Space used on {#FSNAME} is {ITEM.LASTVALUE}'
                  priority: AVERAGE
                  description: 'Conditions should match: First, percent space utilization should be above {$VFS.FS.PUSED.MAX.MINOR:"{#FSNAME}"}.'
                  manual_close: 'YES'
                  dependencies:
                    - name: '{#FSNAME}: Disk space is low [High]'
                      expression: 'min(/KD Linux by Zabbix agent Active/vfs.fs.size[{#FSNAME},pused],{$VFS.MIN.FS.INTERVAL})>={$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}'
                  tags:
                    - tag: ApplId
                      value: '{$VFS.FS.APPLID:"{#FSNAME}"}'
                    - tag: Component
                      value: LINUX
                    - tag: ComponentType
                      value: OperatingSystem
                    - tag: SubComponent
                      value: FileSystem
                - uuid: dd90fbec876d40cebd37f98e7632103b
                  expression: 'min(/KD Linux by Zabbix agent Active/vfs.fs.size[{#FSNAME},pused],{$VFS.MIN.FS.INTERVAL})>={$VFS.FS.PUSED.MAX.FATAL:"{#FSNAME}"}'
                  name: '{#FSNAME}: Disk space is low [Disaster]'
                  event_name: '{#FSNAME}: Disk space is low (used >= {$VFS.FS.PUSED.MAX.FATAL:"{#FSNAME}"}%)'
                  opdata: 'Space used on {#FSNAME} is {ITEM.LASTVALUE}'
                  priority: DISASTER
                  description: 'Conditions should match: First, percent space utilization should be above {$VFS.FS.PUSED.MAX.FATAL:"{#FSNAME}"}.'
                  manual_close: 'YES'
                  tags:
                    - tag: ApplId
                      value: '{$VFS.FS.APPLID:"{#FSNAME}"}'
                    - tag: Component
                      value: LINUX
                    - tag: ComponentType
                      value: OperatingSystem
                    - tag: SubComponent
                      value: FileSystem
                - uuid: aed60ae15a0444889acc1bd143a41580
                  expression: 'min(/KD Linux by Zabbix agent Active/vfs.fs.size[{#FSNAME},pused],{$VFS.MIN.FS.INTERVAL})>={$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}'
                  name: '{#FSNAME}: Disk space is low [High]'
                  event_name: '{#FSNAME}: Disk space is low (used >= {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%)'
                  opdata: 'Space used on {#FSNAME} is {ITEM.LASTVALUE}'
                  priority: HIGH
                  description: 'Conditions should match: First, percent space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}.'
                  manual_close: 'YES'
                  dependencies:
                    - name: '{#FSNAME}: Disk space is low [Disaster]'
                      expression: 'min(/KD Linux by Zabbix agent Active/vfs.fs.size[{#FSNAME},pused],{$VFS.MIN.FS.INTERVAL})>={$VFS.FS.PUSED.MAX.FATAL:"{#FSNAME}"}'
                  tags:
                    - tag: ApplId
                      value: '{$VFS.FS.APPLID:"{#FSNAME}"}'
                    - tag: Component
                      value: LINUX
                    - tag: ComponentType
                      value: OperatingSystem
                    - tag: SubComponent
                      value: FileSystem
            - uuid: 4e80041bef564f768e233b28e9ad6ee5
              name: '{#FSNAME}: Total space'
              type: ZABBIX_ACTIVE
              key: 'vfs.fs.size[{#FSNAME},total]'
              delay: 5m
              history: 7d
              value_type: FLOAT
              trends: 90d
              units: B
              description: 'Total space in Bytes {#FSNAME}'
              tags:
                - tag: component
                  value: storage
                - tag: filesystem
                  value: '{#FSNAME}'
                - tag: fstype
                  value: '{#FSTYPE}'
                - tag: SRM
            - uuid: 4e6d11f295ab4f24a15d91390cc616d1
              name: '{#FSNAME}: Used space'
              type: ZABBIX_ACTIVE
              key: 'vfs.fs.size[{#FSNAME},used]'
              delay: 5m
              history: 7d
              value_type: FLOAT
              trends: 90d
              units: B
              description: 'Used storage in Bytes {#FSNAME}'
              tags:
                - tag: component
                  value: storage
                - tag: filesystem
                  value: '{#FSNAME}'
                - tag: fstype
                  value: '{#FSTYPE}'
          graph_prototypes:
            - uuid: b6654c8cf48d438aaef4a8ececa3a5b9
              name: 'Space Used on {#FSNAME}'
              show_work_period: 'NO'
              show_triggers: 'NO'
              graph_items:
                - color: 199C0D
                  item:
                    host: 'KD Linux by Zabbix agent Active'
                    key: 'vfs.fs.size[{#FSNAME},total]'
                - sortorder: '1'
                  color: FF0000
                  item:
                    host: 'KD Linux by Zabbix agent Active'
                    key: 'vfs.fs.size[{#FSNAME},used]'
          overrides:
            - name: 'Create FS trigger'
              step: '1'
              filter:
                conditions:
                  - macro: '{#FSNAME}'
                    value: '{$VFS.FS.FSNAME.NOT_MATCHES.TRIGGER}'
                    formulaid: A
              operations:
                - operationobject: TRIGGER_PROTOTYPE
                  operator: LIKE
                  value: Disk
                  discover: NO_DISCOVER
                  status: DISABLED
      tags:
        - tag: class
          value: os
        - tag: target
          value: LINUX
        - tag: Template
          value: 'KD Linux by Zabbix agent Active v2.2.0'
      macros:
        - macro: '{$AGENT.AVAILABILITY.TIMEOUT}'
          value: 20m
          description: 'AVAILABILITY: Threshold No data timeout for Zabbix agent availability check (unavailability persistence).'
        - macro: '{$CPU.LOAD_AVG_PER_CPU.MAX.HIGH}'
          value: '1.1'
          description: 'CPU: Threshold (DISABLED by default) for CPU load per core.'
        - macro: '{$CPU.UTIL.APPLID}'
          value: LINUX
          description: 'CPU: APPLID for CPU UTIL processes.'
        - macro: '{$CPU.UTIL.HIGH}'
          value: '95'
          description: 'CPU: Threshold for High utilization (high in severity)'
        - macro: '{$CPU.UTIL.LIST.PROC.MATCHES}'
          value: '.*'
          description: 'CPU: List of processes that need to be monitored.'
        - macro: '{$CPU.UTIL.LIST.PROC.NOT_MATCHES}'
          value: 'bash|kworker*|su|sudo|ps|uniq'
          description: 'CPU: List of processes to exclude.'
        - macro: '{$CPU.UTIL.LIST.USER.NOT_MATCHES}'
          value: ^$
          description: 'CPU: List of user processes to exclude.'
        - macro: '{$CPU.UTIL.MATCHES.AVERAGE}'
          value: ^$
          description: 'CPU: List of processes to match AVERAGE alert.'
        - macro: '{$CPU.UTIL.MATCHES.DISASTER}'
          value: ^$
          description: 'CPU: List of processes to match DISASTER alert.'
        - macro: '{$CPU.UTIL.MATCHES.HIGH}'
          value: ^$
          description: 'CPU: List of processes to match HIGH alert.'
        - macro: '{$CPU.UTIL.MATCHES.WARNING}'
          value: ^$
          description: 'CPU: List of processes to match WARNING alert.'
        - macro: '{$CPU.UTIL.PROC}'
          value: '95'
          description: 'CPU: Default value for Processes CPU.'
        - macro: '{$CPU.UTIL.SYSTEM.HIGH}'
          value: '95'
          description: 'CPU: Threshold of high System CPU.'
        - macro: '{$CPU.UTIL.USER.HIGH}'
          value: '95'
          description: 'CPU: Threshold of high User CPU.'
        - macro: '{$HOST.AVAILABILITY.TIMEOUT}'
          value: 10m
          description: 'AVAILABILITY: Threshold Timeout for Host Availability (unavailability persistence)'
        - macro: '{$LOG.AVERAGE.1}'
          value: '/var/log/messages;out of memory||/var/log/messages;oom-killer||/var/log/messages;soft lockup||/var/log/messages;allocation||/var/log/messages;blocked for more than 120 seconds||/var/log/messages;segfault||/var/log/messages;abrt-hook-ccpp'
          description: 'LOG: Slot1 For Average LLD log monitoring. Example <log_file>;<regex1>||<log_file>;<regex2>||...'
        - macro: '{$LOG.AVERAGE.2}'
          description: 'LOG: Slot2 For Average LLD log monitoring. Example <log_file>;<regex1>||<log_file>;<regex2>||...'
        - macro: '{$LOG.AVERAGE.3}'
          description: 'LOG: Slot3 For Average LLD log monitoring. Example <log_file>;<regex1>||<log_file>;<regex2>||...'
        - macro: '{$LOG.DISASTER.1}'
          description: 'LOG: Slot1 For Disaster LLD log monitoring. Example <log_file>;<regex1>||<log_file>;<regex2>||...'
        - macro: '{$LOG.DISASTER.2}'
          description: 'LOG: Slot2 For Disaster LLD log monitoring. Example <log_file>;<regex1>||<log_file>;<regex2>||...'
        - macro: '{$LOG.DISASTER.3}'
          description: 'LOG: Slot3 For Disaster LLD log monitoring. Example <log_file>;<regex1>||<log_file>;<regex2>||...'
        - macro: '{$LOG.HIGH.1}'
          description: 'LOG: Slot1 For High LLD log monitoring. Example <log_file>;<regex1>||<log_file>;<regex2>||...'
        - macro: '{$LOG.HIGH.2}'
          description: 'LOG: Slot2 For High LLD log monitoring. Example <log_file>;<regex1>||<log_file>;<regex2>||...'
        - macro: '{$LOG.HIGH.3}'
          description: 'LOG: Slo3 For High LLD log monitoring. Example <log_file>;<regex1>||<log_file>;<regex2>||...'
        - macro: '{$LOG.WARNING.1}'
          description: 'LOG: Slot1 For Warning LLD log monitoring. Example <log_file>;<regex1>||<log_file>;<regex2>||...'
        - macro: '{$LOG.WARNING.2}'
          description: 'LOG: Slot2 For Warning LLD log monitoring. Example <log_file>;<regex1>||<log_file>;<regex2>||...'
        - macro: '{$LOG.WARNING.3}'
          description: 'LOG: Slot3 For Warning LLD log monitoring. Example <log_file>;<regex1>||<log_file>;<regex2>||...'
        - macro: '{$MEMORY.AVAILABLE.HIGH}'
          value: '5'
          description: 'MEMORY: Threshold for Low available memory (high in severity)'
        - macro: '{$MEMORY.MBFREE.HIGH}'
          value: '256'
          description: 'MEMORY: High / Free memory threshold in MB'
        - macro: '{$MEMORY.MBFREE.MEDIUM}'
          value: '512'
          description: 'MEMORY: Medium / Free memory threshold in MB'
        - macro: '{$MEMORY.MBFREE.LOW}'
          value: '-1'
          description: 'MEMORY: Low / Free memory threshold in MB (disabled by default)'
        - macro: '{$MEMORY.UTIL.HIGH}'
          value: '90'
          description: 'MEMORY: Threshold for High memory utilization (high in severity)'
        - macro: '{$MEMORY.UTIL.LOW}'
          value: '101'
          description: 'MEMORY Utilization Low (disabled by default)'
        - macro: '{$MEMORY.UTIL.MEDIUM}'
          value: '80'
          description: 'MEMORY: Threshold (DISABLED by default) for High memory utilization (medium in severity)'
        - macro: '{$NET.IF.IFNAME.MATCHES}'
          value: '^.*$'
          description: 'INTERFACE: FILTER for Interface discovery (for SRM data only)'
        - macro: '{$NET.IF.IFNAME.NOT_MATCHES}'
          value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9A-z]+$|docker[0-9]+|br-[a-z0-9]{12})'
          description: 'INTERFACE: FILTER for Interface discovery (for SRM data only)'
        - macro: '{$NODATA}'
          value: 12h
          description: 'MONITORING:Threshold for long term missing data collections'
        - macro: '{$PASSWORD_ACCOUNT_MONITORED}'
          description: 'PASSWORD_ACCOUNT: Comma separated list of accounts to monitor.'
        - macro: '{$PASSWORD_EXPIRY_THRESHOLD}'
          value: '7'
          description: 'PASSWORD_ACCOUNT: Threshold for the number of days until a password expires in days. Default 7 days.'
        - macro: '{$PROC.APPLID}'
          value: LINUX
          description: 'PROCESS: APPLID for processes related triggers and events.'
        - macro: '{$PROC.GET.INSTANCE.MAX}'
          value: '100'
          description: 'PROCESS: Threshold for maximum started process instances'
        - macro: '{$PROC.GET.INSTANCE.MIN}'
          value: '1'
          description: 'PROCESS: Threshold for minimum started process instances'
        - macro: '{$PROC.GET.LIST}'
          description: 'PROCESS: List of process to monitor (user process is supported) format is ps1,user1|ps2,user2|ps3|ps4.... you can also specify {$PROC.GET.LIST2} up to 5 if you have a big macro. Base system processes are monitored through "systemd".'
        - macro: '{$PROC.NAME.MATCHES.AVERAGE}'
          value: ^$
          description: 'PROCESS: LIST of processes to set trigger severity as AVERAGE (specify also in PROC.GET.LIST). Regex!'
        - macro: '{$PROC.NAME.MATCHES.DISASTER}'
          value: ^$
          description: 'PROCESS: LIST of processes to set trigger severity as DISASTER (specify also in PROC.GET.LIST). Regex!'
        - macro: '{$PROC.NAME.MATCHES.HIGH}'
          value: ^$
          description: 'PROCESS: LIST of processes to set trigger severity as HIGH  (specify also in PROC.GET.LIST). Regex!'
        - macro: '{$PROC.NAME.MATCHES.WARNING}'
          value: ^$
          description: 'PROCESS: LIST of processes to set trigger severity as WARNING (specify also in PROC.GET.LIST). Regex!'
        - macro: '{$SWAP.PUSED.HIGH}'
          value: '90'
          description: 'SWAP: Threshold for SWAP  high usage in percentage'
        - macro: '{$SWAP.PUSED.MEDIUM}'
          value: '85'
          description: 'MEMORY: Average Swap usage'
        - macro: '{$SWAP.THRASHING.PAGES.IN.PER.SECOND}'
          value: '800'
          description: 'SWAP: Threshold for SWAP thrashing pages in per second'
        - macro: '{$SWAP.THRASHING.PAGES.OUT.PER.SECOND}'
          value: '800'
          description: 'SWAP: Threshold for SWAP thrashing pages out per second'
        - macro: '{$SWAP.THRASHING.PUSED}'
          value: '80'
          description: 'SWAP: Threshold for SWAP thrashing used in percentage'
        - macro: '{$SYSTEM.PROC.ZOMBIE.HIGH}'
          value: '10'
          description: 'ZOMBIES: Threshold for High zombie processes.'
        - macro: '{$SYSTEM.PROC.ZOMBIE.MEDIUM}'
          value: '5'
          description: 'ZOMBIES: Threshold (DISABLED by default) for Average maximum zombie processes.'
        - macro: '{$SYSTEM.SERVICES.APPLID}'
          value: LINUX
          description: 'SERVICES: APPLID for services related triggers and events.'
        - macro: '{$SYSTEM.SERVICES.RUN}'
          value: cron|syslog|ssh|ntp|chronyd
          description: 'SERVICES: LIST of system services to be monitored (processes managed by systemd) used by filter in discovery.'
        - macro: '{$USERS.GET.LIST}'
          value: zabbix|root
          description: 'USER:: List of users to be monitored. Values format: "value1|value2|..."'
        - macro: '{$USERS.PWD_LEFT_DAY}'
          value: '7'
          description: 'USER: Number left day before expiration'
        - macro: '{$VFS.AUTOMOUNT.APPLID}'
          value: LINUX
          description: 'AUTOMOUNT: APPLID for FS Automount related triggers and events'
        - macro: '{$VFS.AUTOMOUNT.EXCLUDE.FS}'
          value: ^(swap|none)$
          description: 'AUTOMOUNT: Filesystems to be excluded from automount monitoring'
        - macro: '{$VFS.AUTOMOUNT.MONITORAUTO}'
          value: 'NO'
          description: 'AUTOMOUNT: NO (we do not monitor file systems with the noauto option) / YES (we monitor file systems with the noauto option).'
        - macro: '{$VFS.DEV.DEVNAME.MATCHES}'
          value: .+
          description: 'BLOCKDEVICES: FILTER for a discovery of block devices - as as included devices. Regex filter.'
        - macro: '{$VFS.DEV.DEVNAME.NOT_MATCHES}'
          value: '^(loop[0-9]*|sd[a-z][0-9]+|nbd[0-9]+|sr[0-9]+|fd[0-9]+|dm-[0-9]+|ram[0-9]+|ploop[a-z0-9]+|md[0-9]*|hcp[0-9]*|zram[0-9]*)'
          description: 'BLOCKDEVICES: FILTER for a discovery of block devices - as as excluded devices. Regex filter.'
        - macro: '{$VFS.FS.APPLID}'
          value: LINUX
          description: 'FILESYSTEM: APPLID for filesystem space and inode usage related triggers and events'
        - macro: '{$VFS.FS.APPLID:"/myfsname"}'
          value: MYAPPL
          description: 'FILESYSTEM: SAMPLE APPLID how to define alternative ApplID for specific filesystem mount (example "/myfsname".) ApplId can be then used as Event Filter in Event Management.'
        - macro: '{$VFS.FS.FSNAME.MATCHES}'
          value: .+
          description: 'FILESYSTEM: FILTER for filesystems discovery - as as included mounts by name to be monitored.'
        - macro: '{$VFS.FS.FSNAME.NOT_MATCHES}'
          value: ^(/dev|/sys|/run|/proc|.+/shm$)
          description: 'FILESYSTEM: This macro is used in filesystems discovery - as as excluded mounts by name from monitoring and data collection completely.'
        - macro: '{$VFS.FS.FSNAME.NOT_MATCHES.TRIGGER}'
          value: ^\s$
          description: 'FILESYSTEM: FILTER for filesystems discovery - as as excluded mounts by name only from event monitoring, not excluded from data collection (capacity reporting).'
        - macro: '{$VFS.FS.FSTYPE.MATCHES}'
          value: ^(btrfs|ext2|ext3|ext4|reiser|xfs|ffs|ufs|jfs|jfs2|vxfs|hfs|apfs|refs|ntfs|fat32|zfs)$
          description: 'FILESYSTEM: FILTER for filesystems discovery - as included filesystem types to be monitored.'
        - macro: '{$VFS.FS.FSTYPE.NOT_MATCHES}'
          value: ^\s$
          description: 'FILESYSTEM: FILTER for filesystems discovery - as as excluded filesystem types from monitoring.'
        - macro: '{$VFS.FS.INODE.PFREE.MIN.CRIT}'
          value: '10'
          description: 'FILESYSTEM: The generic CRIT (High) threshold for Percent Free Inodes on Filesystems.'
        - macro: '{$VFS.FS.INODE.PFREE.MIN.FATAL}'
          value: '5'
          description: 'FILESYSTEM: The generic FATAL (Disaster) threshold for Percent Free Inodes on Filesystems.'
        - macro: '{$VFS.FS.INODE.PFREE.MIN.MINOR}'
          value: '-1'
          description: 'FILESYSTEM: The generic MINOR (Average) threshold for Percent Free Inodes on Filesystems.'
        - macro: '{$VFS.FS.INODE.PFREE.MIN.WARN}'
          value: '-1'
          description: 'FILESYSTEM: The generic WARN (Warning) threshold for Percent Free Inodes on Filesystems.'
        - macro: '{$VFS.FS.PUSED.MAX.CRIT}'
          value: '95'
          description: 'FILESYSTEM: The generic CRIT (High) threshold for Percent Free Space on Filesystems.'
        - macro: '{$VFS.FS.PUSED.MAX.FATAL}'
          value: '98'
          description: 'FILESYSTEM: The generic FATAL (Disaster) threshold for Percent Free Space on Filesystems. Note: By default the Disaster event results into same ticket priority as High.'
        - macro: '{$VFS.FS.PUSED.MAX.FATAL:"/myfsname"}'
          value: '95'
          description: 'FILESYSTEM: SAMPLE Threshold for specific filesystem mount (example "/myfsname".)'
        - macro: '{$VFS.FS.PUSED.MAX.MINOR}'
          value: '90'
          description: 'FILESYSTEM: The generic MINOR (Average) threshold for Percent Free Space on Filesystems.'
        - macro: '{$VFS.MIN.FS.INTERVAL}'
          value: 10m
          description: 'FILESYSTEM: The time interval for FS Inode/Space usage above threshold to be reported.'
      valuemaps:
        - uuid: 73b1c0ec7947484ea0d5ffaa652591bd
          name: 'Unit Active State'
          mappings:
            - value: '0'
              newvalue: unknown
            - value: '1'
              newvalue: active
            - value: '2'
              newvalue: reloading
            - value: '3'
              newvalue: inactive
            - value: '4'
              newvalue: failed
            - value: '5'
              newvalue: activating
            - value: '6'
              newvalue: deactivating
        - uuid: 1b5e36be7ca04a6b8661e08e13f9ec1c
          name: 'Unit File State'
          mappings:
            - value: '0'
              newvalue: unknown
            - value: '1'
              newvalue: enabled
            - value: '2'
              newvalue: enabled-runtime
            - value: '3'
              newvalue: linked
            - value: '4'
              newvalue: linked-runtime
            - value: '5'
              newvalue: masked
            - value: '6'
              newvalue: masked-runtime
            - value: '7'
              newvalue: static
            - value: '8'
              newvalue: disabled
            - value: '9'
              newvalue: invalid
        - uuid: a0c3e7b9761f4b08ae68c3fae326bb02
          name: 'Up or Down'
          mappings:
            - value: '1'
              newvalue: Up
            - value: '0'
              newvalue: Down
  triggers:
    - uuid: b28f9911c03842dbbc558ed67ee689d6
      expression: 'min(/KD Linux by Zabbix agent Active/system.swap.size[,pused],30m)>{$SWAP.PUSED.MEDIUM} and last(/KD Linux by Zabbix agent Active/system.swap.size[,total])>0'
      recovery_mode: RECOVERY_EXPRESSION
      recovery_expression: 'max(/KD Linux by Zabbix agent Active/system.swap.size[,pused],15m)<{$SWAP.PUSED.MEDIUM} and last(/KD Linux by Zabbix agent Active/system.swap.size[,total])>0'
      name: 'Average swap space usage'
      event_name: 'Average swap space usage (more than {$SWAP.PUSED.MEDIUM}% used)'
      opdata: 'Pused: {ITEM.LASTVALUE1}, total: {ITEM.LASTVALUE2}'
      priority: AVERAGE
      description: 'If there is no swap configured, this trigger is ignored.'
      manual_close: 'YES'
      status: DISABLED
      dependencies:
        - name: 'High memory utilization [High]'
          expression: 'min(/KD Linux by Zabbix agent Active/vm.memory.utilization,30m)>{$MEMORY.UTIL.HIGH}'
          recovery_expression: 'max(/KD Linux by Zabbix agent Active/vm.memory.utilization,15m)<{$MEMORY.UTIL.HIGH}'
        - name: 'High swap space usage'
          expression: 'min(/KD Linux by Zabbix agent Active/system.swap.size[,pused],30m)>{$SWAP.PUSED.HIGH} and last(/KD Linux by Zabbix agent Active/system.swap.size[,total])>0'
          recovery_expression: 'max(/KD Linux by Zabbix agent Active/system.swap.size[,pused],15m)<{$SWAP.PUSED.HIGH} and last(/KD Linux by Zabbix agent Active/system.swap.size[,total])>0'
      tags:
        - tag: ApplId
          value: LINUX
        - tag: Component
          value: LINUX
        - tag: ComponentType
          value: OperatingSystem
        - tag: KD
          value: 'true'
        - tag: SubComponent
          value: Memory
    - uuid: b5d1ff36ae2b43dc9a8c24461c7fb278
      expression: 'min(/KD Linux by Zabbix agent Active/system.cpu.load[all,avg5],15m)/last(/KD Linux by Zabbix agent Active/system.cpu.num)>{$CPU.LOAD_AVG_PER_CPU.MAX.HIGH}'
      name: 'High CPU Load Average'
      event_name: 'Load average is too high (per CPU load over {$LOAD_AVG_PER_CPU.MAX.WARN} for 5m)'
      opdata: 'Load averages(1m 5m 15m): ({ITEM.LASTVALUE1} {ITEM.LASTVALUE3} {ITEM.LASTVALUE4}), # of CPUs: {ITEM.LASTVALUE2}'
      status: DISABLED
      priority: HIGH
      description: 'The load average per CPU is too high. The system may be slow to respond.'
      manual_close: 'YES'
      tags:
        - tag: ApplId
          value: LINUX
        - tag: Component
          value: LINUX
        - tag: ComponentType
          value: OperatingSystem
        - tag: SubComponent
          value: CPU
    - uuid: f7e695cee63e453fa196aad911b1f902
      expression: 'min(/KD Linux by Zabbix agent Active/system.swap.size[,pused],30m)>{$SWAP.PUSED.HIGH} and last(/KD Linux by Zabbix agent Active/system.swap.size[,total])>0'
      recovery_mode: RECOVERY_EXPRESSION
      recovery_expression: 'max(/KD Linux by Zabbix agent Active/system.swap.size[,pused],15m)<{$SWAP.PUSED.HIGH} and last(/KD Linux by Zabbix agent Active/system.swap.size[,total])>0'
      name: 'High swap space usage'
      event_name: 'High swap space usage (more than {$SWAP.PUSED.HIGH}% used)'
      opdata: 'Pused: {ITEM.LASTVALUE1}, total: {ITEM.LASTVALUE2}'
      priority: HIGH
      description: 'If there is no swap configured, this trigger is ignored.'
      manual_close: 'YES'
      dependencies:
        - name: 'High memory utilization [High]'
          expression: 'min(/KD Linux by Zabbix agent Active/vm.memory.utilization,30m)>{$MEMORY.UTIL.HIGH}'
          recovery_expression: 'max(/KD Linux by Zabbix agent Active/vm.memory.utilization,15m)<{$MEMORY.UTIL.HIGH}'
      tags:
        - tag: ApplId
          value: LINUX
        - tag: Component
          value: LINUX
        - tag: ComponentType
          value: OperatingSystem
        - tag: SubComponent
          value: Memory
    - uuid: 2c7d33cc1787409086f481356eca7e9f
      expression: 'nodata(/KD Linux by Zabbix agent Active/agent.ping,{$HOST.AVAILABILITY.TIMEOUT})=1 and max(/KD Linux by Zabbix agent Active/icmpping[,3,1000,,1000,],{$HOST.AVAILABILITY.TIMEOUT})=0'
      name: 'Host is unavailable'
      event_name: 'Host is unavailable (agent nodata and ICMP check failing)'
      priority: HIGH
      description: 'Combined host availability checks. Triggers when 1) Zabbix has lost connection with agent and 2) ICMP checks are failing. ICMP checks are disabled by default and you must enable them in the Items.'
      manual_close: 'YES'
      tags:
        - tag: ApplId
          value: LINUX
        - tag: Component
          value: LINUX
        - tag: ComponentType
          value: OperatingSystem
        - tag: SubComponent
          value: Host
    - uuid: 94c253fd30e442ab85e687bdf5c8a107
      expression: 'nodata(/KD Linux by Zabbix agent Active/agent.ping,{$HOST.AVAILABILITY.TIMEOUT})=1 and max(/KD Linux by Zabbix agent Active/net.tcp.service[tcp,,{$HOST.AVAILABILITY.TCPPORT}],{$HOST.AVAILABILITY.TIMEOUT})=0'
      name: 'Host is unavailable'
      event_name: 'Host is unavailable (agent nodata and TCP check failing)'
      priority: HIGH
      description: 'Combined host availability checks. Triggers when 1) Zabbix has lost connection with agent and 2) TCP checks are failing. TCP checks are disabled by default and you must enable them in the Items.'
      manual_close: 'YES'
      tags:
        - tag: ApplId
          value: LINUX
        - tag: Component
          value: LINUX
        - tag: ComponentType
          value: OperatingSystem
        - tag: SubComponent
          value: Host
  graphs:
    - uuid: 1eb194e3b75948f79698fc285471292d
      name: Availability
      width: '1200'
      graph_items:
        - color: C8E6C9
          calc_fnc: MIN
          item:
            host: 'KD Linux by Zabbix agent Active'
            key: 'icmpping[,3,1000,,1000,]'
        - sortorder: '1'
          drawtype: DOTTED_LINE
          color: FF4000
          calc_fnc: MIN
          item:
            host: 'KD Linux by Zabbix agent Active'
            key: agent.ping
    - uuid: 236c8182deef418e9883470cb8acfd08
      name: 'CPU utilization'
      ymin_type_1: FIXED
      ymax_type_1: FIXED
      graph_items:
        - drawtype: GRADIENT_LINE
          color: 1A7C11
          item:
            host: 'KD Linux by Zabbix agent Active'
            key: system.cpu.util
    - uuid: 261641266cee4a898aa8897226e9a97e
      name: 'Memory utilization'
      ymin_type_1: FIXED
      ymax_type_1: FIXED
      graph_items:
        - drawtype: GRADIENT_LINE
          color: 1A7C11
          item:
            host: 'KD Linux by Zabbix agent Active'
            key: vm.memory.utilization
    - uuid: 5d1952b292f34516b3a362c94be2440a
      name: Processes
      graph_items:
        - sortorder: '1'
          color: 2774A4
          item:
            host: 'KD Linux by Zabbix agent Active'
            key: 'proc.num[,,,syslog.*]'
