From adrian_gh.popa at telekom.ro Fri Oct 4 09:20:26 2019 From: adrian_gh.popa at telekom.ro (Adrian Popa) Date: Fri, 4 Oct 2019 10:20:26 +0300 Subject: [smokeping-users] Adding InfluxDB support to smokeping Message-ID: Hello all! I know the list is mostly idle/shutting down, but I'm following the recommendation on github (HACKING) to discuss new potentially disruptive changes on the mailing list. If I get no replies I will open a ticket on github. We're using smokeping to do some automated network parameter measurements to check on the perceived service quality we offer our end customers. We're using remote probes/slaves to do measurements from different points in the network and aggregating the data on the master. I've also created some plugins in the past few years, so we want to stick with smokeping for the measurements. However, the web GUI is not really suitable for large scale data analysis. It's ok for historical analysis only. So, I'm planning on making a few (hopefully small) changes to smokeping to add support to write the measurements in an influxdb database, in addition to storing them as RRD. I hope to be able to push the changes (once they're working) to the main Smokeping branch. Having data in influxdb allows easier automated analysis (e.g. using an sql-like language to get the latest measurements for a destination from all the slaves, without having to parse the RRD files). It also opens up the possibility to have views exposed in Grafana and other more modern data visualization tools. Here's what I'm planning: 1. Allow the addition of custom configuration options to the config file so that those options can be mapped to influxdb tags (so that they are easily searchable in influxdb). For instance, something like this: + Hosts_in_region_A menu = Hosts in region A title = Hosts in region A ++ client1 host = 192.168.1.1 probe = fping influx_download = 100Mbps influx_upload = 10Mbps influx_service_type = FTTB For now, when I try to add configuration options that are not defined, I get the error: ERROR: /opt/smokeping/bin/../etc/config, line 144: unknown variable 'influx_download' I'm guessing I need to bypass or extend the parser so that such errors are ignored, or become warnings. Or, better yet, if I stick with the prefix influx_ I can make it accept any influx_ parameter, but complain on other typos (which is useful). I'll need to do some reading on the Grammar module... 2. Add a new config section that defines connectivity to influxdb (URL, user, password) 3. Add a hook inside update_rrds() to intercept the data before being written to the RRD (before or after the call to RRDs::update). Push the raw data to influxdb (either inline for efficiency, or with a new function call for readability). I'm not 100% certain that the update_rrds() from Smokeping.pm gets called for slave updates as well, or there is an equivalent in the CGI interface. I'm guessing it's the same, but I will do some tests when I get there. So - what are your thoughts on this? Are there better/easier ways of doing it? Thanks! From mbulik at altair.com Mon Oct 21 16:17:23 2019 From: mbulik at altair.com (Michal Bulik) Date: Mon, 21 Oct 2019 14:17:23 +0000 Subject: [smokeping-users] Apache2 error on Debian 10 Message-ID: <678bd45b-eeb3-ffa9-3d15-e6903699c1ab@altair.com> Hi, On a Debian 10.1 the smokeping web page appears as text only and in the apache2 error log there are plenty of error messages like this one : [Mon Oct 21 16:09:19.697208 2019] [cgid:error] [pid 5189:tid 139766859249408] [client 192.168.XXX.YYY:35808] AH01264: script not found or unable to stat: /usr/lib/cgi-bin/js, referer: http://./cgi-bin/smokeping.cgi?target= The error messages may also concern /usr/lib/cgi-bin/css. Is this related to something missing on the server ? Or maybe a security setting ? Thank you, Michal From mgrant at grant.org Tue Oct 29 12:48:32 2019 From: mgrant at grant.org (Michael Grant) Date: Tue, 29 Oct 2019 11:48:32 +0000 Subject: [smokeping-users] Host down / cleared repeatedly Message-ID: <201910291148.x9TBmRM7019174@bottom.networkguild.org> I have smokeping set up to fping a router. When the line is up, it works as expected. However, when the line is down, I get repeatedly messages that the line is down, then cleared, then down, then cleared. I run fping from the command line and it clearly shows the line is down: /usr/bin/fping -C 20 -q -B1 -r1 -4 -i10 1.2.3.4 1.2.3.4 : - - - - - - - - - - - - - - - - - - - - And this is the command which smokeping runs every 5 minutes. I added ?edgetrigger? to the Alert and then, I repeatedly get Cleared messages (half as many messages). It?s as if smokeping is automatically clearing the down state (without running fping) sooner than the 5 minute before fping is run again to recheck the router. My Probe file has: Any idea what?s going on? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mgrant at grant.org Tue Oct 29 12:52:37 2019 From: mgrant at grant.org (Michael Grant) Date: Tue, 29 Oct 2019 11:52:37 +0000 Subject: [smokeping-users] Host down / cleared repeatedly In-Reply-To: <201910291148.x9TBmRM7019174@bottom.networkguild.org> References: <201910291148.x9TBmRM7019174@bottom.networkguild.org> Message-ID: <201910291152.x9TBqWMv019519@bottom.networkguild.org> Apologies, accidentally hit Send too soon... My Probe file has: + FPing binary = /usr/bin/fping so really just using the defaults for fping which seems to send me mail every 5 minutes. Any idea what?s going on? -------------- next part -------------- An HTML attachment was scrubbed... URL: From peazy at peazy.net Thu Oct 31 02:37:55 2019 From: peazy at peazy.net (Rich Pease) Date: Wed, 30 Oct 2019 20:37:55 -0500 Subject: [smokeping-users] Smokeping with Apache2 running Raspberry Buster Message-ID: <5979d7be-7cd8-13f5-09dc-18e90970ff7d@peazy.net> I have installed smokeping on a Raspberry Pi running Buster and Apache Webserver.? The graphs work fine, but the web page looks half baked.? I have attached a screen capture.? Can anyone help with this?? I haven't been able to find the reason. Thank you, Rich -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot_2019-10-30 SmokePing Latency Page for DAS Repeaters.png Type: image/png Size: 53091 bytes Desc: not available URL: