<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" bgcolor='#FFFFFF' ><!-- This is a notification from the Help Desk. -->
<STYLE>
a { color:#FF6600;}
</STYLE>
<table width="550" cellpadding="20" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td bgcolor="#FFFFFF" valign="top" style="font-size:12px;color:#000000;font-family:trebuchet ms;">
<p style="font-weight:bold"></p>
<i style="color:#555555; font-size:11px">On Nov 12, 2013 @ 05:32 pm, smokeping-users-request@lists.oetiker.ch wrote:</i>
<p>Send smokeping-users mailing list submissions to<br />        smokeping-users@lists.oetiker.ch<br /><br />To subscribe or unsubscribe via the World Wide Web, visit<br />        https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users<br />or, via email, send a message with subject or body 'help' to<br />        smokeping-users-request@lists.oetiker.ch<br /><br />You can reach the person managing the list at<br />        smokeping-users-owner@lists.oetiker.ch<br /><br />When replying, please edit your Subject line so it is more specific<br />than "Re: Contents of smokeping-users digest..."<br /><br /><br />Today's Topics:<br /><br /> 1. Re: Problem showing graphs in OPenSUSE 12.3 (Paul Mansfield)<br /> 2. Re: Problem showing graphs in OPenSUSE 12.3 (Greg Stucky)<br /> 3. Re: Problem showing graphs in OPenSUSE 12.3 (Greg Stucky)<br /><br /><br />----------------------------------------------------------------------<br /><br />Message: 1<br />Date: Fri, 23 Aug 2013 12:21:45 +0100<br /
>From: Paul Mansfield <paul.mansfield+smokeping@grapeshot.co.uk><br />Subject: Re: [smokeping-users] Problem showing graphs in OPenSUSE 12.3<br />To: "smokeping-users@lists.oetiker.ch"<br />        <smokeping-users@lists.oetiker.ch><br />Message-ID:<br />        <CAHYeK0cWxtU6nFW9mCD1U_k=-0EjWDN8+6Em_O7Hhmk_hyv7YQ@mail.gmail.com><br />Content-Type: text/plain; charset=ISO-8859-1<br /><br />is apparmor enabled and preventing apache being able to access the<br />smokeping html and images?<br /><br /><br /><br />------------------------------<br /><br />Message: 2<br />Date: Fri, 23 Aug 2013 08:54:30 -0400<br />From: Greg Stucky <gstucky@surfbest.net><br />Subject: Re: [smokeping-users] Problem showing graphs in OPenSUSE 12.3<br />To: smokeping-users-request <smokeping-users@lists.oetiker.ch><br />Message-ID: <52175B86.4060409@surfbest.net><br />Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br /><br />No, apparmor is not installed.<
br /><br /><br />On 8/23/2013 7:21 AM, Paul Mansfield wrote:<br />> is apparmor enabled and preventing apache being able to access the<br />> smokeping html and images?<br />><br />> _______________________________________________<br />> smokeping-users mailing list<br />> smokeping-users@lists.oetiker.ch<br />> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users<br />><br /><br /><br /><br />------------------------------<br /><br />Message: 3<br />Date: Fri, 23 Aug 2013 09:29:56 -0400<br />From: Greg Stucky <gstucky@surfbest.net><br />Subject: Re: [smokeping-users] Problem showing graphs in OPenSUSE 12.3<br />To: smokeping-users-request <smokeping-users@lists.oetiker.ch><br />Message-ID: <521763D4.5040804@surfbest.net><br />Content-Type: text/plain; charset="utf-8"<br /><br />Thanks for the posts. I verified all of this before I posted the <br />initial message. I think it is working now and it turned out to be a
n <br />Apache permissions error. The user/owner were set wrong on the www <br />directories and giving them explicit rights in advanced permissions did <br />not work. I rest the permissions on www and applied them to all sub <br />directories and it is now running.<br /><br />Thanks again to everyone who assisted.<br /><br /><br />On 8/23/2013 5:15 AM, ITheodoridis@bankofgreece.gr wrote:<br />><br />> Good Morning all and special hello to Gregory (Sloop)!<br />><br />> Greg (Stucky),<br />><br />> I think you may be mixed up in your approach to solve the matter, as <br />> you are trying more than one thing at once.<br />><br />> First of all keep in mind that when compiling smokeping for OpenSuSE <br />> 12.3 will put smokeping directory in /opt/ and your original config <br />> file will be in /opt/smokeping/etc/. So in this scenario if you run <br />> smokeping from the command line (not through the init script at boot) <br />> y
ou will need to provide the path to the config. When you run in debug <br />> mode you still need to provide the option about where the config file <br />> is. There are detailed instructions in the documentation about <br />> installing Smokeping which you can follow to the letter.<br />><br />I verified all the locations for both /opt/ when i tried installing it <br />from source and /etc/ when I installed it from the repository below<br />><br />> For OpenSuSE you have another option for installation which is through <br />> the Server Monitoring repository (you can find that one under <br />> http://download.opensuse.org/, you will need to add that repository <br />> using Yast, the url I have added is <br />> http://download.opensuse.org/repositories/server:/monitoring/openSUSE_12.3/ <br />> ). If you add that repository you will have no problem installing all <br />> the packages you need through YAST. In that case the smokeping file
<br />> paths are different, and you should try to locate exactly where your <br />> files are (I believe that the config file should be under /etc/ <br />> somewhere, locate the rest through YAST or use your favorite searching <br />> method).<br />><br />> Depending on what installation you preferred the paths contained in <br />> the config file may be different. There are also relative and absolute <br />> paths in the config. Supposing everything works correctly about the <br />> paths to your necessary libraries (for example rrdtool), you still <br />> need to provide the correct path to the data and images folders. You <br />> should be very carefull there about which path is absolute (meaning <br />> you have to provide the whole path starting from root) and which one <br />> is relative the smokeping web dir or the Apache root dir.<br />><br />> Your course of action should include the following steps in my opinion:<br /
>><br />> -Try to verify locations in the config file first (keeping in mind <br />> what I told you about relative and absolute paths).<br />><br />> - Run smokeping with the debug option but including the option which <br />> points to your config file, and an option to include a log in the <br />> smokeping dir (take a loot at instructions in the documentation, my <br />> typical command line looks like this:<br />><br />> bin/smokeping --config=/opt/smokeping/etc/config <br />> --logfile=/opt/smokeping/smoke.log, which I use from the dir <br />> /opt/smokeping/<br />><br />> This will create/append a log file called smoke.log in <br />> the smokeping dir which you can take a look at with a command like this:<br />><br />> tail --lines=500 smoke.log<br />><br />> So first take a look at what smokeping tells you on <br />> the command line (with the
debug option) and also on the log file.<br />><br />> - Check the apache logs (I don?t remember exactly where those are <br />> right now but it should not be so hard to find) and see what you info <br />> you can gather from there.<br />><br />I will keep in mind the --/logfile in case I ever have to troubleshoot <br />smokeping again. I did try the --debug and checked the standard and <br />Apache error logs.<br />><br />> I believe after doing these you will have enough information to <br />> pinpoint exactly at which point you have made a mistake.<br />><br />> If you see rrd files getting created but no graphs most of the time <br />> it?s the permissions on the apache directories for smokeping. If under <br />> the apache root, make sure that the apache user has full write access <br />> rights to those folders and files.<br />><br />> Or you could be making a mistake in declaring where your image files <br />> should be
for example this is my config section with the file paths (I <br />> removed my hostname):<br />><br />> imgcache = /srv/www/htdocs/smokeping/cache<br />><br />> imgurl = ../smokeping/cache<br />><br />> datadir = /srv/www/htdocs/smokeping/data<br />><br />> piddir = /opt/smokeping/var<br />><br />> cgiurl = http://<hostname>/cgi-bin/smokeping.fcgi<br />><br />> smokemail = /opt/smokeping/etc/smokemail<br />><br />> tmail = /opt/smokeping/etc/tmail<br />><br />> .<br />><br /><br />I used the repository this last time so the location of most of the <br />files /etc/ instead of /opt/ other than being required to use https in <br />cgiurl this matches what I have<br />><br />> .<br />><br />> .<br />><br />> template = /opt/smokeping/etc/basepage.html<br />><br />> If you are using the cool zoom feature (cropper) you should also <br />> modify the html template file (the one in the pa
th declared in the <br />> config file) to properly adjust the location of the cropper directory <br />> (or adjust cropper?s location to match the path in the template file.<br />><br />> In this case I have compiled smokeping from sources.<br />> Here is how my apache root dir looks like:<br />> /srv/www/htdocs # ls -al<br />><br />> total 2087960<br />><br />> drwxr-xr-x 8 wwwrun www 4096 Jun 28 22:11 .<br />><br />> drwxr-xr-x 7 root root 4096 Nov 20 2012 ..<br />><br />> drwxr-xr-x 3 root root 4096 May 22 2012 cropper<br />><br />> -rw-r--r-- 1 root root 302 Mar 13 2006 favicon.ico<br />><br />> drwxr-xr-x 2 root root 4096 Nov 20 2012 gif<br />><br />> -rw-r--r-- 1 root root 44 Nov 20 2004 index.html<br />><br />> -rw-r--r-- 1 root root 2356 Jun 23 2012 info2html.css<br />><br />> drwxr-xr-x 6 root root 4096 Jun 27 23:57
phpMyAdmin<br />><br />> -rw-r--r-- 1 root root 26 Mar 28 23:51 robots.txt<br />><br />> drwxr-xr-x 4 wwwrun www 4096 Dec 4 2012 smokeping<br />><br />> In this case you can see that I have placed cropper in the same <br />> starting place as smokeping so in basepage.html this is what I have <br />> declared:<br />><br />><br />> <script src="/cropper/lib/prototype.js" type="text/javascript"></script><br />><br />> <script <br />> src="/cropper/lib/scriptaculous.js?load=builder,effects,dragdrop" type="<br />><br />> text/javascript"></script><br />><br />> <script src="/cropper/cropper.js" type="text/javascript"></script><br />><br />> <script src="/cropper/smokeping-zoom.js" type="text/javascript"></script><br />><br />> Notice the / sign before cropper stating
that it?s located in the <br />> apache root dir.<br />><br />> This is how my smokeping web dir looks like:<br />><br />> /srv/www/htdocs/smokeping # ls -al<br />><br />> total 16<br />><br />> drwxr-xr-x 4 wwwrun www 4096 Dec 4 2012 .<br />><br />> drwxr-xr-x 8 wwwrun www 4096 Jun 28 22:11 ..<br />><br />> drwxr-xr-x 8 wwwrun www 4096 Dec 13 2012 cache<br />><br />> drwxr-xr-x 7 wwwrun www 4096 Dec 4 2012 data<br />><br />> I hope these help. If you come to a specific conclusion and still need <br />> help, don?t hesitate to ask.<br />><br />> Everyone this setup does work, however if you see something that <br />> doesn?t fit as well as it should please comment so that the help given <br />> is 100% correct.<br />><br />> Greetings to all,<br />><br />> Have a nice weekend!<br />><br />> -----------------------------------------------------<br />><br />> Ioannis Theodoridis<br /
>><br />> Network & Systems Engineer<br />><br />> Network & Telecommunications Support<br />><br />> Informatics<br />><br />> Bank of Greece<br />><br />> -----------------------------------------------------<br />><br />> *From:*Greg Stucky [mailto:gstucky@surfbest.net]<br />> *Sent:* Friday, August 23, 2013 7:15 AM<br />> *To:* smokeping-users-request<br />> *Subject:* Re: [smokeping-users] Problem showing graphs in OPenSUSE 12.3<br />><br />> Sorry, I meant to submit to the users group.<br />><br />> I think it is an Apache2 issue. I uninstalled Apache and reinstalled <br />> it and now I get a permissions error on all HTML files. Any <br />> suggestions would be appreciated.<br />><br />> Greg Stucky<br />><br />> On 8/22/2013 11:58 PM, Greg Sloop <gregs@sloop.net> <br />> <mailto:gregs@sloop.net> wrote:<br />><br />> Well, that's what it is complaining about.
<br />> My guess is: there really is something wrong with that<br />> directory/perms.<br />><br />> Make sure there isn't a problem...<br />><br />> I suppose it could be some thing else in the config, so do you<br />> mind giving the config.<br />><br />> (And we should probably go back on-list, so others can help)<br />><br />> On Aug 22, 2013 7:39 PM, "Greg Sloop &lt;gregs@sloop.net<br />> <mailto:lt%3Bgregs@sloop.net>&gt;" <gregs@sloop.net<br />> <mailto:gregs@sloop.net>> wrote:<br />><br />> See inline.<br />> On Aug 22, 2013 6:32 PM, "Greg Stucky" <gstucky@surfbest.net<br />> <mailto:gstucky@surfbest.net>> wrote:<br />> ><br />> > Results from --debug<br />> ><br />> ><br />> > smokeping --config=/etc/smokeping/config --debug<br />> > ### Compiling alert
detector pattern 'someloss'<br />> > ### >0%,*12*,>0%,*12*,>0%<br />> > sub {<br />> > my $d = shift;<br />> > my $y = $d->{loss};<br />> > for(1){<br />> > my $imax2 = min(@$y - 3, 12);<br />> > my $imax1 = min(@$y - 3, 12);<br />> > my $minlength = 3;<br />> > my $maxlength = 27;<br />> > next if scalar @$y < $minlength ;<br />> > my $i1;<br />> > for($i1=0; $i1 < min($maxlength,$imax1); $i1++){<br />> > my $i2;<br />> > for($i2=0; $i2 < min($maxlength-$i1,$imax2); $i2++){<br />> > next unless defined $y->[-3-$i1-$i2]<br />> > and $y->[-3-$i1-$i2] =~ /^\d/<br />> > and $y->[-3-$i1-$i2] > 0<br />>
> ; last;<br />> > }<br />> > return 0 if $i2 >= min($maxlength-$i1-$i2,$imax2);<br />> > next unless defined $y->[-2-$i1]<br />> > and $y->[-2-$i1] =~ /^\d/<br />> > and $y->[-2-$i1] > 0<br />> > ; last;<br />> > }<br />> > return 0 if $i1 >= min($maxlength-$i1,$imax1);<br />> > next unless defined $y->[-1]<br />> > and $y->[-1] =~ /^\d/<br />> > and $y->[-1] > 0<br />> > ; return 1;<br />> > }<br />> > return 0;<br />> > }<br />> ><br />> ><br />> ><br />> > Smokeping ve
rsion 2.006008 successfully launched.<br />> > Not entering multiprocess mode with '--debug'. Use '--debug-daemon'<br />> > for that.<br />> > FPing: probing 4 targets with step 300 s and offset 63 s.<br />> > FPing: Executing /usr/sbin/fping -C 20 -q -B1 -r1 -i10 192.168.1.122<br />> > 192.168.1.117 192.168.1.102 192.168.1.250<br />> ><br />> > Calling RRDs::update(/var/lib/smokeping/data/MyLocs/server1.rrd<br />> > --template<br />> ><br />> uptime:loss:median:ping1:ping2:ping3:ping4:ping5:ping6:ping7:ping8:pin<br />> ><br />> g9:ping10:ping11:ping12:ping13:ping14:ping15:ping16:ping17:ping18:ping<br />> > 19:ping20<br />> ><br />> 1377220530:U:0:2.8340000000e-02:2.5960000000e-02:2.7160000000e-02:2.72<br />> ><br />> 70000000e-02:2.7290000000e-02:2.7400000000e-02:2.7530000000e-02:2.7670<br />> ><br />>
000000e-02:2.7870000000e-02:2.7880000000e-02:2.8110000000e-02:2.834000<br />> ><br />> 0000e-02:2.8550000000e-02:2.8670000000e-02:2.8880000000e-02:2.91500000<br />> ><br />> 00e-02:2.9170000000e-02:2.9510000000e-02:3.2220000000e-02:3.3470000000<br />> > e-02:3.8990000000e-02)<br />> ><br />> ><br />> > Alert "someloss": no match for target<br />> > /var/lib/smokeping/data/MyLocs/Server1<br />> ><br />> > I checked and folder and .rrd file.cgi<br />> /var/lib/smokeping/data/MyLocs/Server1 does exist. I also made a<br />> copy of smokeping and called it smokeping.cgi in the cgi-bin<br />> folder and i get the same error message<br />> ><br />> > ERROR: /etc/smokeping/config, line 10: Directory<br />> '/srv/www/htdocs/smokeping/cache' does not exist<br />><br />> Does the above dir exist, and does the user
smokeping is running<br />> as have rights?<br />><br />> ><br />> > Greg<br />> ><br />> > On 8/22/2013 7:59 PM, Gregory Sloop wrote:<br />> >><br />> >> It should have an extension, I think. I don't think Apache will<br />> run it<br />> >> as a CGI without it...[Perhaps I'm wrong here, I'm really not sure.<br />> >> Mine does have a .cgi extension.]<br />> >><br />> >> As asked earlier: Did you run smokeping in debug mode, and what<br />> does that show?<br />> >><br />> >> ---<br />> >> I don't believe I've seen any cases where running smokeping in<br />> debug<br />> >> mode, and watching the logs doesn't give some good hints where the<br />> >> problems are.<br />> >><br />> >> -Greg<br />> >><br />> >><br /
>> >> GS> it is ../cgi-bin/smokeping If you look in the cgi-bin<br />> directory<br />> >> GS> smokeping has not file extension. Also if I copy the<br />> .png files fro<br />> >> GS> /var/lib/smokeping/cache to /srv/www/htdocs/smokeping/cache<br />> they show up.<br />> >><br />> >> GS> I looked in the error logs before I posted the first<br />> question and the<br />> >> GS> only error messages there relating to smokeping are several<br />> does not<br />> >> GS> exist errors.<br />> >><br />> >> GS> Greg<br />> >><br />> >><br />> >> GS> On 8/22/2013 4:40 PM, Gregory Sloop wrote:<br />> >>>><br />> >>>> wouldn't it be<br />> >>>> ../cgi-bin/smokeping.cgi<br />> >>>> instead of<br /
>> >>>> ../cgi-bin/smokeping/<br />> >>>> ??<br />> >>>><br />> >>>> If you fix that and it still doesn't work:<br />> >>>> Does running smokeping in debug mode tell you anything<br />> >>>> Does looking at the apache logs [especially the error logs]<br />> tell you<br />> >>>> anything?<br />> >>>><br />> >>>> -Greg<br />> >>>><br />> >>>> GS> I am trying to setup Smokeping on an OpenSUSE 12.3<br />> computer I just<br />> >>>> GS> setup. I have installed and configured Smokeping as I<br />> have several<br />> >>>> GS> times before but this time I an not getting the Graphs to<br />> appear.<br />> >>>><br />> >>>> GS> In config I have imgcache =<br />&g
t; /srv/www/htdocs/smokeping/cache which does<br />> >>>> GS> exist. However when I use a browser to go to<br />> >>>> GS> //localhost/cgi-bin/smokeping I get an error message<br />> stating that it<br />> >>>> GS> does not exist. If I copy the location straight from<br />> the error page<br />> >>>> GS> and past it into a browser the folder and its contents<br />> show up. If I<br />> >>>> GS> paste it into Dolphin the same thing.<br />> >>>><br />> >>>> GS> I tried changing the imgcache back to the default imgcache<br />> >>>> GS> =/var/lib/smokeping/cache. When I then open a browser<br />> Smokeping opens<br />> >>>> GS> but there are no graphs. If I look in<br />> /var/lib/smokeping/cache the<br />> >>>> GS> lat
est .png files are there.<br />> >>>><br />> >>>> GS> Is there something I am missing?<br />> >>>><br />> >>>> GS> Thanks for any suggestions<br />> >>>><br />> >>>> GS> _______________________________________________<br />> >>>> GS> smokeping-users mailing list<br />> >>>> GS> smokeping-users@lists.oetiker.ch<br />> <mailto:smokeping-users@lists.oetiker.ch><br />> >>>> GS> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users<br />> >>>><br />> >><br />> >><br />> ><br />><br />><br />><br />> ==============================================================================================================<br />> ?? ??? ????????? ?????? ??????? ??????????? ???. ???? ?????? ???????????? ???????????? ??? ???
??????? ??? ??????? (???) ???????????? ????????? ???? ??? ?? ???????? ???? ??????????? ?? ?? ?????????? ? ???????? ????????? ? ???? ???????? ??? ???.<br />><br />> ?? ?????? ???????????? ???????????? ??????????? ???? ???????????? ????? ??? ????????, ??? ?????? ? ????????? ??????????? ???? ??????????? ??? ?????????. ? ?????????? ??? ? ??? ??? ???????????? ?????? ?????? ??? ???????????, ????????? ??? ????????????, ??????? ? ????????????? ????????? ??? ?????????, ??? ???????, ??????? ? ?????????? ??? ????????? ? ??? ????????? ????? ??? ??? ???? ?? ????? ??? ????? ??????? ? ????? ?????? ??? ??? ??? ????? ???????????? ??????.<br />><br />> ??? ?????? ???? ????? ?? ????? ?????? ???????????? ????????????, ??????????? ?? ???????????? ?????? ???? ???????????? ???????????? ??? ????????? ??? ?? ?????????? ?? ??????. ??????????? ??????????, ??????? ? ????? ?????? ? ????????? ??? ????????? ????? ????? ???????????? ??????? ??? ?????? ?? ???????? ??????? ??? ?????? ??????.<br /
>><br />><br />> Any e-mail message from the Bank of Greece (BoG) is sent in good faith but shall neither be binding nor construed as constituting or affecting a contractual arrangement or other commitment by the BoG.<br />><br />> The e-mail is intended for the exclusive use of the person whose e-mail address appears in caption as recipient. The sender and the BoG decline liability for inaccuracy, breach of integrity, loss or delayed delivery of the message, for any failure in, interruption to or degradation of either the service or the message, as well as for any loss or damage sustained thereof to the fullest extent provided by law.<br />><br />> If this e-mail was not intended for you, please notify the sender immediately via e-mail and delete it at once. Any unauthorized disclosure, dissemination or use, either in whole or in part is strictly prohibited and may give rise to both criminal and civil liability. All rights reserved.<br />> ==========
====================================================================================================<br />><br />><br /><br />-------------- next part --------------<br />An HTML attachment was scrubbed...<br />URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20130823/c6b1c749/attachment.htm <br /><br />------------------------------<br /><br />_______________________________________________<br />smokeping-users mailing list<br />smokeping-users@lists...</p>
<br/>
<hr/>
This is an automated response. Your issue has been noted. We'll be in touch soon.<br/>
<br/>
Please reply to this email or visit the URL below with any additional details.<br/>
<br/>
<a href="http://florin-pc/portal/view-help-request/41">http://florin-pc/portal/view-help-request/41</a><br/>
</td>
</tr>
</table>
</body>