public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* Collectd openvpn plugin: failed to get data from: /var/run/ovpnserver.log
@ 2025-07-19 21:10 Robin Roevens
  2025-07-19 21:10 ` [PATCH] collectd: Openvpn-2.6: fix statusfile name Robin Roevens
  0 siblings, 1 reply; 2+ messages in thread
From: Robin Roevens @ 2025-07-19 21:10 UTC (permalink / raw)
  To: development; +Cc: Robin Roevens

Hi all

I noticed this error in the systemlog of my ipfire core 197 test
machine:
---
Jul 19 23:44:05 ipfire-test collectd[2452]: openvpn plugin: failed to get data from: /var/run/ovpnserver.log
Jul 19 23:44:05 ipfire-test collectd[2452]: read-function of plugin `openvpn/ovpnserver.log' failed. Will suspend it for 240.000 seconds.
---

I think this is fixed by changing collectd.vpn config using the new /var/run/openvpn-rw.log, so I created a patch for that.
I don't know if there is functionality in collectd to use the new helper
binary /usr/local/bin/openvpnctrl output instead of the file? If that is
the case, that is then probably a better solution than my patch.

Regards
Robin


-- 
Dit bericht is gescanned op virussen en andere gevaarlijke
inhoud door MailScanner en lijkt schoon te zijn.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] collectd: Openvpn-2.6: fix statusfile name
  2025-07-19 21:10 Collectd openvpn plugin: failed to get data from: /var/run/ovpnserver.log Robin Roevens
@ 2025-07-19 21:10 ` Robin Roevens
  0 siblings, 0 replies; 2+ messages in thread
From: Robin Roevens @ 2025-07-19 21:10 UTC (permalink / raw)
  To: development; +Cc: Robin Roevens

Signed-off-by: Robin Roevens <robin.roevens@disroot.org>
---
 config/collectd/collectd.vpn | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/collectd/collectd.vpn b/config/collectd/collectd.vpn
index ca92947f8..51f70e39d 100644
--- a/config/collectd/collectd.vpn
+++ b/config/collectd/collectd.vpn
@@ -1,5 +1,5 @@
 LoadPlugin openvpn
 
 <Plugin openvpn>
-StatusFile "/var/run/ovpnserver.log"
+StatusFile "/var/run/openvpn-rw.log"
 </Plugin>
-- 
2.50.1


-- 
Dit bericht is gescanned op virussen en andere gevaarlijke
inhoud door MailScanner en lijkt schoon te zijn.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-07-19 21:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-19 21:10 Collectd openvpn plugin: failed to get data from: /var/run/ovpnserver.log Robin Roevens
2025-07-19 21:10 ` [PATCH] collectd: Openvpn-2.6: fix statusfile name Robin Roevens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox