Advertisement
count0ru

Untitled

Jul 26th, 2016
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 33.16 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <zabbix_export>
  3.     <version>2.0</version>
  4.     <date>2014-06-29T06:40:14Z</date>
  5.     <groups>
  6.         <group>
  7.             <name>Custom Templates</name>
  8.         </group>
  9.         <group>
  10.             <name>OpenVPN clients</name>
  11.         </group>
  12.     </groups>
  13.     <templates>
  14.         <template>
  15.             <template>Custom Template - OpenVPN clients</template>
  16.             <name>Custom Template - OpenVPN clients</name>
  17.             <groups>
  18.                 <group>
  19.                     <name>Custom Templates</name>
  20.                 </group>
  21.             </groups>
  22.             <applications>
  23.                 <application>
  24.                     <name>OpenVPN Service</name>
  25.                 </application>
  26.             </applications>
  27.             <items>
  28.                 <item>
  29.                     <name>OpenVPN client health check (ping)</name>
  30.                     <type>0</type>
  31.                     <snmp_community/>
  32.                     <multiplier>0</multiplier>
  33.                     <snmp_oid/>
  34.                     <key>system.run[&quot;ping -c 3 -W 1 $( echo {HOST.HOST} | cut -d_ -f2 ) &gt; /dev/null;echo $?&quot;]</key>
  35.                     <delay>30</delay>
  36.                     <history>7</history>
  37.                     <trends>365</trends>
  38.                     <status>0</status>
  39.                     <value_type>3</value_type>
  40.                     <allowed_hosts/>
  41.                     <units/>
  42.                     <delta>0</delta>
  43.                     <snmpv3_contextname/>
  44.                     <snmpv3_securityname/>
  45.                     <snmpv3_securitylevel>0</snmpv3_securitylevel>
  46.                     <snmpv3_authprotocol>0</snmpv3_authprotocol>
  47.                     <snmpv3_authpassphrase/>
  48.                     <snmpv3_privprotocol>0</snmpv3_privprotocol>
  49.                     <snmpv3_privpassphrase/>
  50.                     <formula>1</formula>
  51.                     <delay_flex/>
  52.                     <params/>
  53.                     <ipmi_sensor/>
  54.                     <data_type>0</data_type>
  55.                     <authtype>0</authtype>
  56.                     <username/>
  57.                     <password/>
  58.                     <publickey/>
  59.                     <privatekey/>
  60.                     <port/>
  61.                     <description/>
  62.                     <inventory_link>0</inventory_link>
  63.                     <applications>
  64.                         <application>
  65.                             <name>OpenVPN Service</name>
  66.                         </application>
  67.                     </applications>
  68.                     <valuemap/>
  69.                 </item>
  70.                 <item>
  71.                     <name>OpenVPN client incomming traffic (bps)</name>
  72.                     <type>2</type>
  73.                     <snmp_community/>
  74.                     <multiplier>1</multiplier>
  75.                     <snmp_oid/>
  76.                     <key>script.openvpn_client_stats.incomming</key>
  77.                     <delay>0</delay>
  78.                     <history>7</history>
  79.                     <trends>365</trends>
  80.                     <status>0</status>
  81.                     <value_type>3</value_type>
  82.                     <allowed_hosts/>
  83.                     <units>bps</units>
  84.                     <delta>1</delta>
  85.                     <snmpv3_contextname/>
  86.                     <snmpv3_securityname/>
  87.                     <snmpv3_securitylevel>0</snmpv3_securitylevel>
  88.                     <snmpv3_authprotocol>0</snmpv3_authprotocol>
  89.                     <snmpv3_authpassphrase/>
  90.                     <snmpv3_privprotocol>0</snmpv3_privprotocol>
  91.                     <snmpv3_privpassphrase/>
  92.                     <formula>8</formula>
  93.                     <delay_flex/>
  94.                     <params/>
  95.                     <ipmi_sensor/>
  96.                     <data_type>0</data_type>
  97.                     <authtype>0</authtype>
  98.                     <username/>
  99.                     <password/>
  100.                     <publickey/>
  101.                     <privatekey/>
  102.                     <port/>
  103.                     <description/>
  104.                     <inventory_link>0</inventory_link>
  105.                     <applications>
  106.                         <application>
  107.                             <name>OpenVPN Service</name>
  108.                         </application>
  109.                     </applications>
  110.                     <valuemap/>
  111.                 </item>
  112.                 <item>
  113.                     <name>OpenVPN client outbound traffic (bps)</name>
  114.                     <type>2</type>
  115.                     <snmp_community/>
  116.                     <multiplier>1</multiplier>
  117.                     <snmp_oid/>
  118.                     <key>script.openvpn_client_stats.outbound</key>
  119.                     <delay>0</delay>
  120.                     <history>7</history>
  121.                     <trends>365</trends>
  122.                     <status>0</status>
  123.                     <value_type>3</value_type>
  124.                     <allowed_hosts/>
  125.                     <units>bps</units>
  126.                     <delta>1</delta>
  127.                     <snmpv3_contextname/>
  128.                     <snmpv3_securityname/>
  129.                     <snmpv3_securitylevel>0</snmpv3_securitylevel>
  130.                     <snmpv3_authprotocol>0</snmpv3_authprotocol>
  131.                     <snmpv3_authpassphrase/>
  132.                     <snmpv3_privprotocol>0</snmpv3_privprotocol>
  133.                     <snmpv3_privpassphrase/>
  134.                     <formula>8</formula>
  135.                     <delay_flex/>
  136.                     <params/>
  137.                     <ipmi_sensor/>
  138.                     <data_type>0</data_type>
  139.                     <authtype>0</authtype>
  140.                     <username/>
  141.                     <password/>
  142.                     <publickey/>
  143.                     <privatekey/>
  144.                     <port/>
  145.                     <description/>
  146.                     <inventory_link>0</inventory_link>
  147.                     <applications>
  148.                         <application>
  149.                             <name>OpenVPN Service</name>
  150.                         </application>
  151.                     </applications>
  152.                     <valuemap/>
  153.                 </item>
  154.                 <item>
  155.                     <name>OpenVPN client tunnel status</name>
  156.                     <type>0</type>
  157.                     <snmp_community/>
  158.                     <multiplier>0</multiplier>
  159.                     <snmp_oid/>
  160.                     <key>script.openvpn_client_stats[127.0.0.1,7505,/etc/openvpn/password,3,{HOST.HOST}]</key>
  161.                     <delay>30</delay>
  162.                     <history>7</history>
  163.                     <trends>365</trends>
  164.                     <status>0</status>
  165.                     <value_type>1</value_type>
  166.                     <allowed_hosts/>
  167.                     <units/>
  168.                     <delta>0</delta>
  169.                     <snmpv3_contextname/>
  170.                     <snmpv3_securityname/>
  171.                     <snmpv3_securitylevel>0</snmpv3_securitylevel>
  172.                     <snmpv3_authprotocol>0</snmpv3_authprotocol>
  173.                     <snmpv3_authpassphrase/>
  174.                     <snmpv3_privprotocol>0</snmpv3_privprotocol>
  175.                     <snmpv3_privpassphrase/>
  176.                     <formula>1</formula>
  177.                     <delay_flex/>
  178.                     <params/>
  179.                     <ipmi_sensor/>
  180.                     <data_type>0</data_type>
  181.                     <authtype>0</authtype>
  182.                     <username/>
  183.                     <password/>
  184.                     <publickey/>
  185.                     <privatekey/>
  186.                     <port/>
  187.                     <description/>
  188.                     <inventory_link>0</inventory_link>
  189.                     <applications>
  190.                         <application>
  191.                             <name>OpenVPN Service</name>
  192.                         </application>
  193.                     </applications>
  194.                     <valuemap/>
  195.                 </item>
  196.             </items>
  197.             <discovery_rules/>
  198.             <macros/>
  199.             <templates/>
  200.             <screens/>
  201.         </template>
  202.         <template>
  203.             <template>Custom Template - OpenVPN server</template>
  204.             <name>Custom Template - OpenVPN server</name>
  205.             <groups>
  206.                 <group>
  207.                     <name>Custom Templates</name>
  208.                 </group>
  209.             </groups>
  210.             <applications>
  211.                 <application>
  212.                     <name>OpenVPN Service</name>
  213.                 </application>
  214.             </applications>
  215.             <items>
  216.                 <item>
  217.                     <name>OpenVPN active connections</name>
  218.                     <type>2</type>
  219.                     <snmp_community/>
  220.                     <multiplier>0</multiplier>
  221.                     <snmp_oid/>
  222.                     <key>script.openvpn_stats.nclients</key>
  223.                     <delay>0</delay>
  224.                     <history>7</history>
  225.                     <trends>365</trends>
  226.                     <status>0</status>
  227.                     <value_type>3</value_type>
  228.                     <allowed_hosts/>
  229.                     <units/>
  230.                     <delta>0</delta>
  231.                     <snmpv3_contextname/>
  232.                     <snmpv3_securityname/>
  233.                     <snmpv3_securitylevel>0</snmpv3_securitylevel>
  234.                     <snmpv3_authprotocol>0</snmpv3_authprotocol>
  235.                     <snmpv3_authpassphrase/>
  236.                     <snmpv3_privprotocol>0</snmpv3_privprotocol>
  237.                     <snmpv3_privpassphrase/>
  238.                     <formula>1</formula>
  239.                     <delay_flex/>
  240.                     <params/>
  241.                     <ipmi_sensor/>
  242.                     <data_type>0</data_type>
  243.                     <authtype>0</authtype>
  244.                     <username/>
  245.                     <password/>
  246.                     <publickey/>
  247.                     <privatekey/>
  248.                     <port/>
  249.                     <description/>
  250.                     <inventory_link>0</inventory_link>
  251.                     <applications>
  252.                         <application>
  253.                             <name>OpenVPN Service</name>
  254.                         </application>
  255.                     </applications>
  256.                     <valuemap/>
  257.                 </item>
  258.                 <item>
  259.                     <name>OpenVPN health check</name>
  260.                     <type>0</type>
  261.                     <snmp_community/>
  262.                     <multiplier>0</multiplier>
  263.                     <snmp_oid/>
  264.                     <key>script.openvpn_stats[127.0.0.1,7505,/etc/openvpn/password,3]</key>
  265.                     <delay>30</delay>
  266.                     <history>7</history>
  267.                     <trends>365</trends>
  268.                     <status>0</status>
  269.                     <value_type>4</value_type>
  270.                     <allowed_hosts/>
  271.                     <units/>
  272.                     <delta>0</delta>
  273.                     <snmpv3_contextname/>
  274.                     <snmpv3_securityname/>
  275.                     <snmpv3_securitylevel>0</snmpv3_securitylevel>
  276.                     <snmpv3_authprotocol>0</snmpv3_authprotocol>
  277.                     <snmpv3_authpassphrase/>
  278.                     <snmpv3_privprotocol>0</snmpv3_privprotocol>
  279.                     <snmpv3_privpassphrase/>
  280.                     <formula>1</formula>
  281.                     <delay_flex/>
  282.                     <params/>
  283.                     <ipmi_sensor/>
  284.                     <data_type>0</data_type>
  285.                     <authtype>0</authtype>
  286.                     <username/>
  287.                     <password/>
  288.                     <publickey/>
  289.                     <privatekey/>
  290.                     <port/>
  291.                     <description/>
  292.                     <inventory_link>0</inventory_link>
  293.                     <applications>
  294.                         <application>
  295.                             <name>OpenVPN Service</name>
  296.                         </application>
  297.                     </applications>
  298.                     <valuemap/>
  299.                 </item>
  300.                 <item>
  301.                     <name>OpenVPN incomming traffic (bps)</name>
  302.                     <type>2</type>
  303.                     <snmp_community/>
  304.                     <multiplier>1</multiplier>
  305.                     <snmp_oid/>
  306.                     <key>script.openvpn_stats.incomming</key>
  307.                     <delay>0</delay>
  308.                     <history>7</history>
  309.                     <trends>365</trends>
  310.                     <status>0</status>
  311.                     <value_type>3</value_type>
  312.                     <allowed_hosts/>
  313.                     <units>bps</units>
  314.                     <delta>1</delta>
  315.                     <snmpv3_contextname/>
  316.                     <snmpv3_securityname/>
  317.                     <snmpv3_securitylevel>0</snmpv3_securitylevel>
  318.                     <snmpv3_authprotocol>0</snmpv3_authprotocol>
  319.                     <snmpv3_authpassphrase/>
  320.                     <snmpv3_privprotocol>0</snmpv3_privprotocol>
  321.                     <snmpv3_privpassphrase/>
  322.                     <formula>8</formula>
  323.                     <delay_flex/>
  324.                     <params/>
  325.                     <ipmi_sensor/>
  326.                     <data_type>0</data_type>
  327.                     <authtype>0</authtype>
  328.                     <username/>
  329.                     <password/>
  330.                     <publickey/>
  331.                     <privatekey/>
  332.                     <port/>
  333.                     <description/>
  334.                     <inventory_link>0</inventory_link>
  335.                     <applications>
  336.                         <application>
  337.                             <name>OpenVPN Service</name>
  338.                         </application>
  339.                     </applications>
  340.                     <valuemap/>
  341.                 </item>
  342.                 <item>
  343.                     <name>OpenVPN log</name>
  344.                     <type>7</type>
  345.                     <snmp_community/>
  346.                     <multiplier>0</multiplier>
  347.                     <snmp_oid/>
  348.                     <key>logrt[&quot;/var/log/openvpn\.(log|log-[0-9]{8})$&quot;,@Exclude rules for OpenVPN log]</key>
  349.                     <delay>1</delay>
  350.                     <history>7</history>
  351.                     <trends>365</trends>
  352.                     <status>0</status>
  353.                     <value_type>2</value_type>
  354.                     <allowed_hosts/>
  355.                     <units/>
  356.                     <delta>0</delta>
  357.                     <snmpv3_contextname/>
  358.                     <snmpv3_securityname/>
  359.                     <snmpv3_securitylevel>0</snmpv3_securitylevel>
  360.                     <snmpv3_authprotocol>0</snmpv3_authprotocol>
  361.                     <snmpv3_authpassphrase/>
  362.                     <snmpv3_privprotocol>0</snmpv3_privprotocol>
  363.                     <snmpv3_privpassphrase/>
  364.                     <formula>1</formula>
  365.                     <delay_flex/>
  366.                     <params/>
  367.                     <ipmi_sensor/>
  368.                     <data_type>0</data_type>
  369.                     <authtype>0</authtype>
  370.                     <username/>
  371.                     <password/>
  372.                     <publickey/>
  373.                     <privatekey/>
  374.                     <port/>
  375.                     <description/>
  376.                     <inventory_link>0</inventory_link>
  377.                     <applications>
  378.                         <application>
  379.                             <name>OpenVPN Service</name>
  380.                         </application>
  381.                     </applications>
  382.                     <valuemap/>
  383.                 </item>
  384.                 <item>
  385.                     <name>OpenVPN outbound traffic (bps)</name>
  386.                     <type>2</type>
  387.                     <snmp_community/>
  388.                     <multiplier>1</multiplier>
  389.                     <snmp_oid/>
  390.                     <key>script.openvpn_stats.outbound</key>
  391.                     <delay>0</delay>
  392.                     <history>7</history>
  393.                     <trends>365</trends>
  394.                     <status>0</status>
  395.                     <value_type>3</value_type>
  396.                     <allowed_hosts/>
  397.                     <units>bps</units>
  398.                     <delta>1</delta>
  399.                     <snmpv3_contextname/>
  400.                     <snmpv3_securityname/>
  401.                     <snmpv3_securitylevel>0</snmpv3_securitylevel>
  402.                     <snmpv3_authprotocol>0</snmpv3_authprotocol>
  403.                     <snmpv3_authpassphrase/>
  404.                     <snmpv3_privprotocol>0</snmpv3_privprotocol>
  405.                     <snmpv3_privpassphrase/>
  406.                     <formula>8</formula>
  407.                     <delay_flex/>
  408.                     <params/>
  409.                     <ipmi_sensor/>
  410.                     <data_type>0</data_type>
  411.                     <authtype>0</authtype>
  412.                     <username/>
  413.                     <password/>
  414.                     <publickey/>
  415.                     <privatekey/>
  416.                     <port/>
  417.                     <description/>
  418.                     <inventory_link>0</inventory_link>
  419.                     <applications>
  420.                         <application>
  421.                             <name>OpenVPN Service</name>
  422.                         </application>
  423.                     </applications>
  424.                     <valuemap/>
  425.                 </item>
  426.                 <item>
  427.                     <name>OpenVPN proc num</name>
  428.                     <type>0</type>
  429.                     <snmp_community/>
  430.                     <multiplier>0</multiplier>
  431.                     <snmp_oid/>
  432.                     <key>proc.num[openvpn]</key>
  433.                     <delay>30</delay>
  434.                     <history>7</history>
  435.                     <trends>365</trends>
  436.                     <status>0</status>
  437.                     <value_type>3</value_type>
  438.                     <allowed_hosts/>
  439.                     <units/>
  440.                     <delta>0</delta>
  441.                     <snmpv3_contextname/>
  442.                     <snmpv3_securityname/>
  443.                     <snmpv3_securitylevel>0</snmpv3_securitylevel>
  444.                     <snmpv3_authprotocol>0</snmpv3_authprotocol>
  445.                     <snmpv3_authpassphrase/>
  446.                     <snmpv3_privprotocol>0</snmpv3_privprotocol>
  447.                     <snmpv3_privpassphrase/>
  448.                     <formula>1</formula>
  449.                     <delay_flex/>
  450.                     <params/>
  451.                     <ipmi_sensor/>
  452.                     <data_type>0</data_type>
  453.                     <authtype>0</authtype>
  454.                     <username/>
  455.                     <password/>
  456.                     <publickey/>
  457.                     <privatekey/>
  458.                     <port/>
  459.                     <description/>
  460.                     <inventory_link>0</inventory_link>
  461.                     <applications>
  462.                         <application>
  463.                             <name>OpenVPN Service</name>
  464.                         </application>
  465.                     </applications>
  466.                     <valuemap/>
  467.                 </item>
  468.             </items>
  469.             <discovery_rules>
  470.                 <discovery_rule>
  471.                     <name>Discovery rule to find OpenVPN clients</name>
  472.                     <type>0</type>
  473.                     <snmp_community/>
  474.                     <snmp_oid/>
  475.                     <key>script.openvpn_client_discovery[/etc/openvpn/client-ipconfig]</key>
  476.                     <delay>3600</delay>
  477.                     <status>0</status>
  478.                     <allowed_hosts/>
  479.                     <snmpv3_contextname/>
  480.                     <snmpv3_securityname/>
  481.                     <snmpv3_securitylevel>0</snmpv3_securitylevel>
  482.                     <snmpv3_authprotocol>0</snmpv3_authprotocol>
  483.                     <snmpv3_authpassphrase/>
  484.                     <snmpv3_privprotocol>0</snmpv3_privprotocol>
  485.                     <snmpv3_privpassphrase/>
  486.                     <delay_flex/>
  487.                     <params/>
  488.                     <ipmi_sensor/>
  489.                     <authtype>0</authtype>
  490.                     <username/>
  491.                     <password/>
  492.                     <publickey/>
  493.                     <privatekey/>
  494.                     <port/>
  495.                     <filter>:</filter>
  496.                     <lifetime>1</lifetime>
  497.                     <description>Discovery rule to find OpenVPN clients.</description>
  498.                     <item_prototypes/>
  499.                     <trigger_prototypes/>
  500.                     <graph_prototypes/>
  501.                     <host_prototypes>
  502.                         <host_prototype>
  503.                             <host>{#VPN_SERVER}_{#CLIENT_VPN_IP}_{#CLIENT_CN}</host>
  504.                             <name>(VPN client) {#CLIENT_CN} on {#VPN_SERVER}</name>
  505.                             <status>0</status>
  506.                             <group_links>
  507.                                 <group_link>
  508.                                     <group>
  509.                                         <name>OpenVPN clients</name>
  510.                                     </group>
  511.                                 </group_link>
  512.                             </group_links>
  513.                             <group_prototypes>
  514.                                 <group_prototype>
  515.                                     <name>OpenVPN-{#VPN_SERVER}</name>
  516.                                 </group_prototype>
  517.                             </group_prototypes>
  518.                             <templates>
  519.                                 <template>
  520.                                     <name>Custom Template - OpenVPN clients</name>
  521.                                 </template>
  522.                             </templates>
  523.                         </host_prototype>
  524.                     </host_prototypes>
  525.                 </discovery_rule>
  526.             </discovery_rules>
  527.             <macros/>
  528.             <templates/>
  529.             <screens>
  530.                 <screen>
  531.                     <name>OpenVPN Statistics</name>
  532.                     <hsize>1</hsize>
  533.                     <vsize>2</vsize>
  534.                     <screen_items>
  535.                         <screen_item>
  536.                             <resourcetype>0</resourcetype>
  537.                             <width>500</width>
  538.                             <height>100</height>
  539.                             <x>0</x>
  540.                             <y>0</y>
  541.                             <colspan>1</colspan>
  542.                             <rowspan>1</rowspan>
  543.                             <elements>0</elements>
  544.                             <valign>0</valign>
  545.                             <halign>0</halign>
  546.                             <style>0</style>
  547.                             <url/>
  548.                             <dynamic>0</dynamic>
  549.                             <sort_triggers>0</sort_triggers>
  550.                             <resource>
  551.                                 <name>OpenVPN Traffic (in/out)</name>
  552.                                 <host>Custom Template - OpenVPN server</host>
  553.                             </resource>
  554.                             <application/>
  555.                         </screen_item>
  556.                         <screen_item>
  557.                             <resourcetype>0</resourcetype>
  558.                             <width>500</width>
  559.                             <height>100</height>
  560.                             <x>0</x>
  561.                             <y>1</y>
  562.                             <colspan>1</colspan>
  563.                             <rowspan>1</rowspan>
  564.                             <elements>0</elements>
  565.                             <valign>0</valign>
  566.                             <halign>0</halign>
  567.                             <style>0</style>
  568.                             <url/>
  569.                             <dynamic>0</dynamic>
  570.                             <sort_triggers>0</sort_triggers>
  571.                             <resource>
  572.                                 <name>OpenVPN active connections</name>
  573.                                 <host>Custom Template - OpenVPN server</host>
  574.                             </resource>
  575.                             <application/>
  576.                         </screen_item>
  577.                     </screen_items>
  578.                 </screen>
  579.             </screens>
  580.         </template>
  581.     </templates>
  582.     <triggers>
  583.         <trigger>
  584.             <expression>{Custom Template - OpenVPN server:proc.num[openvpn].last()}&lt;1</expression>
  585.             <name>OpenVPN process is not runnning</name>
  586.             <url/>
  587.             <status>0</status>
  588.             <priority>4</priority>
  589.             <description/>
  590.             <type>0</type>
  591.             <dependencies/>
  592.         </trigger>
  593.         <trigger>
  594.             <expression>{Custom Template - OpenVPN server:script.openvpn_stats[127.0.0.1,7505,/etc/openvpn/password,3].regexp(&quot;Error: Could not connect to OpenVPN management interface&quot;)}=1|{Custom Template - OpenVPN server:script.openvpn_stats[127.0.0.1,7505,/etc/openvpn/password,3].nodata(600)}=1</expression>
  595.             <name>OpenVPN service is no response</name>
  596.             <url/>
  597.             <status>0</status>
  598.             <priority>4</priority>
  599.             <description/>
  600.             <type>0</type>
  601.             <dependencies/>
  602.         </trigger>
  603.         <trigger>
  604.             <expression>{Custom Template - OpenVPN clients:system.run[&quot;ping -c 3 -W 1 $( echo {HOST.HOST} | cut -d_ -f2 ) &gt; /dev/null;echo $?&quot;].last()}#0</expression>
  605.             <name>OpenVPN tunnel interface is unreachable ({HOST.HOST})</name>
  606.             <url/>
  607.             <status>0</status>
  608.             <priority>3</priority>
  609.             <description/>
  610.             <type>0</type>
  611.             <dependencies>
  612.                 <dependency>
  613.                     <name>OpenVPN tunnel is down ({HOST.HOST})</name>
  614.                     <expression>(({Custom Template - OpenVPN clients:script.openvpn_client_stats[127.0.0.1,7505,/etc/openvpn/password,3,{HOST.HOST}].regexp(Down)})#0)</expression>
  615.                 </dependency>
  616.             </dependencies>
  617.         </trigger>
  618.         <trigger>
  619.             <expression>(({Custom Template - OpenVPN clients:script.openvpn_client_stats[127.0.0.1,7505,/etc/openvpn/password,3,{HOST.HOST}].regexp(Down)})#0)</expression>
  620.             <name>OpenVPN tunnel is down ({HOST.HOST})</name>
  621.             <url/>
  622.             <status>0</status>
  623.             <priority>4</priority>
  624.             <description/>
  625.             <type>0</type>
  626.             <dependencies/>
  627.         </trigger>
  628.         <trigger>
  629.             <expression>({TRIGGER.VALUE}=0&amp;{Custom Template - OpenVPN server:logrt[&quot;/var/log/openvpn\.(log|log-[0-9]{8})$&quot;,@Exclude rules for OpenVPN log].regexp(&quot;MAN: client connection rejected after 3 failed password attempts&quot;)}=1)|({TRIGGER.VALUE}=1&amp;{Custom Template - OpenVPN server:logrt[&quot;/var/log/openvpn\.(log|log-[0-9]{8})$&quot;,@Exclude rules for OpenVPN log].regexp(&quot;MAN: client connection rejected after 3 failed password attempts&quot;,600)}=1)</expression>
  630.             <name>[OpenVPN log] Authentication failure detected on management interface</name>
  631.             <url/>
  632.             <status>0</status>
  633.             <priority>2</priority>
  634.             <description/>
  635.             <type>0</type>
  636.             <dependencies/>
  637.         </trigger>
  638.         <trigger>
  639.             <expression>({TRIGGER.VALUE}=0&amp;{Custom Template - OpenVPN server:logrt[&quot;/var/log/openvpn\.(log|log-[0-9]{8})$&quot;,@Exclude rules for OpenVPN log].regexp(&quot;Peer Connection Initiated with&quot;)}=1)|({TRIGGER.VALUE}=1&amp;{Custom Template - OpenVPN server:logrt[&quot;/var/log/openvpn\.(log|log-[0-9]{8})$&quot;,@Exclude rules for OpenVPN log].regexp(&quot;Peer Connection Initiated with&quot;,600)}=1)</expression>
  640.             <name>[OpenVPN log] VPN connection is established</name>
  641.             <url/>
  642.             <status>0</status>
  643.             <priority>1</priority>
  644.             <description/>
  645.             <type>0</type>
  646.             <dependencies/>
  647.         </trigger>
  648.         <trigger>
  649.             <expression>({TRIGGER.VALUE}=0&amp;{Custom Template - OpenVPN server:logrt[&quot;/var/log/openvpn\.(log|log-[0-9]{8})$&quot;,@Exclude rules for OpenVPN log].regexp(&quot;Inactivity timeout&quot;)}=1)|({TRIGGER.VALUE}=1&amp;{Custom Template - OpenVPN server:logrt[&quot;/var/log/openvpn\.(log|log-[0-9]{8})$&quot;,@Exclude rules for OpenVPN log].regexp(&quot;Inactivity timeout&quot;,600)}=1)</expression>
  650.             <name>[OpenVPN log] VPN inactivity timeout detected (may be disconnected)</name>
  651.             <url/>
  652.             <status>0</status>
  653.             <priority>2</priority>
  654.             <description/>
  655.             <type>0</type>
  656.             <dependencies/>
  657.         </trigger>
  658.     </triggers>
  659.     <graphs>
  660.         <graph>
  661.             <name>OpenVPN active connections</name>
  662.             <width>900</width>
  663.             <height>200</height>
  664.             <yaxismin>0.0000</yaxismin>
  665.             <yaxismax>100.0000</yaxismax>
  666.             <show_work_period>1</show_work_period>
  667.             <show_triggers>1</show_triggers>
  668.             <type>0</type>
  669.             <show_legend>1</show_legend>
  670.             <show_3d>0</show_3d>
  671.             <percent_left>0.0000</percent_left>
  672.             <percent_right>0.0000</percent_right>
  673.             <ymin_type_1>0</ymin_type_1>
  674.             <ymax_type_1>0</ymax_type_1>
  675.             <ymin_item_1>0</ymin_item_1>
  676.             <ymax_item_1>0</ymax_item_1>
  677.             <graph_items>
  678.                 <graph_item>
  679.                     <sortorder>0</sortorder>
  680.                     <drawtype>2</drawtype>
  681.                     <color>C80000</color>
  682.                     <yaxisside>0</yaxisside>
  683.                     <calc_fnc>4</calc_fnc>
  684.                     <type>0</type>
  685.                     <item>
  686.                         <host>Custom Template - OpenVPN server</host>
  687.                         <key>script.openvpn_stats.nclients</key>
  688.                     </item>
  689.                 </graph_item>
  690.             </graph_items>
  691.         </graph>
  692.         <graph>
  693.             <name>OpenVPN Client Traffic (in/out)</name>
  694.             <width>900</width>
  695.             <height>200</height>
  696.             <yaxismin>0.0000</yaxismin>
  697.             <yaxismax>100.0000</yaxismax>
  698.             <show_work_period>1</show_work_period>
  699.             <show_triggers>1</show_triggers>
  700.             <type>0</type>
  701.             <show_legend>1</show_legend>
  702.             <show_3d>0</show_3d>
  703.             <percent_left>0.0000</percent_left>
  704.             <percent_right>0.0000</percent_right>
  705.             <ymin_type_1>0</ymin_type_1>
  706.             <ymax_type_1>0</ymax_type_1>
  707.             <ymin_item_1>0</ymin_item_1>
  708.             <ymax_item_1>0</ymax_item_1>
  709.             <graph_items>
  710.                 <graph_item>
  711.                     <sortorder>0</sortorder>
  712.                     <drawtype>5</drawtype>
  713.                     <color>3333FF</color>
  714.                     <yaxisside>0</yaxisside>
  715.                     <calc_fnc>4</calc_fnc>
  716.                     <type>0</type>
  717.                     <item>
  718.                         <host>Custom Template - OpenVPN clients</host>
  719.                         <key>script.openvpn_client_stats.incomming</key>
  720.                     </item>
  721.                 </graph_item>
  722.                 <graph_item>
  723.                     <sortorder>1</sortorder>
  724.                     <drawtype>5</drawtype>
  725.                     <color>00C800</color>
  726.                     <yaxisside>0</yaxisside>
  727.                     <calc_fnc>4</calc_fnc>
  728.                     <type>0</type>
  729.                     <item>
  730.                         <host>Custom Template - OpenVPN clients</host>
  731.                         <key>script.openvpn_client_stats.outbound</key>
  732.                     </item>
  733.                 </graph_item>
  734.             </graph_items>
  735.         </graph>
  736.         <graph>
  737.             <name>OpenVPN Traffic (in/out)</name>
  738.             <width>900</width>
  739.             <height>200</height>
  740.             <yaxismin>0.0000</yaxismin>
  741.             <yaxismax>100.0000</yaxismax>
  742.             <show_work_period>1</show_work_period>
  743.             <show_triggers>1</show_triggers>
  744.             <type>0</type>
  745.             <show_legend>1</show_legend>
  746.             <show_3d>0</show_3d>
  747.             <percent_left>0.0000</percent_left>
  748.             <percent_right>0.0000</percent_right>
  749.             <ymin_type_1>0</ymin_type_1>
  750.             <ymax_type_1>0</ymax_type_1>
  751.             <ymin_item_1>0</ymin_item_1>
  752.             <ymax_item_1>0</ymax_item_1>
  753.             <graph_items>
  754.                 <graph_item>
  755.                     <sortorder>0</sortorder>
  756.                     <drawtype>5</drawtype>
  757.                     <color>3333FF</color>
  758.                     <yaxisside>0</yaxisside>
  759.                     <calc_fnc>4</calc_fnc>
  760.                     <type>0</type>
  761.                     <item>
  762.                         <host>Custom Template - OpenVPN server</host>
  763.                         <key>script.openvpn_stats.incomming</key>
  764.                     </item>
  765.                 </graph_item>
  766.                 <graph_item>
  767.                     <sortorder>1</sortorder>
  768.                     <drawtype>5</drawtype>
  769.                     <color>00C800</color>
  770.                     <yaxisside>0</yaxisside>
  771.                     <calc_fnc>4</calc_fnc>
  772.                     <type>0</type>
  773.                     <item>
  774.                         <host>Custom Template - OpenVPN server</host>
  775.                         <key>script.openvpn_stats.outbound</key>
  776.                     </item>
  777.                 </graph_item>
  778.             </graph_items>
  779.         </graph>
  780.     </graphs>
  781. </zabbix_export>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement