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
  2025-07-21  9:20 ` Collectd openvpn plugin: failed to get data from: /var/run/ovpnserver.log Michael Tremer
  0 siblings, 2 replies; 3+ 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] 3+ 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
  2025-07-21  9:20 ` Collectd openvpn plugin: failed to get data from: /var/run/ovpnserver.log Michael Tremer
  1 sibling, 0 replies; 3+ 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] 3+ messages in thread

* Re: Collectd openvpn plugin: failed to get data from: /var/run/ovpnserver.log
  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
@ 2025-07-21  9:20 ` Michael Tremer
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Tremer @ 2025-07-21  9:20 UTC (permalink / raw)
  To: Robin Roevens; +Cc: development

Hello Robin,

Good catch. Your patch is what we needed.

Thank you. I just merged it into next.

-Michael

> On 19 Jul 2025, at 22:10, Robin Roevens <robin.roevens@disroot.org> wrote:
> 
> 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] 3+ messages in thread

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

Thread overview: 3+ 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
2025-07-21  9:20 ` Collectd openvpn plugin: failed to get data from: /var/run/ovpnserver.log Michael Tremer

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