* added millivolts to tasmota_ to get ANALOG/Range value
* allow to print_thresholds in tasmota plugin
* Experimented with different graph settings to obtain best axis labels
If voltage limits were eg 11 and 14 volts, the labels and limits
default terribly to 10 to 20, and if you fix limits, then labels read
"11, 11, 11, 12, 12, 12, 13, ...". alt-y-grid and alt-autoscale seem
to improve this a lot
* get_value -> get_status to better reflect what it's doing
* millivolts() forgot to account for invalid value "U"
---------
Co-authored-by: Tim Connors <tconnors@rather.puzzling.org>
* add multiplier_fetch that's much like common_fetch
* moved multiplier_fetch functionality to common_fetch
* power_emulated_multiplier env var added and Documented
---------
Co-authored-by: Tim Connors <tconnors@rather.puzzling.org>
system default python is now usually python3 - better make our code
compliant with it
`ceph` CLI itself has some slightly different usage and outputs
jq used instead of cut in a few places, because was easier to work out
what the original commands were intending to grab, now that those
outputs have moved location. Yes, jq is a new dependency for some of
the plugins, but it was already implicitly depended upon in ceph_osd
plugin
For whatever reason, sometimes linebreaks are only denoted as \n in the
querry-result. This lead to the temperature RegEx matching the dew point. This
caused the temperature to be reported the same as the dew point. These changes
should make the RegEx more specific and work consistently, no matter if
linebreaks are actual linebreaks or just \n.
This adds a plugin for relative humidity, based on the weather_press_ and
weather_temp_ plugins. It's basically a copy of these two plugins with only
minor adjustments.
The read function on an urllib urlopen object returns an object as a response.
Regular expressions using re can't be used on such objects. This causes
the following error:
```
Traceback (most recent call last):
File "/tmp/weather/./weather_press_LOWW", line 43, in <module>
hpa = re_hpa.findall(txt)[0]
TypeError: cannot use a string pattern on a bytes-like object
```
This can be easily fixed, because said object can simply be cast to string.
Which is, what this patch does for both the US NOAA based plugins.
add option verify to enable graphing the number of successful responses.
if verify is enabled (default it is not) then a warning is emitted when
we do not get a response for all queries and critical if no query
succeeded.
add option timeout to be able to limit the time the plugin takes for
unresponsive servers. old max time was 75 seconds times 20 (25minutes).
new default max is 30 seconds timeout times 20 (10 minutes). with
setting a timeout of a few seconds this can now be reduced even more.
added warnings if average and or mean get close to the timeout.
Doesn't work with '--write-mostly' drives like sde1 in :
md94 : active raid1 sde1[1](W)(S) sdd1[2]
I assume to remove everything behind the opening bracket
* lxc_guests2: Enhanced and fixed lxc_guests plugin
- Working with systemd and cgroup version 2 (tested on debian bullseye and debian booksworm)
- Fixed processes (with cgroup version 2)
- Simplified labels
- Simplified memory usage graph
- Added CPU usage in percent (using systemd-cgtop)
- Added Tasks
- No cgrouppath guessing
* Rename lxc_guests2 to lxc_guests to replace old plugin
---------
Co-authored-by: Sebastian L <sl@momou.ch>
* deye: fix production calculation
* solarman: add new plugins
* fix labels
* move api check
* Typo
* deye: quoting
* unfiy labels
* Typo
* Test, set Value to zero if api does not find device
* dont show errors
* Revert "dont show errors"
This reverts commit dc71783f93.
* Revert "Test, set Value to zero if api does not find device"
This reverts commit fa1853955c.
* dependency check
* remove exports
* send 0 instead of U
* dependency check
* remove exports
* check dependency removed
* send U when API isnt reachable
* add AC graphs
* Typo
* Typo
* Get all Panels
* remove var
* Typo
* Typo
* Typo
* packe Logik in Funktionen; Frage Daten im Fehlerfall mehrfach ab
* Zähler umgebaut
* Remove Panel Plugin
* deactivate panel 3+4
* api reachable check
* unknown limits
* warnings
* area
* deye: printf http://munin-monitoring.org/faq#q-why-does-my-users-plugin-report-floating-point-numbers
* deaktiviere graph scaling
* setze base
* schreibe retries
* graph opts
* statefile
* deye statefile
* x
* Info
* add Plugin for Deye Solar Inverters
* better Titles
* fill Area
* Typo
* check if Inverter is reachable
* even better Titles
* changed Header to perl-Style
* Typo
* Typos
* Fix Values
* Set yield to unkown when offline
* Escaping
Default for Python 3 is to return byte-objects, not string. This will cause the plugin to fail with an error: "TypeError: a bytes-like object is required, not 'str'".
Fixed by decoding for UTF8.
This actually silences InsecureRequestWarning.
The Arris SB8200 has 32 downstream channels, but in my experience
report more than that, but the "extra" channels report modulation as
"Other" instead of QAM256. This filters those channels, since they seem
to drive the error count up, but don't provide data.
Signed-off-by: Nathaniel Clark <Nathaniel.Clark@misrule.us>
It doesn't work (looks like calling outdated python lib) and had the same
funcionality than the newer transmission_ plugin. It is quite confusing now
they are in the same directory, but the documentation (README) mentions
only the other one.
When linting this script, this will always fire. This is because shellcheck
only does static code analysis and thus can not determine the filepath.
References:
- https://www.shellcheck.net/wiki/SC1090
This should help with unreachable hosts, as the plugin can take more than
10 minutes to complete otherwise. These changes should be fully backwards
compatible, since the default is no timeout set, so it acts the same way
as before.
Changes:
- Introduce "timeout" configuration
- Only run timeout when configured
- Document usage of new configuration
Dovecot has a new "stats" command, and the version that this plugin
works with is now called as "doveadm oldstats", so try to adapt the
command based on the dovecot version.
Fixes#1327
This is a multigraph plugin which graphs various stats from gpsd. Only
enough statistics are graphed to show the _quality_ of the fix, not the
actual fix itself (attempting to protect privacy).
GPSd will report various messages asynchronously (that is, the messages
may come in any order) so, during the collect phase, we emit values as
and when the messages arrive. This should provide the most expedient
response.
It seems the default base URL stopped working, so a locally-resolvable
address or name needs to be provided instead.
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
fixed graph failure for VM names starting with digits
used "Validate filednames" Python stanza from docs to improve
clean_vm_name functions, helping graph creations for VM with names
starting with digits, like "150-121-Apache".
remember: each data source in a plugin must be identified by a field
name (in this case VM names). The characters must be [a-zA-Z0-9_],
while the first character must be [a-zA-Z_].