Added iwx plugin

1.3
Lukas Macura 2016-05-13 18:02:04 +02:00
parent b5ea0fe156
commit 409c6cd7a4
3 changed files with 1084 additions and 0 deletions

141
iwx/control.zaf Normal file
View File

@ -0,0 +1,141 @@
Plugin: iwx
Description::
Plugin for wifi mac80211 informations and discovery
::
Version: 0.1
Url: https://raw.githubusercontent.com/limosek/zaf-plugins/master/iwx
Web: https://github.com/limosek/zaf-plugins
# Dependencies
Depends-dpkg: dash curl
Depens-opkg: busybox curl
Depends-rpm: curl
Depends-bin: curl ps iw
Sudo: iw
# Install
Install-bin: functions.sh
Item if_discovery:
Description::
Discovery of wireless interfaces
::
Cmd: wifi_if_discovery
/Item
Item phy_discovery:
Description::
Discovery of wireless physical interfaces
::
Cmd: wifi_phy_discovery
/Item
Item channels_discovery:
Description::
Discovery of wireless channels
::
Parameters: dev
Cmd: wifi_channels_discovery $1
/Item
Item clients_discovery:
Description::
Discovery of wireless clients
::
Parameters: dev
Cmd: wifi_clients_discovery $1
/Item
Item client_signal:
Description::
Signal level of client
::
Parameters: dev mac
Cmd: wifi_clients_discovery $1 $2
/Item
Item client_rxrate:
Description::
RX rate of client
::
Parameters: dev mac
Cmd: wifi_clients_rxrate $1 $2
/Item
Item client_txrate:
Description::
TX rate of client
::
Parameters: dev mac
Cmd: wifi_clients_txrate $1 $2
/Item
Item neigh_ssid:
Description::
SSID of neighbour
::
Parameters: dev mac
Cmd: wifi_neigh_ssid $1 $2
/Item
Item neigh_signal:
Description::
Signal level of neighbour
::
Parameters: dev mac
Cmd: wifi_neigh_signal $1 $2
/Item
Item neigh_channel:
Description::
Channel of neighbour
::
Parameters: dev mac
Cmd: wifi_neigh_channel $1 $2
/Item
Item channel_noise:
Description::
Noise level on channel
::
Parameters: dev channel
Cmd: wifi_channel_noise $1 $2
/Item
Item channel_activetime:
Description::
Time spend as active on channel
::
Parameters: dev channel
Cmd: wifi_channel_activetime $1 $2
/Item
Item channel_busytime:
Description::
Time spend as busy on channel
::
Parameters: dev channel
Cmd: wifi_channel_busytime $1 $2
/Item
Item channel_txtime:
Description::
Time spend as TX on channel
::
Parameters: dev channel
Cmd: wifi_channel_transmittime $1 $2
/Item
Item channel_rxtime:
Description::
Time spend as RX on channel
::
Parameters: dev channel
Cmd: wifi_channel_receivetime $1 $2
/Item

151
iwx/functions.sh Normal file
View File

@ -0,0 +1,151 @@
wifi_ifphylist_openwrt() {
local devs phys p ifname ifindex i
json_load "$(ubus -S call network.wireless status)"
json_get_keys phys
for p in $phys; do
if [ "$1" = "phy" ]; then
echo $p
continue
fi
json_select "$p"
json_select "interfaces"
json_get_keys ifindex
for i in $ifindex; do
json_select $i
json_get_var ifname ifname
echo $ifname
json_select ..
done
json_select ..
json_select ..
done
}
wifi_ifphylist() {
local i
if [ "$1" = "phy" ]; then
for i in 0 1 2 3 4 5 6; do
if zaf_sudo iw phy phy$i info >/dev/null 2>/dev/null; then
echo phy$i
fi
done
else
for i in 0 1 2 3 4 5 6; do
if zaf_sudo iw dev wlan$i info >/dev/null 2>/dev/null; then
echo wlan$i
fi
done
fi
}
wifi_iflist(){
zaf_os_specific wifi_ifphylist || wifi_ifphylist
}
wifi_phylist(){
zaf_os_specific wifi_ifphylist phy || wifi_ifphylist phy
}
wifi_scan_dump(){
wifi_scan $1 | tr '(' ' ' | \
awk '/^BSS / { printf "'$1' %s ",$2} /freq:/ { printf "%s ",$2 } /signal:/ { printf "%s ",$2 } /SSID:/ { printf "%s\n",$2 } '
}
wifi_scan() {
local key="wifi_scan_dump_$1"
if ! zaf_fromcache "$key"; then
wifi_real_scan "$1" | zaf_tocache_stdin "$key" 300
fi
}
wifi_real_scan() {
zaf_sudo iw dev "$1" scan
}
wifi_channel_dump(){
wifi_scan "$1" >/dev/null
zaf_sudo iw dev $1 survey dump | tr -s '\t ' | \
awk '/frequency:/ { printf "'$1' %i ",$2 } /noise:/ {printf "%i ",$2 } /active time:/ {printf "%i ",$4 } /busy time:/ {printf "%i ",$4 } /receive time:/ {printf "%i ",$4 } /transmit time:/ {printf "%i \n",$4 }'
}
wifi_if_discovery(){
wifi_iflist | grep '^[a-z].*' | zaf_discovery "{#IF}"
}
wifi_phy_discovery(){
wifi_phylist | grep '^[a-z].*' | zaf_discovery "{#DEV}"
}
wifi_channels_discovery(){
local devs
[ -n "$1" ] && devs="$1" || devs="$(wifi_iflist)"
for dev in $devs; do wifi_channel_dump $dev 2>/dev/null; done | zaf_discovery "{#DEV}" "{#FREQ}" "{#NOISE}"
}
wifi_neigh_discovery(){
local devs
[ -n "$1" ] && devs="$1" || devs="$(wifi_iflist)"
for dev in $devs; do wifi_scan_dump $dev 2>/dev/null; done | zaf_discovery "{#DEV}" "{#BSS}" "{#FREQ}" "{#SIGNAL}" "{#SSID}"
}
wifi_channel_noise(){
wifi_channel_dump $1 | grep "^$1 $2" | (read dev freq noise active busy receive transmit; echo $noise)
}
wifi_channel_activetime(){
wifi_channel_dump $1 | grep "^$1 $2" | (read dev freq noise active busy receive transmit; echo $active)
}
wifi_channel_busytime(){
wifi_channel_dump $1 | grep "^$1 $2" | (read dev freq noise active busy receive transmit; echo $busy)
}
wifi_channel_receivetime(){
wifi_channel_dump $1 | grep "^$1 $2" | (read dev freq noise active busy receive transmit; echo $receive)
}
wifi_channel_transmittime(){
wifi_channel_dump $1 | grep "^$1 $2" | (read dev freq noise active busy receive transmit; echo $transmit)
}
wifi_neigh_channel(){
wifi_scan_dump $1 | grep "^$1 $2" | (read dev bss freq signal ssid; echo $freq)
}
wifi_neigh_signal(){
wifi_scan_dump $1 | grep "^$1 $2" | (read dev bss freq signal ssid; echo $signal)
}
wifi_neigh_ssid(){
wifi_scan_dump $1 | grep "^$1 $2" | (read dev bss freq signal ssid; echo $ssid)
}
wifi_clients(){
zaf_sudo iw dev $1 station dump | grep ^Station | wc -l
}
wifi_clients_dump(){
zaf_sudo iw dev $1 station dump | awk '/^Station / { printf "'$1' %s ",$2} /signal:/ { printf "%s ",$2 } /tx bitrate:/ { printf "%s ",$3 } /rx bitrate:/ { printf "%s\n",$3 } '
}
wifi_clients_discovery(){
local devs
[ -n "$1" ] && devs="$1" || devs="$(wifi_iflist)"
for dev in $devs; do wifi_clients_dump $dev 2>/dev/null; done | zaf_discovery "{#DEV}" "{#STATION}" "{#SIGNAL}" "{#TXRATE}" "{#RXRATE}"
}
wifi_client_signal(){
wifi_clients_dump $1 | grep "^$1 $2" | (read dev station signal tx rx; echo $signal)
}
wifi_client_rxrate(){
wifi_clients_dump $1 | grep "^$1 $2" | (read dev station signal tx rx; echo $rx)
}
wifi_client_txrate(){
wifi_clients_dump $1 | grep "^$1 $2" | (read dev station signal tx rx; echo $tx)
}

792
iwx/template.xml Normal file
View File

@ -0,0 +1,792 @@
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>3.0</version>
<date>2016-05-13T15:42:32Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
<template>
<template>Template Zaf iwx</template>
<name>Template Zaf iwx</name>
<description/>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<applications>
<application>
<name>Wifi</name>
</application>
<application>
<name>ZAF</name>
</application>
</applications>
<items/>
<discovery_rules>
<discovery_rule>
<name>Wifi channels discovery</name>
<type>7</type>
<snmp_community/>
<snmp_oid/>
<key>iwx.channels_discovery</key>
<delay>3600</delay>
<status>0</status>
<allowed_hosts/>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<delay_flex/>
<params/>
<ipmi_sensor/>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<filter>
<evaltype>0</evaltype>
<formula/>
<conditions/>
</filter>
<lifetime>7</lifetime>
<description/>
<item_prototypes>
<item_prototype>
<name>Active time on {#DEV} freq {#FREQ}</name>
<type>7</type>
<snmp_community/>
<multiplier>1</multiplier>
<snmp_oid/>
<key>iwx.channel_activetime[{#DEV},{#FREQ}]</key>
<delay>600</delay>
<history>7</history>
<trends>14</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>S</units>
<delta>2</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>0.001</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>Wifi</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>Busy time on {#DEV} freq {#FREQ}</name>
<type>7</type>
<snmp_community/>
<multiplier>1</multiplier>
<snmp_oid/>
<key>iwx.channel_busytime[{#DEV},{#FREQ}]</key>
<delay>600</delay>
<history>7</history>
<trends>14</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>S</units>
<delta>2</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>0.001</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>Wifi</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>Noise level on {#DEV} freq {#FREQ}</name>
<type>7</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>iwx.channel_noise[{#DEV},{#FREQ}]</key>
<delay>600</delay>
<history>7</history>
<trends>14</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>dB</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>Wifi</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>Receive time on {#DEV} freq {#FREQ}</name>
<type>7</type>
<snmp_community/>
<multiplier>1</multiplier>
<snmp_oid/>
<key>iwx.channel_rxtime[{#DEV},{#FREQ}]</key>
<delay>600</delay>
<history>7</history>
<trends>14</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>S</units>
<delta>2</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>0.001</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>Wifi</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>Transmit time on {#DEV} freq {#FREQ}</name>
<type>7</type>
<snmp_community/>
<multiplier>1</multiplier>
<snmp_oid/>
<key>iwx.channel_txtime[{#DEV},{#FREQ}]</key>
<delay>600</delay>
<history>7</history>
<trends>14</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>S</units>
<delta>2</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>0.001</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>Wifi</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
</item_prototypes>
<trigger_prototypes>
<trigger_prototype>
<expression>{Template Zaf iwx:iwx.channel_activetime[{#DEV},{#FREQ}].change()}&gt;20 and ({Template Zaf iwx:iwx.channel_busytime[{#DEV},{#FREQ}].last()}/{Template Zaf iwx:iwx.channel_activetime[{#DEV},{#FREQ}].last()})&gt;0.3</expression>
<name>Busy time on channel {#FREQ} on {#DEV} is high</name>
<url/>
<status>0</status>
<priority>2</priority>
<description/>
<type>0</type>
<dependencies/>
</trigger_prototype>
</trigger_prototypes>
<graph_prototypes>
<graph_prototype>
<name>Active times on {#DEV} and {#FREQ}</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>00C800</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template Zaf iwx</host>
<key>iwx.channel_activetime[{#DEV},{#FREQ}]</key>
</item>
</graph_item>
<graph_item>
<sortorder>1</sortorder>
<drawtype>0</drawtype>
<color>C80000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template Zaf iwx</host>
<key>iwx.channel_busytime[{#DEV},{#FREQ}]</key>
</item>
</graph_item>
<graph_item>
<sortorder>2</sortorder>
<drawtype>0</drawtype>
<color>0000C8</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template Zaf iwx</host>
<key>iwx.channel_rxtime[{#DEV},{#FREQ}]</key>
</item>
</graph_item>
<graph_item>
<sortorder>3</sortorder>
<drawtype>0</drawtype>
<color>C800C8</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template Zaf iwx</host>
<key>iwx.channel_txtime[{#DEV},{#FREQ}]</key>
</item>
</graph_item>
</graph_items>
</graph_prototype>
</graph_prototypes>
<host_prototypes/>
</discovery_rule>
<discovery_rule>
<name>Wifi clients discovery</name>
<type>7</type>
<snmp_community/>
<snmp_oid/>
<key>iwx.clients_discovery</key>
<delay>120</delay>
<status>0</status>
<allowed_hosts/>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<delay_flex/>
<params/>
<ipmi_sensor/>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<filter>
<evaltype>0</evaltype>
<formula/>
<conditions/>
</filter>
<lifetime>1</lifetime>
<description/>
<item_prototypes>
<item_prototype>
<name>RX rate of station {#STATION} on {#DEV}</name>
<type>7</type>
<snmp_community/>
<multiplier>1</multiplier>
<snmp_oid/>
<key>iwx.client_rxrate[{#DEV},{#STATION}]</key>
<delay>300</delay>
<history>7</history>
<trends>14</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>bps</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>1048576</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>Wifi</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>Signal of station {#STATION} on {#DEV}</name>
<type>7</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>iwx.client_signal[{#DEV},{#STATION}]</key>
<delay>300</delay>
<history>7</history>
<trends>14</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>dB</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>Wifi</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>TX rate of station {#STATION} on {#DEV}</name>
<type>7</type>
<snmp_community/>
<multiplier>1</multiplier>
<snmp_oid/>
<key>iwx.client_txrate[{#DEV},{#STATION}]</key>
<delay>300</delay>
<history>7</history>
<trends>14</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>bps</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>1048576</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>Wifi</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
</item_prototypes>
<trigger_prototypes/>
<graph_prototypes>
<graph_prototype>
<name>Rates on client {#STATION}</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>00C800</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template Zaf iwx</host>
<key>iwx.client_rxrate[{#DEV},{#STATION}]</key>
</item>
</graph_item>
<graph_item>
<sortorder>1</sortorder>
<drawtype>0</drawtype>
<color>C80000</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template Zaf iwx</host>
<key>iwx.client_txrate[{#DEV},{#STATION}]</key>
</item>
</graph_item>
</graph_items>
</graph_prototype>
<graph_prototype>
<name>Station {#STATION} ignal level</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>00C800</color>
<yaxisside>0</yaxisside>
<calc_fnc>2</calc_fnc>
<type>0</type>
<item>
<host>Template Zaf iwx</host>
<key>iwx.client_signal[{#DEV},{#STATION}]</key>
</item>
</graph_item>
</graph_items>
</graph_prototype>
</graph_prototypes>
<host_prototypes/>
</discovery_rule>
<discovery_rule>
<name>Wifi neighbours discovery</name>
<type>7</type>
<snmp_community/>
<snmp_oid/>
<key>iwx.neigh_discovery</key>
<delay>3600</delay>
<status>0</status>
<allowed_hosts/>
<snmpv3_contextname/>
<snmpv3_securityname/>
<snmpv3_securitylevel>0</snmpv3_securitylevel>
<snmpv3_authprotocol>0</snmpv3_authprotocol>
<snmpv3_authpassphrase/>
<snmpv3_privprotocol>0</snmpv3_privprotocol>
<snmpv3_privpassphrase/>
<delay_flex/>
<params/>
<ipmi_sensor/>
<authtype>0</authtype>
<username/>
<password/>
<publickey/>
<privatekey/>
<port/>
<filter>
<evaltype>0</evaltype>
<formula/>
<conditions/>
</filter>
<lifetime>7</lifetime>
<description/>
<item_prototypes>
<item_prototype>
<name>Channel of neighbour {#BSS}({#SSID}) on {#DEV}</name>
<type>7</type>
<snmp_community/>
<multiplier>1</multiplier>
<snmp_oid/>
<key>iwx.neigh_channel[{#DEV},{#BSS}]</key>
<delay>300</delay>
<history>7</history>
<trends>30</trends>
<status>0</status>
<value_type>3</value_type>
<allowed_hosts/>
<units>Hz</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>1048576</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>Wifi</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>Signal level of neighbour {#BSS}({#SSID}) on {#DEV}</name>
<type>7</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>iwx.neigh_signal[{#DEV},{#BSS}]</key>
<delay>300</delay>
<history>7</history>
<trends>30</trends>
<status>0</status>
<value_type>0</value_type>
<allowed_hosts/>
<units>dB</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>Wifi</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
<item_prototype>
<name>SSID of neighbour {#BSS} on {#DEV}</name>
<type>7</type>
<snmp_community/>
<multiplier>0</multiplier>
<snmp_oid/>
<key>iwx.neigh_ssid[{#DEV},{#BSS}]</key>
<delay>300</delay>
<history>7</history>
<trends>0</trends>
<status>0</status>
<value_type>4</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>Wifi</name>
</application>
</applications>
<valuemap/>
<logtimefmt/>
<application_prototypes/>
</item_prototype>
</item_prototypes>
<trigger_prototypes/>
<graph_prototypes/>
<host_prototypes/>
</discovery_rule>
</discovery_rules>
<macros/>
<templates/>
<screens/>
</template>
</templates>
</zabbix_export>