Added graphs with temp and pernament bans

This commit is contained in:
Kamil Porembiński 2016-11-03 10:36:39 +00:00
parent 7484a6d093
commit dc14fbd65e

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<zabbix_export> <zabbix_export>
<version>3.0</version> <version>3.2</version>
<date>2016-08-16T09:44:35Z</date> <date>2016-11-03T10:34:31Z</date>
<groups> <groups>
<group> <group>
<name>Templates</name> <name>Templates</name>
@ -66,6 +66,92 @@
<valuemap/> <valuemap/>
<logtimefmt/> <logtimefmt/>
</item> </item>
<item>
<name>Temporary banned IP</name>
<type>0</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>fail2ban[banned]</key>
<delay>300</delay>
<history>30</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Fail2Ban</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item>
<name>Permanent banned IP</name>
<type>0</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>fail2ban[permanent]</key>
<delay>300</delay>
<history>30</history>
<trends>365</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units/>
<delta>0</delta>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<formula>1</formula>
<delay_flex/>
<params/>
<ipmi_sensor/>
<data_type>0</data_type>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<description/>
<inventory_link>0</inventory_link>
<applications>
<application>
<name>Fail2Ban</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
</item>
<item> <item>
<name>Fail2Ban service is running</name> <name>Fail2Ban service is running</name>
<type>0</type> <type>0</type>
@ -111,6 +197,7 @@
</item> </item>
</items> </items>
<discovery_rules/> <discovery_rules/>
<httptests/>
<macros/> <macros/>
<templates/> <templates/>
<screens/> <screens/>
@ -119,23 +206,81 @@
<triggers> <triggers>
<trigger> <trigger>
<expression>{Template App Fail2Ban:chkconfig[fail2ban].last(0)}=0</expression> <expression>{Template App Fail2Ban:chkconfig[fail2ban].last(0)}=0</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>Fail2ban is not enabled in autostart</name> <name>Fail2ban is not enabled in autostart</name>
<correlation_mode>0</correlation_mode>
<correlation_tag/>
<url/> <url/>
<status>0</status> <status>0</status>
<priority>2</priority> <priority>2</priority>
<description/> <description/>
<type>0</type> <type>0</type>
<manual_close>0</manual_close>
<dependencies/> <dependencies/>
<tags/>
</trigger> </trigger>
<trigger> <trigger>
<expression>{Template App Fail2Ban:proc.num[fail2ban-server].sum(#3)}=0</expression> <expression>{Template App Fail2Ban:proc.num[fail2ban-server].sum(#3)}=0</expression>
<recovery_mode>0</recovery_mode>
<recovery_expression/>
<name>Fail2Ban service is down</name> <name>Fail2Ban service is down</name>
<correlation_mode>0</correlation_mode>
<correlation_tag/>
<url/> <url/>
<status>0</status> <status>0</status>
<priority>3</priority> <priority>3</priority>
<description/> <description/>
<type>0</type> <type>0</type>
<manual_close>0</manual_close>
<dependencies/> <dependencies/>
<tags/>
</trigger> </trigger>
</triggers> </triggers>
<graphs>
<graph>
<name>Fail2Ban banned IP</name>
<width>900</width>
<height>200</height>
<yaxismin>0.0000</yaxismin>
<yaxismax>100.0000</yaxismax>
<show_work_period>1</show_work_period>
<show_triggers>1</show_triggers>
<type>0</type>
<show_legend>1</show_legend>
<show_3d>0</show_3d>
<percent_left>0.0000</percent_left>
<percent_right>0.0000</percent_right>
<ymin_type_1>0</ymin_type_1>
<ymax_type_1>0</ymax_type_1>
<ymin_item_1>0</ymin_item_1>
<ymax_item_1>0</ymax_item_1>
<graph_items>
<graph_item>
<sortorder>0</sortorder>
<drawtype>0</drawtype>
<color>1A7C11</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template App Fail2Ban</host>
<key>fail2ban[banned]</key>
</item>
</graph_item>
<graph_item>
<sortorder>1</sortorder>
<drawtype>0</drawtype>
<color>F63100</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template App Fail2Ban</host>
<key>fail2ban[permanent]</key>
</item>
</graph_item>
</graph_items>
</graph>
</graphs>
</zabbix_export> </zabbix_export>