Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zabbix wifi.ifdiscovery not working? #271

Closed
A-xis opened this issue Sep 3, 2014 · 3 comments
Closed

Zabbix wifi.ifdiscovery not working? #271

A-xis opened this issue Sep 3, 2014 · 3 comments

Comments

@A-xis
Copy link

A-xis commented Sep 3, 2014

Hello guys,

I have a little problem with the wifi.ifdiscovery userparameter.

When doing it on my AP, it works fine :
root@test-ap01:~# zabbix_agentd -t wifi.ifdiscovery
wifi.ifdiscovery [t|{"data":[{"{#IF}":"wlan0", "{#MODE}":"ap", "{#SSID}":"ens-invites", "{#NET}":"pfinline", "{#DEV}":"radio0", "{#ENC}":"none", "{#TYPE}":"mac80211", "{#HWMODE}":"11ng", "{#CHANNEL}":"11", "{#BSSID}":"DC:9F:DB:06:DA:CD"},{"{#IF}":"wlan0-1", "{#MODE}":"ap", "{#SSID}":"eduspot", "{#NET}":"eduspot", "{#DEV}":"radio0", "{#ENC}":"none", "{#TYPE}":"mac80211", "{#HWMODE}":"11ng", "{#CHANNEL}":"11", "{#BSSID}":"DE:9F:DB:06:DA:CD"},{"{#IF}":"wlan0-2", "{#MODE}":"ap", "{#SSID}":"eduroam", "{#NET}":"eduroam", "{#DEV}":"radio0", "{#ENC}":"wpa2", "{#TYPE}":"mac80211", "{#HWMODE}":"11ng", "{#CHANNEL}":"11", "{#BSSID}":"DA:9F:DB:06:DA:CD"}]}]

But when doing it on zabbix server ...
zabbix ~ #zabbix_get -s test-ap01.spv.ens-cachan.fr -p 10050 -k "wifi.ifdiscovery"

zabbix ~ #

Nothing !?
I didn't find any "verbose" options for zabbix_get, so, I don't know what's wrong.

Hope you can help me.

@champtar
Copy link
Member

champtar commented Sep 3, 2014

hi @A-xis
to use wifi.ifdiscovery, agent must run as root (it's doing ubus call)
https://github.com/openwrt/packages/blob/master/admin/zabbix/files/wifi#L5

@A-xis
Copy link
Author

A-xis commented Sep 3, 2014

Ok, so just need to change "AllowRoot=0"

Will try it.

EDIT: And that works, so Iclose. Thank for the help <3

@champtar
Copy link
Member

champtar commented Sep 3, 2014

don't forget to close the issue when it's ok

@A-xis A-xis closed this as completed Sep 3, 2014
champtar pushed a commit to champtar/packages that referenced this issue Jul 7, 2019
olsrd: update to v0.9.6 - contains important fixes
jmarcet added a commit to jmarcet/packages that referenced this issue Aug 3, 2021
- BACKWARDS COMPATIBILITY:

  - Deprecated the distro.linux_distribution() function. Use distro.id(), distro.version() and distro.name() instead [openwrt#296]
  - Deprecated Python 2.7, 3.4 and 3.5 support. Further releases will only support Python 3.6+

- ENHANCEMENTS:

  - Added type hints to distro module [openwrt#269]
  - Added __version__ for checking distro version [openwrt#292]
  - Added support for arbitrary rootfs via the root_dir parameter [openwrt#247]
  - Added the --root-dir option to CLI [openwrt#161]
  - Added fallback to /usr/lib/os-release when /etc/os-release isn't available [openwrt#262]

- BUG FIXES:

  - Fixed subprocess.CalledProcessError when running lsb_release [openwrt#261]
  - Ignore /etc/iredmail-release file while parsing distribution [openwrt#268]
  - Use a binary file for /dev/null to avoid TextIOWrapper overhead [openwrt#271]

- RELEASE:

 - Moved repository from nir0s/distro to python-distro/distro on GitHub.

Signed-off-by: Javier Marcet <javier@marcet.info>
jmarcet added a commit to jmarcet/packages that referenced this issue Aug 3, 2021
- BACKWARDS COMPATIBILITY:

  - Deprecated the distro.linux_distribution() function. Use
  distro.id(), distro.version() and distro.name() instead [openwrt#296]
  - Deprecated Python 2.7, 3.4 and 3.5 support. Further releases will
  only support Python 3.6+

- ENHANCEMENTS:

  - Added type hints to distro module [openwrt#269]
  - Added __version__ for checking distro version [openwrt#292]
  - Added support for arbitrary rootfs via the root_dir parameter
  [openwrt#247]
  - Added the --root-dir option to CLI [openwrt#161]
  - Added fallback to /usr/lib/os-release when /etc/os-release isn't
  available [openwrt#262]

- BUG FIXES:

  - Fixed subprocess.CalledProcessError when running lsb_release
  [openwrt#261]
  - Ignore /etc/iredmail-release file while parsing distribution
  [openwrt#268]
  - Use a binary file for /dev/null to avoid TextIOWrapper overhead
  [openwrt#271]

- RELEASE:

 - Moved repository from nir0s/distro to python-distro/distro on
 GitHub.

Signed-off-by: Javier Marcet <javier@marcet.info>
jmarcet added a commit to jmarcet/packages that referenced this issue Aug 3, 2021
- BACKWARDS COMPATIBILITY:

  - Deprecated the distro.linux_distribution() function. Use
  distro.id(), distro.version() and distro.name() instead [openwrt#296]
  - Deprecated Python 2.7, 3.4 and 3.5 support. Further releases will
  only support Python 3.6+

- ENHANCEMENTS:

  - Added type hints to distro module [openwrt#269]
  - Added __version__ for checking distro version [openwrt#292]
  - Added support for arbitrary rootfs via the root_dir parameter
  [openwrt#247]
  - Added the --root-dir option to CLI [openwrt#161]
  - Added fallback to /usr/lib/os-release when /etc/os-release isn't
  available [openwrt#262]

- BUG FIXES:

  - Fixed subprocess.CalledProcessError when running lsb_release
  [openwrt#261]
  - Ignore /etc/iredmail-release file while parsing distribution
  [openwrt#268]
  - Use a binary file for /dev/null to avoid TextIOWrapper overhead
  [openwrt#271]

- RELEASE:

 - Moved repository from nir0s/distro to python-distro/distro on
 GitHub.

Signed-off-by: Javier Marcet <javier@marcet.info>
BKPepe pushed a commit that referenced this issue Aug 3, 2021
- BACKWARDS COMPATIBILITY:

  - Deprecated the distro.linux_distribution() function. Use
  distro.id(), distro.version() and distro.name() instead [#296]
  - Deprecated Python 2.7, 3.4 and 3.5 support. Further releases will
  only support Python 3.6+

- ENHANCEMENTS:

  - Added type hints to distro module [#269]
  - Added __version__ for checking distro version [#292]
  - Added support for arbitrary rootfs via the root_dir parameter
  [#247]
  - Added the --root-dir option to CLI [#161]
  - Added fallback to /usr/lib/os-release when /etc/os-release isn't
  available [#262]

- BUG FIXES:

  - Fixed subprocess.CalledProcessError when running lsb_release
  [#261]
  - Ignore /etc/iredmail-release file while parsing distribution
  [#268]
  - Use a binary file for /dev/null to avoid TextIOWrapper overhead
  [#271]

- RELEASE:

 - Moved repository from nir0s/distro to python-distro/distro on
 GitHub.

Signed-off-by: Javier Marcet <javier@marcet.info>
utoni pushed a commit to utoni/openwrt-packages that referenced this issue Jan 21, 2022
- BACKWARDS COMPATIBILITY:

  - Deprecated the distro.linux_distribution() function. Use
  distro.id(), distro.version() and distro.name() instead [openwrt#296]
  - Deprecated Python 2.7, 3.4 and 3.5 support. Further releases will
  only support Python 3.6+

- ENHANCEMENTS:

  - Added type hints to distro module [openwrt#269]
  - Added __version__ for checking distro version [openwrt#292]
  - Added support for arbitrary rootfs via the root_dir parameter
  [openwrt#247]
  - Added the --root-dir option to CLI [openwrt#161]
  - Added fallback to /usr/lib/os-release when /etc/os-release isn't
  available [openwrt#262]

- BUG FIXES:

  - Fixed subprocess.CalledProcessError when running lsb_release
  [openwrt#261]
  - Ignore /etc/iredmail-release file while parsing distribution
  [openwrt#268]
  - Use a binary file for /dev/null to avoid TextIOWrapper overhead
  [openwrt#271]

- RELEASE:

 - Moved repository from nir0s/distro to python-distro/distro on
 GitHub.

Signed-off-by: Javier Marcet <javier@marcet.info>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants