Advertisement
bradlee_edmondson

Zabbix OpenWRT device (parent) template - 2021-05-13

May 12th, 2021
1,984
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 44.33 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <zabbix_export>
  3.     <version>5.2</version>
  4.     <date>2021-05-13T03:52:43Z</date>
  5.     <groups>
  6.         <group>
  7.             <name>Templates</name>
  8.         </group>
  9.     </groups>
  10.     <templates>
  11.         <template>
  12.             <template>Template Openwrt</template>
  13.             <name>Template Openwrt</name>
  14.             <templates>
  15.                 <template>
  16.                     <name>Template Openwrt Mac80211</name>
  17.                 </template>
  18.                 <template>
  19.                     <name>Template Openwrt Network</name>
  20.                 </template>
  21.                 <template>
  22.                     <name>Template Openwrt Wifi</name>
  23.                 </template>
  24.             </templates>
  25.             <groups>
  26.                 <group>
  27.                     <name>Templates</name>
  28.                 </group>
  29.             </groups>
  30.             <applications>
  31.                 <application>
  32.                     <name>CPU</name>
  33.                 </application>
  34.                 <application>
  35.                     <name>Filesystems</name>
  36.                 </application>
  37.                 <application>
  38.                     <name>General</name>
  39.                 </application>
  40.                 <application>
  41.                     <name>Memory</name>
  42.                 </application>
  43.                 <application>
  44.                     <name>Network interfaces</name>
  45.                 </application>
  46.                 <application>
  47.                     <name>OS</name>
  48.                 </application>
  49.                 <application>
  50.                     <name>Performance</name>
  51.                 </application>
  52.                 <application>
  53.                     <name>Processes</name>
  54.                 </application>
  55.                 <application>
  56.                     <name>Security</name>
  57.                 </application>
  58.             </applications>
  59.             <items>
  60.                 <item>
  61.                     <name>Maximum number of opened files</name>
  62.                     <type>ZABBIX_ACTIVE</type>
  63.                     <key>kernel.maxfiles</key>
  64.                     <delay>1h</delay>
  65.                     <history>52w</history>
  66.                     <trends>156w</trends>
  67.                     <description>It could be increased by using sysctrl utility or modifying file /etc/sysctl.conf.</description>
  68.                     <applications>
  69.                         <application>
  70.                             <name>OS</name>
  71.                         </application>
  72.                     </applications>
  73.                     <preprocessing>
  74.                         <step>
  75.                             <type>DISCARD_UNCHANGED_HEARTBEAT</type>
  76.                             <parameters>
  77.                                 <parameter>1d</parameter>
  78.                             </parameters>
  79.                         </step>
  80.                     </preprocessing>
  81.                     <request_method>POST</request_method>
  82.                     <triggers>
  83.                         <trigger>
  84.                             <expression>{last(0)}&lt;1024</expression>
  85.                             <name>Configured max number of opened files is too low on {HOST.NAME}</name>
  86.                             <priority>INFO</priority>
  87.                         </trigger>
  88.                     </triggers>
  89.                 </item>
  90.                 <item>
  91.                     <name>Maximum number of processes</name>
  92.                     <type>ZABBIX_ACTIVE</type>
  93.                     <key>kernel.maxproc</key>
  94.                     <delay>1h</delay>
  95.                     <history>52w</history>
  96.                     <trends>156w</trends>
  97.                     <description>It could be increased by using sysctrl utility or modifying file /etc/sysctl.conf.</description>
  98.                     <applications>
  99.                         <application>
  100.                             <name>OS</name>
  101.                         </application>
  102.                     </applications>
  103.                     <request_method>POST</request_method>
  104.                     <triggers>
  105.                         <trigger>
  106.                             <expression>{last(0)}&lt;256</expression>
  107.                             <name>Configured max number of processes is too low on {HOST.NAME}</name>
  108.                             <priority>INFO</priority>
  109.                         </trigger>
  110.                     </triggers>
  111.                 </item>
  112.                 <item>
  113.                     <name>Zabbix agent mem usage</name>
  114.                     <type>ZABBIX_ACTIVE</type>
  115.                     <key>proc.mem[zabbix_agentd,,,]</key>
  116.                     <history>52w</history>
  117.                     <trends>156w</trends>
  118.                     <units>B</units>
  119.                     <applications>
  120.                         <application>
  121.                             <name>Memory</name>
  122.                         </application>
  123.                     </applications>
  124.                     <request_method>POST</request_method>
  125.                 </item>
  126.                 <item>
  127.                     <name>Number of running processes</name>
  128.                     <type>ZABBIX_ACTIVE</type>
  129.                     <key>proc.num[,,run]</key>
  130.                     <history>52w</history>
  131.                     <trends>156w</trends>
  132.                     <description>Number of processes in running state.</description>
  133.                     <applications>
  134.                         <application>
  135.                             <name>Processes</name>
  136.                         </application>
  137.                     </applications>
  138.                     <request_method>POST</request_method>
  139.                     <triggers>
  140.                         <trigger>
  141.                             <expression>{last(0)}&gt;30</expression>
  142.                             <name>Too many processes running on {HOST.NAME}</name>
  143.                             <priority>WARNING</priority>
  144.                         </trigger>
  145.                     </triggers>
  146.                 </item>
  147.                 <item>
  148.                     <name>Number of processes</name>
  149.                     <type>ZABBIX_ACTIVE</type>
  150.                     <key>proc.num[]</key>
  151.                     <history>52w</history>
  152.                     <trends>156w</trends>
  153.                     <description>Total number of processes in any state.</description>
  154.                     <applications>
  155.                         <application>
  156.                             <name>Processes</name>
  157.                         </application>
  158.                     </applications>
  159.                     <request_method>POST</request_method>
  160.                     <triggers>
  161.                         <trigger>
  162.                             <expression>{last(0)}&gt;300</expression>
  163.                             <name>Too many processes on {HOST.NAME}</name>
  164.                             <priority>WARNING</priority>
  165.                         </trigger>
  166.                     </triggers>
  167.                 </item>
  168.                 <item>
  169.                     <name>Host boot time</name>
  170.                     <type>ZABBIX_ACTIVE</type>
  171.                     <key>system.boottime</key>
  172.                     <delay>10m</delay>
  173.                     <history>52w</history>
  174.                     <trends>156w</trends>
  175.                     <units>unixtime</units>
  176.                     <applications>
  177.                         <application>
  178.                             <name>General</name>
  179.                         </application>
  180.                         <application>
  181.                             <name>OS</name>
  182.                         </application>
  183.                     </applications>
  184.                     <request_method>POST</request_method>
  185.                 </item>
  186.                 <item>
  187.                     <name>Interrupts per second</name>
  188.                     <type>ZABBIX_ACTIVE</type>
  189.                     <key>system.cpu.intr</key>
  190.                     <history>52w</history>
  191.                     <trends>156w</trends>
  192.                     <units>ips</units>
  193.                     <applications>
  194.                         <application>
  195.                             <name>CPU</name>
  196.                         </application>
  197.                         <application>
  198.                             <name>Performance</name>
  199.                         </application>
  200.                     </applications>
  201.                     <preprocessing>
  202.                         <step>
  203.                             <type>CHANGE_PER_SECOND</type>
  204.                             <parameters>
  205.                                 <parameter/>
  206.                             </parameters>
  207.                         </step>
  208.                     </preprocessing>
  209.                     <request_method>POST</request_method>
  210.                 </item>
  211.                 <item>
  212.                     <name>Processor load (1 min average per core)</name>
  213.                     <type>ZABBIX_ACTIVE</type>
  214.                     <key>system.cpu.load[percpu,avg1]</key>
  215.                     <history>52w</history>
  216.                     <trends>156w</trends>
  217.                     <value_type>FLOAT</value_type>
  218.                     <description>The processor load is calculates as system CPU load divided by number of CPU cores.</description>
  219.                     <applications>
  220.                         <application>
  221.                             <name>CPU</name>
  222.                         </application>
  223.                         <application>
  224.                             <name>Performance</name>
  225.                         </application>
  226.                     </applications>
  227.                     <request_method>POST</request_method>
  228.                     <triggers>
  229.                         <trigger>
  230.                             <expression>{last(0)}&gt;5</expression>
  231.                             <name>Processor load is too high on {HOST.NAME}</name>
  232.                             <priority>WARNING</priority>
  233.                         </trigger>
  234.                     </triggers>
  235.                 </item>
  236.                 <item>
  237.                     <name>Processor load (5 min average per core)</name>
  238.                     <type>ZABBIX_ACTIVE</type>
  239.                     <key>system.cpu.load[percpu,avg5]</key>
  240.                     <history>52w</history>
  241.                     <trends>156w</trends>
  242.                     <value_type>FLOAT</value_type>
  243.                     <description>The processor load is calculates as system CPU load divided by number of CPU cores.</description>
  244.                     <applications>
  245.                         <application>
  246.                             <name>CPU</name>
  247.                         </application>
  248.                         <application>
  249.                             <name>Performance</name>
  250.                         </application>
  251.                     </applications>
  252.                     <request_method>POST</request_method>
  253.                 </item>
  254.                 <item>
  255.                     <name>Processor load (15 min average per core)</name>
  256.                     <type>ZABBIX_ACTIVE</type>
  257.                     <key>system.cpu.load[percpu,avg15]</key>
  258.                     <history>52w</history>
  259.                     <trends>156w</trends>
  260.                     <value_type>FLOAT</value_type>
  261.                     <description>The processor load is calculates as system CPU load divided by number of CPU cores.</description>
  262.                     <applications>
  263.                         <application>
  264.                             <name>CPU</name>
  265.                         </application>
  266.                         <application>
  267.                             <name>Performance</name>
  268.                         </application>
  269.                     </applications>
  270.                     <request_method>POST</request_method>
  271.                 </item>
  272.                 <item>
  273.                     <name>Context switches per second</name>
  274.                     <type>ZABBIX_ACTIVE</type>
  275.                     <key>system.cpu.switches</key>
  276.                     <history>52w</history>
  277.                     <trends>156w</trends>
  278.                     <units>sps</units>
  279.                     <applications>
  280.                         <application>
  281.                             <name>CPU</name>
  282.                         </application>
  283.                         <application>
  284.                             <name>Performance</name>
  285.                         </application>
  286.                     </applications>
  287.                     <preprocessing>
  288.                         <step>
  289.                             <type>CHANGE_PER_SECOND</type>
  290.                             <parameters>
  291.                                 <parameter/>
  292.                             </parameters>
  293.                         </step>
  294.                     </preprocessing>
  295.                     <request_method>POST</request_method>
  296.                 </item>
  297.                 <item>
  298.                     <name>CPU Utilization (edmondsons.org custom)</name>
  299.                     <type>DEPENDENT</type>
  300.                     <key>system.cpu.util</key>
  301.                     <delay>0</delay>
  302.                     <history>52w</history>
  303.                     <trends>156w</trends>
  304.                     <value_type>FLOAT</value_type>
  305.                     <units>%</units>
  306.                     <applications>
  307.                         <application>
  308.                             <name>CPU</name>
  309.                         </application>
  310.                     </applications>
  311.                     <preprocessing>
  312.                         <step>
  313.                             <type>JAVASCRIPT</type>
  314.                             <parameters>
  315.                                 <parameter>//Calculate utilization
  316. return (100 - value)</parameter>
  317.                             </parameters>
  318.                         </step>
  319.                     </preprocessing>
  320.                     <master_item>
  321.                         <key>system.cpu.util[,idle]</key>
  322.                     </master_item>
  323.                 </item>
  324.                 <item>
  325.                     <name>CPU $2 time</name>
  326.                     <type>ZABBIX_ACTIVE</type>
  327.                     <key>system.cpu.util[,idle]</key>
  328.                     <history>52w</history>
  329.                     <trends>156w</trends>
  330.                     <value_type>FLOAT</value_type>
  331.                     <units>%</units>
  332.                     <description>The time the CPU has spent doing nothing.</description>
  333.                     <applications>
  334.                         <application>
  335.                             <name>CPU</name>
  336.                         </application>
  337.                         <application>
  338.                             <name>Performance</name>
  339.                         </application>
  340.                     </applications>
  341.                     <request_method>POST</request_method>
  342.                 </item>
  343.                 <item>
  344.                     <name>CPU $2 time</name>
  345.                     <type>ZABBIX_ACTIVE</type>
  346.                     <key>system.cpu.util[,interrupt]</key>
  347.                     <history>52w</history>
  348.                     <trends>156w</trends>
  349.                     <value_type>FLOAT</value_type>
  350.                     <units>%</units>
  351.                     <description>The amount of time the CPU has been servicing hardware interrupts.</description>
  352.                     <applications>
  353.                         <application>
  354.                             <name>CPU</name>
  355.                         </application>
  356.                         <application>
  357.                             <name>Performance</name>
  358.                         </application>
  359.                     </applications>
  360.                     <request_method>POST</request_method>
  361.                 </item>
  362.                 <item>
  363.                     <name>CPU $2 time</name>
  364.                     <type>ZABBIX_ACTIVE</type>
  365.                     <key>system.cpu.util[,iowait]</key>
  366.                     <history>52w</history>
  367.                     <trends>156w</trends>
  368.                     <value_type>FLOAT</value_type>
  369.                     <units>%</units>
  370.                     <description>Amount of time the CPU has been waiting for I/O to complete.</description>
  371.                     <applications>
  372.                         <application>
  373.                             <name>CPU</name>
  374.                         </application>
  375.                         <application>
  376.                             <name>Performance</name>
  377.                         </application>
  378.                     </applications>
  379.                     <request_method>POST</request_method>
  380.                     <triggers>
  381.                         <trigger>
  382.                             <expression>{last(0)}&gt;20</expression>
  383.                             <name>I/O are overloaded on {HOST.NAME}</name>
  384.                             <priority>WARNING</priority>
  385.                             <description>OS spends significant time waiting for I/O (input/output) operations. It could be indicator of performance issues with storage system.</description>
  386.                         </trigger>
  387.                     </triggers>
  388.                 </item>
  389.                 <item>
  390.                     <name>CPU $2 time</name>
  391.                     <type>ZABBIX_ACTIVE</type>
  392.                     <key>system.cpu.util[,nice]</key>
  393.                     <history>52w</history>
  394.                     <trends>156w</trends>
  395.                     <value_type>FLOAT</value_type>
  396.                     <units>%</units>
  397.                     <description>The time the CPU has spent running users' proccess that have been niced.</description>
  398.                     <applications>
  399.                         <application>
  400.                             <name>CPU</name>
  401.                         </application>
  402.                         <application>
  403.                             <name>Performance</name>
  404.                         </application>
  405.                     </applications>
  406.                     <request_method>POST</request_method>
  407.                 </item>
  408.                 <item>
  409.                     <name>CPU $2 time</name>
  410.                     <type>ZABBIX_ACTIVE</type>
  411.                     <key>system.cpu.util[,softirq]</key>
  412.                     <history>52w</history>
  413.                     <trends>156w</trends>
  414.                     <value_type>FLOAT</value_type>
  415.                     <units>%</units>
  416.                     <description>The amount of time the CPU has been servicing software interrupts.</description>
  417.                     <applications>
  418.                         <application>
  419.                             <name>CPU</name>
  420.                         </application>
  421.                         <application>
  422.                             <name>Performance</name>
  423.                         </application>
  424.                     </applications>
  425.                     <request_method>POST</request_method>
  426.                 </item>
  427.                 <item>
  428.                     <name>CPU $2 time</name>
  429.                     <type>ZABBIX_ACTIVE</type>
  430.                     <key>system.cpu.util[,steal]</key>
  431.                     <history>52w</history>
  432.                     <trends>156w</trends>
  433.                     <value_type>FLOAT</value_type>
  434.                     <units>%</units>
  435.                     <description>The amount of CPU 'stolen' from this virtual machine by the hypervisor for other tasks (such as running another virtual machine).</description>
  436.                     <applications>
  437.                         <application>
  438.                             <name>CPU</name>
  439.                         </application>
  440.                         <application>
  441.                             <name>Performance</name>
  442.                         </application>
  443.                     </applications>
  444.                     <request_method>POST</request_method>
  445.                 </item>
  446.                 <item>
  447.                     <name>CPU $2 time</name>
  448.                     <type>ZABBIX_ACTIVE</type>
  449.                     <key>system.cpu.util[,system]</key>
  450.                     <history>52w</history>
  451.                     <trends>156w</trends>
  452.                     <value_type>FLOAT</value_type>
  453.                     <units>%</units>
  454.                     <description>The time the CPU has spent running the kernel and its processes.</description>
  455.                     <applications>
  456.                         <application>
  457.                             <name>CPU</name>
  458.                         </application>
  459.                         <application>
  460.                             <name>Performance</name>
  461.                         </application>
  462.                     </applications>
  463.                     <request_method>POST</request_method>
  464.                 </item>
  465.                 <item>
  466.                     <name>CPU $2 time</name>
  467.                     <type>ZABBIX_ACTIVE</type>
  468.                     <key>system.cpu.util[,user]</key>
  469.                     <history>52w</history>
  470.                     <trends>156w</trends>
  471.                     <value_type>FLOAT</value_type>
  472.                     <units>%</units>
  473.                     <description>The time the CPU has spent running users' processes that are not niced.</description>
  474.                     <applications>
  475.                         <application>
  476.                             <name>CPU</name>
  477.                         </application>
  478.                         <application>
  479.                             <name>Performance</name>
  480.                         </application>
  481.                     </applications>
  482.                     <request_method>POST</request_method>
  483.                 </item>
  484.                 <item>
  485.                     <name>Host name</name>
  486.                     <type>ZABBIX_ACTIVE</type>
  487.                     <key>system.hostname</key>
  488.                     <delay>1h</delay>
  489.                     <history>52w</history>
  490.                     <trends>0</trends>
  491.                     <value_type>CHAR</value_type>
  492.                     <description>System host name.</description>
  493.                     <inventory_link>NAME</inventory_link>
  494.                     <applications>
  495.                         <application>
  496.                             <name>General</name>
  497.                         </application>
  498.                         <application>
  499.                             <name>OS</name>
  500.                         </application>
  501.                     </applications>
  502.                     <request_method>POST</request_method>
  503.                     <triggers>
  504.                         <trigger>
  505.                             <expression>{diff(0)}&gt;0</expression>
  506.                             <name>Hostname was changed on {HOST.NAME}</name>
  507.                             <priority>INFO</priority>
  508.                         </trigger>
  509.                     </triggers>
  510.                 </item>
  511.                 <item>
  512.                     <name>Host local time</name>
  513.                     <type>ZABBIX_ACTIVE</type>
  514.                     <key>system.localtime</key>
  515.                     <history>52w</history>
  516.                     <trends>156w</trends>
  517.                     <units>unixtime</units>
  518.                     <applications>
  519.                         <application>
  520.                             <name>General</name>
  521.                         </application>
  522.                         <application>
  523.                             <name>OS</name>
  524.                         </application>
  525.                     </applications>
  526.                     <request_method>POST</request_method>
  527.                     <triggers>
  528.                         <trigger>
  529.                             <expression>{fuzzytime(600)}=0</expression>
  530.                             <name>Clock sync problem on {HOST.NAME}</name>
  531.                             <priority>INFO</priority>
  532.                         </trigger>
  533.                     </triggers>
  534.                 </item>
  535.                 <item>
  536.                     <name>System information</name>
  537.                     <type>ZABBIX_ACTIVE</type>
  538.                     <key>system.uname</key>
  539.                     <delay>1h</delay>
  540.                     <history>52w</history>
  541.                     <trends>0</trends>
  542.                     <value_type>CHAR</value_type>
  543.                     <description>The information as normally returned by 'uname -a'.</description>
  544.                     <inventory_link>OS</inventory_link>
  545.                     <applications>
  546.                         <application>
  547.                             <name>General</name>
  548.                         </application>
  549.                         <application>
  550.                             <name>OS</name>
  551.                         </application>
  552.                     </applications>
  553.                     <request_method>POST</request_method>
  554.                     <triggers>
  555.                         <trigger>
  556.                             <expression>{diff(0)}&gt;0</expression>
  557.                             <name>Host information was changed on {HOST.NAME}</name>
  558.                             <priority>INFO</priority>
  559.                         </trigger>
  560.                     </triggers>
  561.                 </item>
  562.                 <item>
  563.                     <name>System uptime</name>
  564.                     <type>ZABBIX_ACTIVE</type>
  565.                     <key>system.uptime</key>
  566.                     <delay>10m</delay>
  567.                     <history>52w</history>
  568.                     <trends>156w</trends>
  569.                     <units>uptime</units>
  570.                     <applications>
  571.                         <application>
  572.                             <name>General</name>
  573.                         </application>
  574.                         <application>
  575.                             <name>OS</name>
  576.                         </application>
  577.                     </applications>
  578.                     <request_method>POST</request_method>
  579.                     <triggers>
  580.                         <trigger>
  581.                             <expression>{change(0)}&lt;0</expression>
  582.                             <name>{HOST.NAME} has just been restarted</name>
  583.                             <priority>INFO</priority>
  584.                         </trigger>
  585.                     </triggers>
  586.                 </item>
  587.                 <item>
  588.                     <name>Number of logged in users</name>
  589.                     <type>ZABBIX_ACTIVE</type>
  590.                     <key>system.users.num</key>
  591.                     <history>52w</history>
  592.                     <trends>156w</trends>
  593.                     <description>Number of users who are currently logged in.</description>
  594.                     <applications>
  595.                         <application>
  596.                             <name>OS</name>
  597.                         </application>
  598.                         <application>
  599.                             <name>Security</name>
  600.                         </application>
  601.                     </applications>
  602.                     <request_method>POST</request_method>
  603.                 </item>
  604.                 <item>
  605.                     <name>Checksum of $1</name>
  606.                     <type>ZABBIX_ACTIVE</type>
  607.                     <key>vfs.file.cksum[/etc/passwd]</key>
  608.                     <delay>1h</delay>
  609.                     <history>52w</history>
  610.                     <trends>156w</trends>
  611.                     <applications>
  612.                         <application>
  613.                             <name>Security</name>
  614.                         </application>
  615.                     </applications>
  616.                     <request_method>POST</request_method>
  617.                     <triggers>
  618.                         <trigger>
  619.                             <expression>{diff(0)}&gt;0</expression>
  620.                             <name>/etc/passwd has been changed on {HOST.NAME}</name>
  621.                             <priority>WARNING</priority>
  622.                         </trigger>
  623.                     </triggers>
  624.                 </item>
  625.                 <item>
  626.                     <name>Available memory</name>
  627.                     <type>ZABBIX_ACTIVE</type>
  628.                     <key>vm.memory.size[available]</key>
  629.                     <history>52w</history>
  630.                     <trends>156w</trends>
  631.                     <units>B</units>
  632.                     <description>Available memory is defined as free+cached+buffers memory.</description>
  633.                     <applications>
  634.                         <application>
  635.                             <name>Memory</name>
  636.                         </application>
  637.                     </applications>
  638.                     <request_method>POST</request_method>
  639.                     <triggers>
  640.                         <trigger>
  641.                             <expression>{last(0)}&lt;3M</expression>
  642.                             <name>Lack of available memory on router {HOST.NAME}</name>
  643.                             <priority>AVERAGE</priority>
  644.                         </trigger>
  645.                     </triggers>
  646.                 </item>
  647.                 <item>
  648.                     <name>Memory Utilization (edmondsons.org custom)</name>
  649.                     <type>ZABBIX_ACTIVE</type>
  650.                     <key>vm.memory.size[pused]</key>
  651.                     <history>52w</history>
  652.                     <trends>156w</trends>
  653.                     <value_type>FLOAT</value_type>
  654.                     <units>%</units>
  655.                     <applications>
  656.                         <application>
  657.                             <name>Memory</name>
  658.                         </application>
  659.                     </applications>
  660.                 </item>
  661.                 <item>
  662.                     <name>Total memory</name>
  663.                     <type>ZABBIX_ACTIVE</type>
  664.                     <key>vm.memory.size[total]</key>
  665.                     <delay>1h</delay>
  666.                     <history>52w</history>
  667.                     <trends>156w</trends>
  668.                     <units>B</units>
  669.                     <applications>
  670.                         <application>
  671.                             <name>Memory</name>
  672.                         </application>
  673.                     </applications>
  674.                     <request_method>POST</request_method>
  675.                 </item>
  676.                 <item>
  677.                     <name>Used memory</name>
  678.                     <type>ZABBIX_ACTIVE</type>
  679.                     <key>vm.memory.size[used]</key>
  680.                     <history>52w</history>
  681.                     <trends>156w</trends>
  682.                     <units>B</units>
  683.                     <applications>
  684.                         <application>
  685.                             <name>Memory</name>
  686.                         </application>
  687.                     </applications>
  688.                     <request_method>POST</request_method>
  689.                 </item>
  690.             </items>
  691.             <discovery_rules>
  692.                 <discovery_rule>
  693.                     <name>Mounted filesystem discovery</name>
  694.                     <type>ZABBIX_ACTIVE</type>
  695.                     <key>vfs.fs.discovery</key>
  696.                     <delay>1h</delay>
  697.                     <filter>
  698.                         <conditions>
  699.                             <condition>
  700.                                 <macro>{#FSTYPE}</macro>
  701.                                 <value>@File systems for discovery</value>
  702.                                 <formulaid>A</formulaid>
  703.                             </condition>
  704.                         </conditions>
  705.                     </filter>
  706.                     <lifetime>90d</lifetime>
  707.                     <description>Discovery of file systems of different types as defined in global regular expression &quot;File systems for discovery&quot;.</description>
  708.                     <item_prototypes>
  709.                         <item_prototype>
  710.                             <name>Free inodes on $1 (percentage)</name>
  711.                             <type>ZABBIX_ACTIVE</type>
  712.                             <key>vfs.fs.inode[{#FSNAME},pfree]</key>
  713.                             <history>52w</history>
  714.                             <trends>156w</trends>
  715.                             <value_type>FLOAT</value_type>
  716.                             <units>%</units>
  717.                             <applications>
  718.                                 <application>
  719.                                     <name>Filesystems</name>
  720.                                 </application>
  721.                             </applications>
  722.                             <request_method>POST</request_method>
  723.                             <trigger_prototypes>
  724.                                 <trigger_prototype>
  725.                                     <expression>{last(0)}&lt;20</expression>
  726.                                     <name>Free inodes is less than 20% on volume {#FSNAME}</name>
  727.                                     <priority>WARNING</priority>
  728.                                 </trigger_prototype>
  729.                             </trigger_prototypes>
  730.                         </item_prototype>
  731.                         <item_prototype>
  732.                             <name>Free disk space on $1</name>
  733.                             <type>ZABBIX_ACTIVE</type>
  734.                             <key>vfs.fs.size[{#FSNAME},free]</key>
  735.                             <history>52w</history>
  736.                             <trends>156w</trends>
  737.                             <units>B</units>
  738.                             <applications>
  739.                                 <application>
  740.                                     <name>Filesystems</name>
  741.                                 </application>
  742.                             </applications>
  743.                             <request_method>POST</request_method>
  744.                         </item_prototype>
  745.                         <item_prototype>
  746.                             <name>Free disk space on $1 (percentage)</name>
  747.                             <type>ZABBIX_ACTIVE</type>
  748.                             <key>vfs.fs.size[{#FSNAME},pfree]</key>
  749.                             <history>52w</history>
  750.                             <trends>156w</trends>
  751.                             <value_type>FLOAT</value_type>
  752.                             <units>%</units>
  753.                             <applications>
  754.                                 <application>
  755.                                     <name>Filesystems</name>
  756.                                 </application>
  757.                             </applications>
  758.                             <request_method>POST</request_method>
  759.                             <trigger_prototypes>
  760.                                 <trigger_prototype>
  761.                                     <expression>{last(0)}&lt;20</expression>
  762.                                     <name>Free disk space is less than 20% on volume {#FSNAME}</name>
  763.                                     <priority>WARNING</priority>
  764.                                 </trigger_prototype>
  765.                             </trigger_prototypes>
  766.                         </item_prototype>
  767.                         <item_prototype>
  768.                             <name>Total disk space on $1</name>
  769.                             <type>ZABBIX_ACTIVE</type>
  770.                             <key>vfs.fs.size[{#FSNAME},total]</key>
  771.                             <delay>1h</delay>
  772.                             <history>52w</history>
  773.                             <trends>156w</trends>
  774.                             <units>B</units>
  775.                             <applications>
  776.                                 <application>
  777.                                     <name>Filesystems</name>
  778.                                 </application>
  779.                             </applications>
  780.                             <request_method>POST</request_method>
  781.                         </item_prototype>
  782.                         <item_prototype>
  783.                             <name>Used disk space on $1</name>
  784.                             <type>ZABBIX_ACTIVE</type>
  785.                             <key>vfs.fs.size[{#FSNAME},used]</key>
  786.                             <history>52w</history>
  787.                             <trends>156w</trends>
  788.                             <units>B</units>
  789.                             <applications>
  790.                                 <application>
  791.                                     <name>Filesystems</name>
  792.                                 </application>
  793.                             </applications>
  794.                             <request_method>POST</request_method>
  795.                         </item_prototype>
  796.                     </item_prototypes>
  797.                     <graph_prototypes>
  798.                         <graph_prototype>
  799.                             <name>Disk space usage {#FSNAME}</name>
  800.                             <width>600</width>
  801.                             <height>340</height>
  802.                             <yaxismax>0</yaxismax>
  803.                             <show_work_period>NO</show_work_period>
  804.                             <show_triggers>NO</show_triggers>
  805.                             <type>PIE</type>
  806.                             <show_3d>YES</show_3d>
  807.                             <graph_items>
  808.                                 <graph_item>
  809.                                     <color>C80000</color>
  810.                                     <type>GRAPH_SUM</type>
  811.                                     <item>
  812.                                         <host>Template Openwrt</host>
  813.                                         <key>vfs.fs.size[{#FSNAME},total]</key>
  814.                                     </item>
  815.                                 </graph_item>
  816.                                 <graph_item>
  817.                                     <sortorder>1</sortorder>
  818.                                     <color>00C800</color>
  819.                                     <item>
  820.                                         <host>Template Openwrt</host>
  821.                                         <key>vfs.fs.size[{#FSNAME},free]</key>
  822.                                     </item>
  823.                                 </graph_item>
  824.                             </graph_items>
  825.                         </graph_prototype>
  826.                     </graph_prototypes>
  827.                     <request_method>POST</request_method>
  828.                 </discovery_rule>
  829.             </discovery_rules>
  830.         </template>
  831.     </templates>
  832.     <graphs>
  833.         <graph>
  834.             <name>CPU jumps</name>
  835.             <graph_items>
  836.                 <graph_item>
  837.                     <sortorder>1</sortorder>
  838.                     <color>009900</color>
  839.                     <item>
  840.                         <host>Template Openwrt</host>
  841.                         <key>system.cpu.switches</key>
  842.                     </item>
  843.                 </graph_item>
  844.                 <graph_item>
  845.                     <sortorder>2</sortorder>
  846.                     <color>000099</color>
  847.                     <item>
  848.                         <host>Template Openwrt</host>
  849.                         <key>system.cpu.intr</key>
  850.                     </item>
  851.                 </graph_item>
  852.             </graph_items>
  853.         </graph>
  854.         <graph>
  855.             <name>CPU load</name>
  856.             <ymin_type_1>FIXED</ymin_type_1>
  857.             <graph_items>
  858.                 <graph_item>
  859.                     <color>009900</color>
  860.                     <item>
  861.                         <host>Template Openwrt</host>
  862.                         <key>system.cpu.load[percpu,avg1]</key>
  863.                     </item>
  864.                 </graph_item>
  865.                 <graph_item>
  866.                     <sortorder>1</sortorder>
  867.                     <color>000099</color>
  868.                     <item>
  869.                         <host>Template Openwrt</host>
  870.                         <key>system.cpu.load[percpu,avg5]</key>
  871.                     </item>
  872.                 </graph_item>
  873.                 <graph_item>
  874.                     <sortorder>2</sortorder>
  875.                     <color>990000</color>
  876.                     <item>
  877.                         <host>Template Openwrt</host>
  878.                         <key>system.cpu.load[percpu,avg15]</key>
  879.                     </item>
  880.                 </graph_item>
  881.             </graph_items>
  882.         </graph>
  883.         <graph>
  884.             <name>CPU utilization</name>
  885.             <show_triggers>NO</show_triggers>
  886.             <type>STACKED</type>
  887.             <ymin_type_1>FIXED</ymin_type_1>
  888.             <ymax_type_1>FIXED</ymax_type_1>
  889.             <graph_items>
  890.                 <graph_item>
  891.                     <sortorder>1</sortorder>
  892.                     <drawtype>FILLED_REGION</drawtype>
  893.                     <color>FF5555</color>
  894.                     <item>
  895.                         <host>Template Openwrt</host>
  896.                         <key>system.cpu.util[,steal]</key>
  897.                     </item>
  898.                 </graph_item>
  899.                 <graph_item>
  900.                     <sortorder>2</sortorder>
  901.                     <drawtype>FILLED_REGION</drawtype>
  902.                     <color>55FF55</color>
  903.                     <item>
  904.                         <host>Template Openwrt</host>
  905.                         <key>system.cpu.util[,softirq]</key>
  906.                     </item>
  907.                 </graph_item>
  908.                 <graph_item>
  909.                     <sortorder>3</sortorder>
  910.                     <drawtype>FILLED_REGION</drawtype>
  911.                     <color>009999</color>
  912.                     <item>
  913.                         <host>Template Openwrt</host>
  914.                         <key>system.cpu.util[,interrupt]</key>
  915.                     </item>
  916.                 </graph_item>
  917.                 <graph_item>
  918.                     <sortorder>4</sortorder>
  919.                     <drawtype>FILLED_REGION</drawtype>
  920.                     <color>990099</color>
  921.                     <item>
  922.                         <host>Template Openwrt</host>
  923.                         <key>system.cpu.util[,nice]</key>
  924.                     </item>
  925.                 </graph_item>
  926.                 <graph_item>
  927.                     <sortorder>5</sortorder>
  928.                     <drawtype>FILLED_REGION</drawtype>
  929.                     <color>999900</color>
  930.                     <item>
  931.                         <host>Template Openwrt</host>
  932.                         <key>system.cpu.util[,iowait]</key>
  933.                     </item>
  934.                 </graph_item>
  935.                 <graph_item>
  936.                     <sortorder>6</sortorder>
  937.                     <drawtype>FILLED_REGION</drawtype>
  938.                     <color>990000</color>
  939.                     <item>
  940.                         <host>Template Openwrt</host>
  941.                         <key>system.cpu.util[,system]</key>
  942.                     </item>
  943.                 </graph_item>
  944.                 <graph_item>
  945.                     <sortorder>7</sortorder>
  946.                     <drawtype>FILLED_REGION</drawtype>
  947.                     <color>000099</color>
  948.                     <item>
  949.                         <host>Template Openwrt</host>
  950.                         <key>system.cpu.util[,user]</key>
  951.                     </item>
  952.                 </graph_item>
  953.                 <graph_item>
  954.                     <sortorder>8</sortorder>
  955.                     <drawtype>FILLED_REGION</drawtype>
  956.                     <color>009900</color>
  957.                     <item>
  958.                         <host>Template Openwrt</host>
  959.                         <key>system.cpu.util[,idle]</key>
  960.                     </item>
  961.                 </graph_item>
  962.             </graph_items>
  963.         </graph>
  964.         <graph>
  965.             <name>Memory usage</name>
  966.             <show_triggers>NO</show_triggers>
  967.             <ymax_type_1>ITEM</ymax_type_1>
  968.             <ymax_item_1>
  969.                 <host>Template Openwrt</host>
  970.                 <key>vm.memory.size[total]</key>
  971.             </ymax_item_1>
  972.             <graph_items>
  973.                 <graph_item>
  974.                     <color>C80000</color>
  975.                     <item>
  976.                         <host>Template Openwrt</host>
  977.                         <key>vm.memory.size[available]</key>
  978.                     </item>
  979.                 </graph_item>
  980.                 <graph_item>
  981.                     <sortorder>1</sortorder>
  982.                     <color>00C800</color>
  983.                     <item>
  984.                         <host>Template Openwrt</host>
  985.                         <key>vm.memory.size[total]</key>
  986.                     </item>
  987.                 </graph_item>
  988.                 <graph_item>
  989.                     <sortorder>2</sortorder>
  990.                     <color>0000C8</color>
  991.                     <item>
  992.                         <host>Template Openwrt</host>
  993.                         <key>vm.memory.size[used]</key>
  994.                     </item>
  995.                 </graph_item>
  996.             </graph_items>
  997.         </graph>
  998.         <graph>
  999.             <name>Zabbix mem graph</name>
  1000.             <show_triggers>NO</show_triggers>
  1001.             <graph_items>
  1002.                 <graph_item>
  1003.                     <color>C80000</color>
  1004.                     <item>
  1005.                         <host>Template Openwrt</host>
  1006.                         <key>proc.mem[zabbix_agentd,,,]</key>
  1007.                     </item>
  1008.                 </graph_item>
  1009.             </graph_items>
  1010.         </graph>
  1011.     </graphs>
  1012. </zabbix_export>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement