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

freebox-*-stations: fix [WARNING] munin_set_var_loc #41

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

LudovicRousseau
Copy link
Contributor

It looks like munin does not like names with " ".
So we replace " " by "_".

The error were:
2020/06/27 14:46:35 [WARNING] munin_set_var_loc: Setting unknown option 'Wistron' at xxx:freebox_wifi_stations

The wifi name of th device was:
"Wistron Neweb Corporation (B8:B7:F1:0B:A5:38)"

The output is now:
Wistron_Neweb_Corporation_(B8:B7:F1:0B:A5:38).value 1

It looks like munin does not like names with " ".
So we replace " " by "_".

The error were:
2020/06/27 14:46:35 [WARNING] munin_set_var_loc: Setting unknown option 'Wistron' at xxx:freebox_wifi_stations

The wifi name of th device was:
"Wistron Neweb Corporation (B8:B7:F1:0B:A5:38)"

The output is now:
Wistron_Neweb_Corporation_(B8:B7:F1:0B:A5:38).value 1
The problem was:
Error output from freebox-switch-stations1:
 Traceback (most recent call last):
   File "/etc/munin/plugins/freebox-switch-stations1", line 587, in <module>
     print_config()
   File "/etc/munin/plugins/freebox-switch-stations1", line 155, in print_config
     print('{}.label {}'.format(station, stations[station_safe]['hostname']))
 KeyError: 'PCS_Systemtechnik_GmbH_(08:00:27:15:43:BF)'
Service 'freebox-switch-stations1' exited with status 1/0.
freebox.py:164: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if self.root_ca is '':
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

Successfully merging this pull request may close these issues.

1 participant