From gabster at lelutin.ca Tue Dec 10 18:47:38 2019 From: gabster at lelutin.ca (Gabriel Filion) Date: Tue, 10 Dec 2019 12:47:38 -0500 Subject: [smokeping-users] Apache2 error on Debian 10 In-Reply-To: <678bd45b-eeb3-ffa9-3d15-e6903699c1ab@altair.com> References: <678bd45b-eeb3-ffa9-3d15-e6903699c1ab@altair.com> Message-ID: <1d79432b-d06b-2136-2737-b128d9d8fec5@lelutin.ca> Hello Michal, sorry to answer you only two months later On 2019-10-21 10:17 a.m., Michal Bulik wrote: > 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= targets> > > 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 ? There was a bug report[0] about this on the debian package, and I've committed a change to patches so that the css and js would show up correctly, but the fix was not yet pushed out to a new package. [0]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=929515 in the meantime you can change your URL to use the /smokeping alias instead of /cgi-bin -- this would look like the following for the main page: http(s)://./smokeping I'll see if I can push out the fix to debian soon so that URLs with /cgi-bin/smokeping.cgi show up correctly again (this would remove the need to change all URLs everywhere if you've linked to that from many places) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From gabster at lelutin.ca Tue Dec 10 18:54:18 2019 From: gabster at lelutin.ca (Gabriel Filion) Date: Tue, 10 Dec 2019 12:54:18 -0500 Subject: [smokeping-users] Smokeping with Apache2 running Raspberry Buster In-Reply-To: <5979d7be-7cd8-13f5-09dc-18e90970ff7d@peazy.net> References: <5979d7be-7cd8-13f5-09dc-18e90970ff7d@peazy.net> Message-ID: <78efdc56-7a5e-66d2-4de8-18d9864d8e01@lelutin.ca> Hi Rich, On 2019-10-30 9:37 p.m., Rich Pease wrote: > 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. I believe you're experimenting the same issue as the one described by Michal in the thread "Apache2 error on Debian 10". I've answered there about what's happening so you can take a look at the workaround. also I'll try and push a new package to debian very soon since this seems to bite more folks than I would hope (sorry that I broke display when calling the cgi directly!). -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: OpenPGP digital signature URL: From matthew.watkins at piksel.com Tue Dec 17 15:36:12 2019 From: matthew.watkins at piksel.com (Matthew Watkins) Date: Tue, 17 Dec 2019 14:36:12 +0000 Subject: [smokeping-users] SmokePing: Probes Other Than FPing in Config File Message-ID: Hi, I have just installed smokeping-2.7.3 from source on two new CentOS 7 servers. The build has proceeded without problems, and I appear to have all dependencies installed. If I add configuration elements for probes other than FPing, I get the same error message: ERROR: /opt/smokeping/etc/config, line 138: probe must be defined before the host or any probe variables This looks like a parsing error, or something in the guts of the Perl stack (which I have no clue how to debug). It seems to be the same problem that is described here: https://github.com/linuxserver/docker-smokeping/issues/77 The output from my build, along with the configuration file, are below (with some redactions). I?ve been trying to strip non-essential elements out of the configuration file, but so far no joy. Anybody out there got any ideas? - Matt [root at REDACTED02 ~]# cd smokeping-2.7.3 [root at REDACTED02 smokeping-2.7.3]# make clean Making clean in thirdparty make[1]: Entering directory `/root/smokeping-2.7.3/thirdparty' ls -1 | grep -v Makefile | grep -v bin | grep -v CPAN | xargs rm -rf make[1]: Leaving directory `/root/smokeping-2.7.3/thirdparty' Making clean in doc make[1]: Entering directory `/root/smokeping-2.7.3/doc' test -z "*.[1357] smokeping_examples.pod smokeping_config.pod examples/*" || rm -f *.[1357] smokeping_examples.pod smokeping_config.pod examples/* make[1]: Leaving directory `/root/smokeping-2.7.3/doc' Making clean in etc make[1]: Entering directory `/root/smokeping-2.7.3/etc' make[1]: Nothing to be done for `clean'. make[1]: Leaving directory `/root/smokeping-2.7.3/etc' Making clean in htdocs make[1]: Entering directory `/root/smokeping-2.7.3/htdocs' make[1]: Nothing to be done for `clean'. make[1]: Leaving directory `/root/smokeping-2.7.3/htdocs' Making clean in lib make[1]: Entering directory `/root/smokeping-2.7.3/lib' make[1]: Nothing to be done for `clean'. make[1]: Leaving directory `/root/smokeping-2.7.3/lib' Making clean in bin make[1]: Entering directory `/root/smokeping-2.7.3/bin' make[1]: Nothing to be done for `clean'. make[1]: Leaving directory `/root/smokeping-2.7.3/bin' make[1]: Entering directory `/root/smokeping-2.7.3' make[1]: Nothing to be done for `clean-am'. make[1]: Leaving directory `/root/smokeping-2.7.3? [root at REDACTED02 smokeping-2.7.3]# ./configure --prefix=/opt/smokeping checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether UID '0' is supported by ustar format... yes checking whether GID '0' is supported by ustar format... yes checking how to create a ustar tar archive... gnutar checking whether to enable maintainer-specific portions of Makefiles... no checking whether make supports nested variables... (cached) yes checking for perl... /usr/bin/perl checking for curl... /usr/bin/curl checking for wget... /usr/bin/wget checking for perl version greater than or equal to 5.10.1... ok checking for sed... /usr/bin/sed checking for grep... /usr/bin/grep checking for echo... /usr/bin/echo checking for ln... /usr/bin/ln checking for cp... /usr/bin/cp checking for rm... /usr/bin/rm checking for rmdir... /usr/bin/rmdir checking for mkdir... /usr/bin/mkdir checking for find... /usr/bin/find checking for sendmail... /usr/sbin/sendmail checking for gnroff... /usr/bin/gnroff checking for gnumake... no checking for gmake... /usr/bin/gmake checking checking for gnu make availablility... /usr/bin/gmake is GNU make checking checking for RRDs perl module... Ok checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating bin/Makefile config.status: creating doc/Makefile config.status: creating htdocs/Makefile config.status: creating etc/Makefile config.status: creating lib/Makefile config.status: creating thirdparty/Makefile config.status: creating etc/config.dist ** Ready to install Smokeping ****************************** Settings: PERL5LIB = not set PERL = /usr/bin/perl The Smokeping Makefiles use GNU make functionality. Continue installation with /usr/bin/gmake install [root at REDACTED02 smokeping-2.7.3]# make install Making install in thirdparty make[1]: Entering directory `/root/smokeping-2.7.3/thirdparty' GEN touch Successfully installed FCGI-0.78 Successfully installed HTML-Tagset-3.20 Successfully installed HTML-Parser-3.72 Successfully installed CGI-4.40 (upgraded from 3.59) Successfully installed CGI-Fast-2.13 (upgraded from 1.09) Successfully installed Config-Grammar-1.12 Successfully installed Socket6-0.29 Successfully installed Net-SSLeay-1.85 Successfully installed IO-Socket-SSL-2.060 Successfully installed Digest-HMAC-1.03 Successfully installed Net-Telnet-3.04 Successfully installed Net-OpenSSH-0.78 Successfully installed Net-SNMP-v6.0.1 Successfully installed Convert-ASN1-0.27 Successfully installed perl-ldap-0.65 Successfully installed IO-Socket-IP-0.39 Successfully installed Net-DNS-1.19 Successfully installed IO-Tty-1.12 Successfully installed URI-1.74 Successfully installed LWP-MediaTypes-6.02 Successfully installed Encode-Locale-1.05 Successfully installed IO-HTML-1.001 Successfully installed HTTP-Date-6.02 Successfully installed HTTP-Message-6.18 Successfully installed File-Listing-6.04 Successfully installed HTTP-Negotiate-6.01 Successfully installed HTTP-Daemon-6.01 Successfully installed Try-Tiny-0.30 Successfully installed Net-HTTP-6.18 Successfully installed HTTP-Cookies-6.04 Successfully installed WWW-RobotRules-6.02 Successfully installed libwww-perl-6.36 Successfully installed ExtUtils-MakeMaker-7.34 (upgraded from 6.63_02) Successfully installed Net-IP-1.26 Successfully installed Data-HexDump-0.02 Successfully installed Authen-Radius-0.29 Successfully installed Path-Tiny-0.108 37 distributions installed GEN touch make[2]: Entering directory `/root/smokeping-2.7.3/thirdparty' make[2]: Nothing to be done for `install-exec-am'. make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/root/smokeping-2.7.3/thirdparty' make[1]: Leaving directory `/root/smokeping-2.7.3/thirdparty' Making install in doc make[1]: Entering directory `/root/smokeping-2.7.3/doc' GEN smokeping.1 GEN smokeping_cgi.1 GEN tSmoke.1 GEN Smokeping_probes_EchoPingSmtp.pod GEN Smokeping_probes_EchoPingSmtp.3 GEN Smokeping_probes_OpenSSHJunOSPing.pod GEN Smokeping_probes_OpenSSHJunOSPing.3 GEN Smokeping_probes_skel.pod GEN Smokeping_probes_skel.3 GEN Smokeping_probes_EchoPingWhois.pod GEN Smokeping_probes_EchoPingWhois.3 GEN Smokeping_probes_EchoPingHttp.pod GEN Smokeping_probes_EchoPingHttp.3 GEN Smokeping_probes_TelnetIOSPing.pod GEN Smokeping_probes_TelnetIOSPing.3 GEN Smokeping_probes_EchoPingDiscard.pod GEN Smokeping_probes_EchoPingDiscard.3 GEN Smokeping_probes_CiscoRTTMonDNS.pod GEN Smokeping_probes_CiscoRTTMonDNS.3 GEN Smokeping_probes_IOSPing.pod GEN Smokeping_probes_IOSPing.3 GEN Smokeping_probes_AnotherCurl.pod GEN Smokeping_probes_AnotherCurl.3 GEN Smokeping_probes_FPing.pod GEN Smokeping_probes_FPing.3 GEN Smokeping_probes_TraceroutePing.pod GEN Smokeping_probes_TraceroutePing.3 GEN Smokeping_probes_TacacsPlus.pod GEN Smokeping_probes_TacacsPlus.3 GEN Smokeping_probes_RemoteFPing.pod GEN Smokeping_probes_RemoteFPing.3 GEN Smokeping_probes_Curl.pod GEN Smokeping_probes_Curl.3 GEN Smokeping_probes_base.pod GEN Smokeping_probes_base.3 GEN Smokeping_probes_EchoPingIcp.pod GEN Smokeping_probes_EchoPingIcp.3 GEN Smokeping_probes_Qstat.pod GEN Smokeping_probes_Qstat.3 GEN Smokeping_probes_AnotherSSH.pod GEN Smokeping_probes_AnotherSSH.3 GEN Smokeping_probes_WebProxyFilter.pod GEN Smokeping_probes_WebProxyFilter.3 GEN Smokeping_probes_basefork.pod GEN Smokeping_probes_basefork.3 GEN Smokeping_probes_FPingContinuous.pod GEN Smokeping_probes_FPingContinuous.3 GEN Smokeping_probes_TCPPing.pod GEN Smokeping_probes_TCPPing.3 GEN Smokeping_probes_EchoPingLDAP.pod GEN Smokeping_probes_EchoPingLDAP.3 GEN Smokeping_probes_SSH.pod GEN Smokeping_probes_SSH.3 GEN Smokeping_probes_EchoPingHttps.pod GEN Smokeping_probes_EchoPingHttps.3 GEN Smokeping_probes_TelnetJunOSPing.pod GEN Smokeping_probes_TelnetJunOSPing.3 GEN Smokeping_probes_SendEmail.pod GEN Smokeping_probes_SendEmail.3 GEN Smokeping_probes_passwordchecker.pod GEN Smokeping_probes_passwordchecker.3 GEN Smokeping_probes_EchoPing.pod GEN Smokeping_probes_EchoPing.3 GEN Smokeping_probes_AnotherDNS.pod GEN Smokeping_probes_AnotherDNS.3 GEN Smokeping_probes_DismanPing.pod GEN Smokeping_probes_DismanPing.3 GEN Smokeping_probes_SipSak.pod GEN Smokeping_probes_SipSak.3 GEN Smokeping_probes_EchoPingDNS.pod GEN Smokeping_probes_EchoPingDNS.3 GEN Smokeping_probes_LDAP.pod GEN Smokeping_probes_LDAP.3 GEN Smokeping_probes_FPing6.pod GEN Smokeping_probes_FPing6.3 GEN Smokeping_probes_IRTT.pod GEN Smokeping_probes_IRTT.3 GEN Smokeping_probes_EchoPingChargen.pod GEN Smokeping_probes_EchoPingChargen.3 GEN Smokeping_probes_NFSping.pod GEN Smokeping_probes_NFSping.3 GEN Smokeping_probes_EchoPingPlugin.pod GEN Smokeping_probes_EchoPingPlugin.3 GEN Smokeping_probes_Radius.pod GEN Smokeping_probes_Radius.3 GEN Smokeping_probes_FTPtransfer.pod GEN Smokeping_probes_FTPtransfer.3 GEN Smokeping_probes_CiscoRTTMonEchoICMP.pod GEN Smokeping_probes_CiscoRTTMonEchoICMP.3 GEN Smokeping_probes_CiscoRTTMonTcpConnect.pod GEN Smokeping_probes_CiscoRTTMonTcpConnect.3 GEN Smokeping_probes_OpenSSHEOSPing.pod GEN Smokeping_probes_OpenSSHEOSPing.3 GEN Smokeping_probes_DNS.pod GEN Smokeping_probes_DNS.3 GEN Smokeping_probes_basevars.pod GEN Smokeping_probes_basevars.3 GEN Smokeping_matchers_Avgratio.3 GEN Smokeping_matchers_CheckLatency.3 GEN Smokeping_matchers_CheckLoss.3 GEN Smokeping_matchers_base.3 GEN Smokeping_matchers_Median.3 GEN Smokeping_matchers_ExpLoss.3 GEN Smokeping_matchers_Medratio.3 GEN Smokeping_sorters_base.3 GEN Smokeping_sorters_Median.3 GEN Smokeping_sorters_Max.3 GEN Smokeping_sorters_Loss.3 GEN Smokeping_sorters_StdDev.3 GEN smokeping_config.pod GEN smokeping_config.5 GEN smokeping_examples.pod GEN smokeping_examples.pod Generating example files... examples/config.simple ... examples/config.multiple-probes ... examples/config.fping-instances ... examples/config.targetvars-with-Curl ... examples/config.echoping ... examples/config.template ... smokeping_examples.pod ... done. GEN smokeping_examples.5 GEN smokeping_extend.7 GEN smokeping_install.7 GEN smokeping_master_slave.7 GEN smokeping_upgrade.7 make[2]: Entering directory `/root/smokeping-2.7.3/doc' make[2]: Nothing to be done for `install-exec-am'. /usr/bin/mkdir -p '/opt/smokeping/etc/examples' /usr/bin/install -c -m 644 examples/config.fping-instances examples/config.multiple-probes examples/config.simple examples/config.echoping examples/config.template examples/config.targetvars-with-Curl '/opt/smokeping/etc/examples' /usr/bin/mkdir -p '/opt/smokeping/share/man/man1' /usr/bin/install -c -m 644 smokeping.1 smokeping_cgi.1 tSmoke.1 '/opt/smokeping/share/man/man1' /usr/bin/mkdir -p '/opt/smokeping/share/man/man3' /usr/bin/install -c -m 644 Smokeping_probes_EchoPingSmtp.3 Smokeping_probes_OpenSSHJunOSPing.3 Smokeping_probes_skel.3 Smokeping_probes_EchoPingWhois.3 Smokeping_probes_EchoPingHttp.3 Smokeping_probes_TelnetIOSPing.3 Smokeping_probes_EchoPingDiscard.3 Smokeping_probes_CiscoRTTMonDNS.3 Smokeping_probes_IOSPing.3 Smokeping_probes_AnotherCurl.3 Smokeping_probes_FPing.3 Smokeping_probes_TraceroutePing.3 Smokeping_probes_TacacsPlus.3 Smokeping_probes_RemoteFPing.3 Smokeping_probes_Curl.3 Smokeping_probes_base.3 Smokeping_probes_EchoPingIcp.3 Smokeping_probes_Qstat.3 Smokeping_probes_AnotherSSH.3 Smokeping_probes_WebProxyFilter.3 Smokeping_probes_basefork.3 Smokeping_probes_FPingContinuous.3 Smokeping_probes_TCPPing.3 Smokeping_probes_EchoPingLDAP.3 Smokeping_probes_SSH.3 Smokeping_probes_EchoPingHttps.3 Smokeping_probes_TelnetJunOSPing.3 Smokeping_probes_SendEmail.3 Smokeping_probes_passwordchecker.3 Smokeping_probes_EchoPing.3 Smokeping_probes_AnotherDNS.3 Smokeping_probes_DismanPing.3 Smokeping_probes_SipSak.3 Smokeping_probes_EchoPingDNS.3 Smokeping_probes_LDAP.3 Smokeping_probes_FPing6.3 Smokeping_probes_IRTT.3 Smokeping_probes_EchoPingChargen.3 Smokeping_probes_NFSping.3 Smokeping_probes_EchoPingPlugin.3 '/opt/smokeping/share/man/man3' /usr/bin/install -c -m 644 Smokeping_probes_Radius.3 Smokeping_probes_FTPtransfer.3 Smokeping_probes_CiscoRTTMonEchoICMP.3 Smokeping_probes_CiscoRTTMonTcpConnect.3 Smokeping_probes_OpenSSHEOSPing.3 Smokeping_probes_DNS.3 Smokeping_probes_basevars.3 Smokeping_matchers_Avgratio.3 Smokeping_matchers_CheckLatency.3 Smokeping_matchers_CheckLoss.3 Smokeping_matchers_base.3 Smokeping_matchers_Median.3 Smokeping_matchers_ExpLoss.3 Smokeping_matchers_Medratio.3 Smokeping_sorters_base.3 Smokeping_sorters_Median.3 Smokeping_sorters_Max.3 Smokeping_sorters_Loss.3 Smokeping_sorters_StdDev.3 '/opt/smokeping/share/man/man3' /usr/bin/mkdir -p '/opt/smokeping/share/man/man5' /usr/bin/install -c -m 644 smokeping_config.5 smokeping_examples.5 '/opt/smokeping/share/man/man5' /usr/bin/mkdir -p '/opt/smokeping/share/man/man7' /usr/bin/install -c -m 644 smokeping_extend.7 smokeping_install.7 smokeping_master_slave.7 smokeping_upgrade.7 '/opt/smokeping/share/man/man7' make[2]: Leaving directory `/root/smokeping-2.7.3/doc' rm Smokeping_probes_IOSPing.pod Smokeping_probes_EchoPing.pod Smokeping_probes_SipSak.pod Smokeping_probes_EchoPingPlugin.pod Smokeping_probes_SSH.pod Smokeping_probes_FPing6.pod Smokeping_probes_EchoPingIcp.pod Smokeping_probes_Curl.pod Smokeping_probes_CiscoRTTMonDNS.pod Smokeping_probes_EchoPingDNS.pod Smokeping_probes_Qstat.pod Smokeping_probes_DismanPing.pod Smokeping_probes_IRTT.pod Smokeping_probes_WebProxyFilter.pod Smokeping_probes_RemoteFPing.pod Smokeping_probes_OpenSSHJunOSPing.pod Smokeping_probes_EchoPingLDAP.pod Smokeping_probes_LDAP.pod Smokeping_probes_TacacsPlus.pod Smokeping_probes_TelnetIOSPing.pod Smokeping_probes_NFSping.pod Smokeping_probes_basefork.pod Smokeping_probes_OpenSSHEOSPing.pod Smokeping_probes_EchoPingChargen.pod Smokeping_probes_basevars.pod Smokeping_probes_EchoPingSmtp.pod Smokeping_probes_FPing.pod Smokeping_probes_TraceroutePing.pod Smokeping_probes_FTPtransfer.pod Smokeping_probes_EchoPingHttps.pod Smokeping_probes_EchoPingDiscard.pod Smokeping_probes_AnotherSSH.pod Smokeping_probes_CiscoRTTMonEchoICMP.pod Smokeping_probes_passwordchecker.pod Smokeping_probes_base.pod Smokeping_probes_TelnetJunOSPing.pod Smokeping_probes_SendEmail.pod Smokeping_probes_EchoPingHttp.pod Smokeping_probes_AnotherDNS.pod Smokeping_probes_Radius.pod Smokeping_probes_AnotherCurl.pod Smokeping_probes_TCPPing.pod Smokeping_probes_EchoPingWhois.pod Smokeping_probes_skel.pod Smokeping_probes_DNS.pod Smokeping_probes_FPingContinuous.pod Smokeping_probes_CiscoRTTMonTcpConnect.pod make[1]: Leaving directory `/root/smokeping-2.7.3/doc' Making install in etc make[1]: Entering directory `/root/smokeping-2.7.3/etc' make[2]: Entering directory `/root/smokeping-2.7.3/etc' make[2]: Nothing to be done for `install-exec-am'. /usr/bin/mkdir -p '/opt/smokeping/etc' /usr/bin/install -c -m 644 basepage.html.dist config.dist smokemail.dist smokeping_secrets.dist tmail.dist '/opt/smokeping/etc' make[2]: Leaving directory `/root/smokeping-2.7.3/etc' make[1]: Leaving directory `/root/smokeping-2.7.3/etc' Making install in htdocs make[1]: Entering directory `/root/smokeping-2.7.3/htdocs' make[2]: Entering directory `/root/smokeping-2.7.3/htdocs' make[2]: Nothing to be done for `install-exec-am'. /usr/bin/mkdir -p /opt/smokeping/htdocs /usr/bin/echo "#!/bin/sh" > /opt/smokeping/htdocs/smokeping.fcgi.dist /usr/bin/echo "exec /opt/smokeping/bin/smokeping_cgi /opt/smokeping/etc/config" >> /opt/smokeping/htdocs/smokeping.fcgi.dist chmod +x /opt/smokeping/htdocs/smokeping.fcgi.dist /usr/bin/mkdir -p '/opt/smokeping/htdocs' /usr/bin/mkdir -p '/opt/smokeping/htdocs/js' /usr/bin/install -c -m 644 js/smokeping.js js/prototype.js '/opt/smokeping/htdocs/js' /usr/bin/mkdir -p '/opt/smokeping/htdocs/js/scriptaculous' /usr/bin/install -c -m 644 js/scriptaculous/controls.js js/scriptaculous/slider.js js/scriptaculous/sound.js js/scriptaculous/effects.js js/scriptaculous/unittest.js js/scriptaculous/builder.js js/scriptaculous/scriptaculous.js js/scriptaculous/dragdrop.js '/opt/smokeping/htdocs/js/scriptaculous' /usr/bin/mkdir -p '/opt/smokeping/htdocs/js/cropper' /usr/bin/install -c -m 644 js/cropper/cropper.js js/cropper/licence.txt js/cropper/marqueeVert.gif js/cropper/cropper.uncompressed.js js/cropper/cropper.css js/cropper/marqueeHoriz.gif '/opt/smokeping/htdocs/js/cropper' /usr/bin/mkdir -p '/opt/smokeping/htdocs/css' /usr/bin/install -c -m 644 css/smokeping-print.css css/smokeping-screen.css '/opt/smokeping/htdocs/css' make[2]: Leaving directory `/root/smokeping-2.7.3/htdocs' make[1]: Leaving directory `/root/smokeping-2.7.3/htdocs' Making install in lib make[1]: Entering directory `/root/smokeping-2.7.3/lib' make[2]: Entering directory `/root/smokeping-2.7.3/lib' make[2]: Nothing to be done for `install-exec-am'. /usr/bin/mkdir -p '/opt/smokeping/lib' /usr/bin/mkdir -p '/opt/smokeping/lib/Smokeping/probes' /usr/bin/install -c -m 644 Smokeping/probes/EchoPingSmtp.pm Smokeping/probes/OpenSSHJunOSPing.pm Smokeping/probes/skel.pm Smokeping/probes/EchoPingWhois.pm Smokeping/probes/EchoPingHttp.pm Smokeping/probes/TelnetIOSPing.pm Smokeping/probes/EchoPingDiscard.pm Smokeping/probes/CiscoRTTMonDNS.pm Smokeping/probes/IOSPing.pm Smokeping/probes/AnotherCurl.pm Smokeping/probes/FPing.pm Smokeping/probes/TraceroutePing.pm Smokeping/probes/TacacsPlus.pm Smokeping/probes/RemoteFPing.pm Smokeping/probes/Curl.pm Smokeping/probes/base.pm Smokeping/probes/EchoPingIcp.pm Smokeping/probes/Qstat.pm Smokeping/probes/AnotherSSH.pm Smokeping/probes/WebProxyFilter.pm Smokeping/probes/basefork.pm Smokeping/probes/FPingContinuous.pm Smokeping/probes/TCPPing.pm Smokeping/probes/EchoPingLDAP.pm Smokeping/probes/SSH.pm Smokeping/probes/EchoPingHttps.pm Smokeping/probes/TelnetJunOSPing.pm Smokeping/probes/SendEmail.pm Smokeping/probes/passwordchecker.pm Smokeping/probes/EchoPing.pm Smokeping/probes/AnotherDNS.pm Smokeping/probes/DismanPing.pm Smokeping/probes/SipSak.pm Smokeping/probes/EchoPingDNS.pm Smokeping/probes/LDAP.pm Smokeping/probes/FPing6.pm Smokeping/probes/IRTT.pm Smokeping/probes/EchoPingChargen.pm Smokeping/probes/NFSping.pm Smokeping/probes/EchoPingPlugin.pm '/opt/smokeping/lib/Smokeping/probes' /usr/bin/mkdir -p '/opt/smokeping/lib/Smokeping/sorters' /usr/bin/install -c -m 644 Smokeping/sorters/base.pm Smokeping/sorters/Median.pm Smokeping/sorters/Max.pm Smokeping/sorters/Loss.pm Smokeping/sorters/StdDev.pm '/opt/smokeping/lib/Smokeping/sorters' /usr/bin/install -c -m 644 BER.pm Smokeping.pm SNMP_util.pm SNMP_Session.pm '/opt/smokeping/lib/.' /usr/bin/mkdir -p '/opt/smokeping/lib/Smokeping/matchers' /usr/bin/install -c -m 644 Smokeping/matchers/Avgratio.pm Smokeping/matchers/CheckLatency.pm Smokeping/matchers/CheckLoss.pm Smokeping/matchers/base.pm Smokeping/matchers/Median.pm Smokeping/matchers/ExpLoss.pm Smokeping/matchers/Medratio.pm '/opt/smokeping/lib/Smokeping/matchers' /usr/bin/mkdir -p '/opt/smokeping/lib/Smokeping/probes' /usr/bin/install -c -m 644 Smokeping/probes/Radius.pm Smokeping/probes/FTPtransfer.pm Smokeping/probes/CiscoRTTMonEchoICMP.pm Smokeping/probes/CiscoRTTMonTcpConnect.pm Smokeping/probes/OpenSSHEOSPing.pm Smokeping/probes/DNS.pm Smokeping/probes/basevars.pm '/opt/smokeping/lib/Smokeping/probes' /usr/bin/mkdir -p '/opt/smokeping/lib/Smokeping' /usr/bin/install -c -m 644 Smokeping/Slave.pm Smokeping/pingMIB.pm Smokeping/Graphs.pm Smokeping/ciscoRttMonMIB.pm Smokeping/Info.pm Smokeping/RRDtools.pm Smokeping/Colorspace.pm Smokeping/Examples.pm Smokeping/Config.pm Smokeping/RRDhelpers.pm Smokeping/Master.pm '/opt/smokeping/lib/Smokeping' make[2]: Leaving directory `/root/smokeping-2.7.3/lib' make[1]: Leaving directory `/root/smokeping-2.7.3/lib' Making install in bin make[1]: Entering directory `/root/smokeping-2.7.3/bin' make[2]: Entering directory `/root/smokeping-2.7.3/bin' /usr/bin/mkdir -p '/opt/smokeping/bin' /usr/bin/install -c smokeinfo smokeping smokeping_cgi tSmoke '/opt/smokeping/bin' make install-exec-hook make[3]: Entering directory `/root/smokeping-2.7.3/bin' test "" = "" || cd "/opt/smokeping/bin" && /usr/bin/perl -i -p -e 's{^#!.*}{#!/usr/bin/perl}; s{.*# PERL5LIB}{use lib (split /:/, q{}); # PERL5LIB}' smokeinfo smokeping smokeping_cgi tSmoke cd "/opt/smokeping/bin" && /usr/bin/perl -i -p -e 's{.*# LIBDIR}{use lib qw(/opt/smokeping/lib); # LIBDIR}' smokeinfo smokeping smokeping_cgi tSmoke cd "/opt/smokeping/bin" && /usr/bin/perl -i -p -e 's{^#!.*perl.*}{#!/usr/bin/perl};' smokeinfo smokeping smokeping_cgi tSmoke make[3]: Leaving directory `/root/smokeping-2.7.3/bin' make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/root/smokeping-2.7.3/bin' make[1]: Leaving directory `/root/smokeping-2.7.3/bin' make[1]: Entering directory `/root/smokeping-2.7.3' make[2]: Entering directory `/root/smokeping-2.7.3' make install-exec-hook make[3]: Entering directory `/root/smokeping-2.7.3' [ ! -d /root/smokeping-2.7.3/thirdparty/lib/perl5 ] || /usr/bin/cp -fr /root/smokeping-2.7.3/thirdparty/lib/perl5/* /opt/smokeping/lib make[3]: Leaving directory `/root/smokeping-2.7.3' make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/root/smokeping-2.7.3' make[1]: Leaving directory `/root/smokeping-2.7.3? [root at REDACTED02 smokeping-2.7.3]# cd /opt [root at REDACTED02 opt]# cd smokeping/ [root at REDACTED02 smokeping]# locate Curl /opt/smokeping/etc/examples/config.targetvars-with-Curl /opt/smokeping/lib/Smokeping/probes/AnotherCurl.pm /opt/smokeping/lib/Smokeping/probes/Curl.pm /opt/smokeping/share/man/man3/Smokeping_probes_AnotherCurl.3 /opt/smokeping/share/man/man3/Smokeping_probes_Curl.3 /root/smokeping-2.7.3/doc/Smokeping_probes_AnotherCurl.3 /root/smokeping-2.7.3/doc/Smokeping_probes_Curl.3 /root/smokeping-2.7.3/doc/examples/config.targetvars-with-Curl /root/smokeping-2.7.3/lib/Smokeping/probes/AnotherCurl.pm /root/smokeping-2.7.3/lib/Smokeping/probes/Curl.pm [root at REDACTED02 smokeping]# ls bin config data etc htdocs lib restart.sh share var [root at REDACTED02 smokeping]# ./restart.sh ERROR: /opt/smokeping/etc/config, line 138: probe must be defined before the host or any probe variables [root at REDACTED02 smokeping]# cat config *** General *** owner = REDACTED contact = REDACTED at REDACTED mailhost = REDACTED-MAILHOST sendmail = /usr/sbin/sendmail imgcache = /var/www/smokeping/cache imgurl = cache datadir = /opt/smokeping/data piddir = /opt/smokeping/var cgiurl = http://10.0.10.164/smokeping/smokeping.fcgi smokemail = /opt/smokeping/etc/smokemail.dist tmail = /opt/smokeping/etc/tmail.dist # specify this to get syslog logging syslogfacility = local0 concurrentprobes = yes *** Alerts *** to = REDACTED at REDACTED from = smokeping at REDACTED02 *** Database *** step = 60 pings = 100 # consfn mrhb steps total AVERAGE 0.5 1 1008 AVERAGE 0.5 12 4320 MIN 0.5 12 4320 MAX 0.5 12 4320 AVERAGE 0.5 144 720 MAX 0.5 144 720 MIN 0.5 144 720 *** Presentation *** template = /opt/smokeping/etc/basepage.html + charts menu = Summary Statistics title = Summary Statistics ++ stddev sorter = StdDev(entries=>4) title = Top Standard Deviation menu = Std Deviation format = Standard Deviation %f ++ max sorter = Max(entries=>5) title = Top Max Roundtrip Time menu = by Max format = Max Roundtrip Time %f seconds ++ loss sorter = Loss(entries=>5) title = Top Packet Loss menu = Loss format = Packets Lost %f ++ median sorter = Median(entries=>5) title = Top Median Roundtrip Time menu = by Median format = Median RTT %f seconds + overview width = 900 height = 260 range = 24h + detail width = 900 height = 260 unison_tolerance = 2 "Last 3 Hours" 3h "Last 30 Hours" 30h "Last 10 Days" 10d "Last 45 Days? 45d *** Probes *** + Curl binary = /usr/bin/curl forks = 5 offset = 50% step = 300 timeout = 60 + FPing binary = /usr/local/sbin/fping packetsize = 1500 blazemode = true *** Targets *** probe = FPing menu = Top title = Network Graphs remark = REDACTED Environment + Local menu = Sandvine Testing title = Sandvine Testing ####### LATENCY ######## ++ Latency menu = Latency Graphs title = ICMP Ping Latency +++ REDACTED01 menu = REDACTED01 title = REDACTED01 host = 10.0.6.211 +++ REDACTED02 menu = localhost/REDACTED02 title = localhost/REDACTED02 host = localhost ####### THROUGHPUT ######## probe = Curl ++ Throughput +++ REDACTED01 menu = REDACTED01 100M title = REDACTED01 100M host = 10.0.6.211 urlformat = http://%host%/100M.bin menu = REDACTED01 1G title = REDACTED01 1G host = 10.0.6.211 urlformat = http://%host%/1G.bin +++ REDACTED02 menu = localhost/REDACTED02 100M title = localhost/REDACTED02 100M host = localhost 100M urlformat = http://%host%/100M.bin menu = localhost/REDACTED02 1G title = localhost/REDACTED02 1G host = localhost urlformat = http://%host%/1G.bin This message is private and confidential. If you have received this message in error, please notify the sender or servicedesk at piksel.com and remove it from your system. Piksel Inc is a company registered in the United States, 2100 Powers Ferry Road SE, Suite 400, Atlanta, GA 30339. F No. = 2931986 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jurgen.lists at jbserver.eu Fri Dec 27 19:08:26 2019 From: jurgen.lists at jbserver.eu (Jurgen Brunink) Date: Fri, 27 Dec 2019 19:08:26 +0100 Subject: [smokeping-users] tSmoke --testmail not working Message-ID: Hi folks, I'm running Smokeping in a Docker container running version 2.007003 with Perl 5.28.2. I'm trying to verify that mail can be sent through my mail server using ssmtp which acts as a replacement for Sendmail. Unfortunately I'm getting the following error: > ERROR: not sending mail to , as all methodes failed Looking into Smokeping.pm tells me that the function being used for mail sending by tSmoke tries to check for the existence of certain variables in the $cfg hashmap(?). It appears to be that $cfg variable is not populated in Smokeping.pm during runtime and that sending mail will always fail when using tSmoke. The $cfg variable is available and populated in the tSmoke script. The only way to get this working is to have a symbolic link on /usr/lib/sendmail to a Sendmail compliant script/binary. To me it seems the ability of using Net::SMTP or a custom Sendmail binary set in $cfg->{General}{sendmail} is not possible right now. My suggestion is to remove the existence check for /usr/lib/sendmail in Smokeping.pm entirely on line 272 and fix the $cfg var availability in Smokeping.pm. This will prevent unexpected behaviour and allow the user to use the sendmail option in the Smokeping config. Sadly I have no experience in programming in Perl to look into this more closely and try to fix. I'm happy to submit a PR which will remove the existence check but without an actual fix for $cfg this will break the program more right now. Any help/feedback would be appreciated! :-) Met vriendelijke groet, Jurgen Brunink