By default, Net::Ping will report a good attempt even when the remote end returns "connection refused". By enabling service_check, the connection must have been established.
See https://perldoc.perl.org/Net/Ping.html#Functions
The plugins beboxsync, beboxstats and beboxstats.expect are obsolete.
The ISP that sold the Bebox [Be*] was acquired by another provider
more than five years ago so it is very unlikely that anybody is using
these plugins any more.
The plugin tg585v7_ is a suitable replacement as the Bebox and TG585
are both made by Technicolor [formerly Thompson] and run on the same
platform. tg585v7_ also seems to be much more comprehensive than the
bebox plugins.
Closes: #1023
Thanks, troffasky
The HostDenied field is renamed to ssh. To preserve existing data,
# cd /var/lib/munin/example.net
# mv hostname-hostsdeny-HostsDenied-g.rrd hostname-hostsdeny-sshd-g.rrd
This refactor incidentally also fixes a bug where empty or commented-out
lines where also counted.
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
The API tends to be unstable and often fail with a 500,
which makes the plugin disappear. Keeping a cache allows
to prevent some flickering of the graph.
This allows us to further split config data-fetching from live
data-fetching, thus removing the need to support DIRTYCONFIG.
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
We need to set the date for all plugins, otherwise the lagging `daily`
one is assumed for all, and confuses spoolfetch and other time-based
sanity checks.
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
Also make the daily graph more flexible, by always reporting the second
last value (presumably the previous, but sometimes the API lags a bit,
and actively requesting by date result in never reporting some late
data).
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
* Add support for StartTLS in ssl-certificate-expiry
Added support for StartTLS in ssl-certificate-expiry
Use env.services foo.example.net_25_smtp to enable StartTLS on a SMTP server.
- SYSFS: buster has an existing /sys/fs/cgroup/systemd/lxc/$guest_name/tasks,
which does not contain anything useful, so checking
/sys/fs/cgroup/cpuacct/lxc/$guest_name/tasks first.
- spurious blank space for lxc_net and lxc_ram in here document
With Debian 10 the command "ntpq -c iostats -c sysstats" produces one empty line.
The additional if condition tackles this.
Traceback (most recent call last):
File "/etc/munin/plugins/ntp_packets", line 91, in <module>
stats[line.split(':')[0]] = int(line.split(':')[1])
IndexError: list index out of range