Browse Source

admin/zabbix: Fix typos (found by codespell)

Signed-off-by: Stefan Weil <sw@weilnetz.de>
lilik-openwrt-22.03
Stefan Weil 9 years ago
parent
commit
cce7d58269
4 changed files with 5 additions and 5 deletions
  1. +2
    -2
      admin/zabbix/files/mac80211
  2. +1
    -1
      admin/zabbix/files/network
  3. +1
    -1
      admin/zabbix/files/wifi
  4. +1
    -1
      admin/zabbix/patches/015-daemon-foreground.patch

+ 2
- 2
admin/zabbix/files/mac80211 View File

@ -2,10 +2,10 @@
# If you want to know the exact meaning of an UserParameter, you can search in the ieee80211 standard: # If you want to know the exact meaning of an UserParameter, you can search in the ieee80211 standard:
# http://standards.ieee.org/getieee802/download/802.11-2012.pdf # http://standards.ieee.org/getieee802/download/802.11-2012.pdf
# exemple: for mac80211.ACKFailureCount search for dot11ACKFailureCount (page 2145)
# example: for mac80211.ACKFailureCount search for dot11ACKFailureCount (page 2145)
# mac80211 phy discovery (like 'phy0') # mac80211 phy discovery (like 'phy0')
# exemple: {"data":[{"{#PHY}":"phy0"}]}
# example: {"data":[{"{#PHY}":"phy0"}]}
# #
UserParameter=mac80211.phydiscovery,zabbix_helper_mac80211 discovery UserParameter=mac80211.phydiscovery,zabbix_helper_mac80211 discovery


+ 1
- 1
admin/zabbix/files/network View File

@ -1,7 +1,7 @@
#see http://wiki.openwrt.org/doc/howto/zabbix for ready to use templates #see http://wiki.openwrt.org/doc/howto/zabbix for ready to use templates
# network interface discovery # network interface discovery
# exemple: {"data":[{"{#IF}":"lo", "{#NET}":"loopback"},{"{#IF}":"br-lan", "{#NET}":"lan"},{"{#IF}":"eth0.1", "{#NET}":"wan"}]}
# example: {"data":[{"{#IF}":"lo", "{#NET}":"loopback"},{"{#IF}":"br-lan", "{#NET}":"lan"},{"{#IF}":"eth0.1", "{#NET}":"wan"}]}
# #
UserParameter=netowrt.discovery,lua -l uci -e 'x = uci.cursor(nil, "/var/state");list = "{\"data\":[";x:foreach("network", "interface", function(s) list=list.."{\"{#IF}\":\""..s.ifname.."\", \"{#NET}\":\""..s[".name"].."\"}," end); list=string.gsub(list,",$",""); print(list.."]}")' UserParameter=netowrt.discovery,lua -l uci -e 'x = uci.cursor(nil, "/var/state");list = "{\"data\":[";x:foreach("network", "interface", function(s) list=list.."{\"{#IF}\":\""..s.ifname.."\", \"{#NET}\":\""..s[".name"].."\"}," end); list=string.gsub(list,",$",""); print(list.."]}")'


+ 1
- 1
admin/zabbix/files/wifi View File

@ -1,7 +1,7 @@
#see http://wiki.openwrt.org/doc/howto/zabbix for ready to use templates #see http://wiki.openwrt.org/doc/howto/zabbix for ready to use templates
# wifi interface discovery # wifi interface discovery
# exemple: {"data":[{"{#IF}":"wlan0", "{#MODE}":"ap", "{#SSID}":"Openwrt", "{#NET}":"lan", "{#DEV}":"radio0", "{#ENC}":"psk2+ccmp", "{#TYPE}":"mac80211", "{#HWMODE}":"11ng", "{#CHANNEL}":"11", "{#BSSID}":"xx:xx:xx:xx:xx:xx"}]}
# example: {"data":[{"{#IF}":"wlan0", "{#MODE}":"ap", "{#SSID}":"Openwrt", "{#NET}":"lan", "{#DEV}":"radio0", "{#ENC}":"psk2+ccmp", "{#TYPE}":"mac80211", "{#HWMODE}":"11ng", "{#CHANNEL}":"11", "{#BSSID}":"xx:xx:xx:xx:xx:xx"}]}
# ubus call only work as root so you need to run zabbix as root to use wifi.ifdiscovery # ubus call only work as root so you need to run zabbix as root to use wifi.ifdiscovery
UserParameter=wifi.ifdiscovery, lua -l ubus -l iwinfo -e 'u=ubus.connect();list="{\"data\":[";stat=u:call("network.wireless", "status", {});for dev, dev_table in pairs(stat) do for i, iface in pairs(dev_table["interfaces"]) do c=iface["config"];i=iface["ifname"];t=iwinfo.type(i);iw=iwinfo[t];e = iw.encryption(i);e = e and e.description or "None";n = table.concat(c["network"]," ");list=list.."{\"{#IF}\":\""..i.."\", \"{#MODE}\":\""..iw.mode(i).."\", \"{#SSID}\":\""..c["ssid"].."\", \"{#NET}\":\""..n.."\", \"{#DEV}\":\""..dev.."\", \"{#ENC}\":\""..e.."\", \"{#TYPE}\":\""..t.."\", \"{#HWMODE}\":\"".."?".."\", \"{#CHANNEL}\":\""..iw.channel(i).."\", \"{#BSSID}\":\""..iw.bssid(i).."\"},";end;end;list=string.gsub(list,",$","");print(list.."]}")' UserParameter=wifi.ifdiscovery, lua -l ubus -l iwinfo -e 'u=ubus.connect();list="{\"data\":[";stat=u:call("network.wireless", "status", {});for dev, dev_table in pairs(stat) do for i, iface in pairs(dev_table["interfaces"]) do c=iface["config"];i=iface["ifname"];t=iwinfo.type(i);iw=iwinfo[t];e = iw.encryption(i);e = e and e.description or "None";n = table.concat(c["network"]," ");list=list.."{\"{#IF}\":\""..i.."\", \"{#MODE}\":\""..iw.mode(i).."\", \"{#SSID}\":\""..c["ssid"].."\", \"{#NET}\":\""..n.."\", \"{#DEV}\":\""..dev.."\", \"{#ENC}\":\""..e.."\", \"{#TYPE}\":\""..t.."\", \"{#HWMODE}\":\"".."?".."\", \"{#CHANNEL}\":\""..iw.channel(i).."\", \"{#BSSID}\":\""..iw.bssid(i).."\"},";end;end;list=string.gsub(list,",$","");print(list.."]}")'


+ 1
- 1
admin/zabbix/patches/015-daemon-foreground.patch View File

@ -39,7 +39,7 @@
+ * Parameters: allow_root - allow root permission for application * + * Parameters: allow_root - allow root permission for application *
+ * user - user on the system to which to drop the * + * user - user on the system to which to drop the *
+ * privileges * + * privileges *
+ * run_foreground - should it close its controling tty *
+ * run_foreground - should it close its controlling tty *
* * * *
* Author: Alexei Vladishev * * Author: Alexei Vladishev *
* * * *


Loading…
Cancel
Save