From gregs at sloop.net Fri Sep 2 18:55:33 2011 From: gregs at sloop.net (Gregory Sloop) Date: Fri, 2 Sep 2011 09:55:33 -0700 Subject: [smokeping-users] SMTP Alerts on alternate port, smtp auth Message-ID: <12510282248.20110902095533@sloop.net> I'd like to use the Net::SMTP module instead of sendmail - (Just easier, IMO) and I need to use an alternate port. [Like 26] Is there some way to configure this? I've searched the lists [and Google] and was not able to find anything... One other items that would perhaps be helpful would be SMTP auth options. Are these in there somewhere? [My smokeping is running in places where it may not have a local server where I can send mail, and even if I could, I might prefer to deliver mail via another non-local server. And further, Port 25 outbound may be blocked. I know that's a bit odd given how most people will run it, but that's how I'm running it and it fits the need/requirements.] -Greg -- Gregory Sloop, Principal: Sloop Network & Computer Consulting 503.251.0452 x82 Voice | 503.251.0452 Fax www.sloop.net mailto:gregs at sloop.net From gregs at sloop.net Fri Sep 2 21:39:57 2011 From: gregs at sloop.net (Gregory Sloop) Date: Fri, 2 Sep 2011 12:39:57 -0700 Subject: [smokeping-users] SMTP Alerts on alternate port, smtp auth In-Reply-To: <4E612D0D.9080001@gmail.com> References: <12510282248.20110902095533@sloop.net> <4E612D0D.9080001@gmail.com> Message-ID: <997873247.20110902123957@sloop.net> That's neat and all, but it's not clear how I'd include any data on what the alert is about - what host etc. I assume that perhaps the mailtemplate might be helpful, but an initial read of the docs isn't particularly enlightening. I assume you may have done something similar - do you have some example code, or can you point me to some? I'm reasonably proficient in bash, so it's possible I could cobble something together... I still think it would be much better to include SMTP alt-port & auth etc in the code, along with the required extensions - writing a bash script etc is really an ugly hack. But if I have to settle for a hack, perhaps it's that or nothing. -Greg TT> On 9/2/11 12:55 PM, Gregory Sloop wrote: >> >> I'd like to use the Net::SMTP module instead of sendmail - (Just >> easier, IMO) and I need to use an alternate port. [Like 26] >> >> Is there some way to configure this? I've searched the lists [and >> Google] and was not able to find anything... TT> Greg, TT> For alerts you can specify any command you want, so instead of / in TT> addition to using an email address, you can do something like: >> *** Alerts *** >> # 'to' can be a comma separated list of email addresses or programs >> to = gregs at sloop.net,|/path/to/mail-alerts.sh TT> ...where mail-alerts.sh is a script you write or find that does what you TT> want. See the options for the 'to' variable in the Alerts section of TT> the docs, here: >> http://oss.oetiker.ch/smokeping/doc/smokeping_config.en.html#I____Alerts____ TT> Cheers, TT> -tt -- Gregory Sloop, Principal: Sloop Network & Computer Consulting Voice: 503.251.0452 x82 EMail: gregs at sloop.net http://www.sloop.net --- From gregs at sloop.net Mon Sep 5 21:25:16 2011 From: gregs at sloop.net (Gregory Sloop) Date: Mon, 5 Sep 2011 12:25:16 -0700 Subject: [smokeping-users] Mail script for SMTP Auth, alternate destination ports, etc. Message-ID: <1841125290.20110905122516@sloop.net> Well, since there wasn't apparently any ready-made scripts for using an off-site mail server, using SMTP auth or alternate ports, I coded one in perl. [My first perl code - aren't you lucky! :) ] I used Mail::Sender - so if you use my script you'll need to install that from CPAN or somewhere else. Line wrap is probably going to mangle things a bit, but I think you'll manage. I placed this in the same directory as the smokeping config file and set +execute permissions on the user. Then, in my smokeping config file, I have a line like this: to = |/etc/smokeping/smokeping-smtp-auth-alert-0.0.2 This will kick off the perl script. Unfortunately there's no way to specify the destination etc in the config file, so you'll have to edit the perl script below. I've tried to keep the messages minimal, so you can send to SMS devices. [I need to work on a pattern that will alert me quickly, but not generate a huge number of alerts - so I'll have a question about that soon.] I don't do a lot of error checking [virtually none] in my script, but even if I did - there's not much one could do about any failures. Either things work or they don't - an unattended script won't be able to do much to help. Sorry, no TLS or secured channel communication - it was just as quick and dirty as I could manage. I've left some debug code commented out in the code - I found it useful, and perhaps others would too. Would be more than happy if someone wants to mod or integrate the code. Code follows. --- #!/usr/bin/perl -w use Mail::Sender; $vAlert=$ARGV[0]; $vTarget=$ARGV[1]; $vPktLoss=$ARGV[2]; $vRTT=$ARGV[3]; $vHostName=$ARGV[4]; $vEdgeTrigger=$ARGV[5]; #For debug assist #$vAlert="SomeAlert"; #$vTarget="SomeTarget"; #$vPktLoss="20%"; #$vRTT="3000"; #$vHostName="BogusHost"; #$vEdgeTrigger="1"; # If you leave any fields blank [most are required] leave them as empty strings [i.e. ""]. # Optional fields are CC/BCC/MessageBodyPrefix and Postfix. # I've tailored this to attempt to fit in a 160 char SMS. # Leave MessageBodyPrefix/MessageBodyProstfix blank if you try to fit in SMS's 160 chars # Keeping everything short is a must! Short email addy's etc. # I've stripped the message body as much as possible too. # You're welcome to tinker if you like, just don't blame me if you break something! :) # You can modify most all of the following variables - leave the code be, unless you know what you're doing. [I don't, and look what happened to me!] $vSMTPHost="smtp.someserver.local"; $vHelloHost="smokeping.somenet.local"; $vDestPort="26"; $vFrom='smokeping at somenet.local'; $vSMTPAuthUser='smokeping at somenet.local'; $vSMTPAuthPass="opensesame"; $vTo='alerts at somenet.local'; #Multi-Address is like this: $vTo='alerts at somenet.local, some.other.addy at somewhere.local'; $vCC=''; $vBCC=''; $vReplyTo='reply.to.smokeping.alerts.here at somenet.local'; $vPriority="1"; #Priority in Mail::Sender: 1-5, 1=high, 5=low $vHeaderSubject="Subject: Smokeping alert: $vTarget"; $vMessageBodyPrefix=""; $vMessageBodyPostfix=""; eval { $smtp = new Mail::Sender { smtp => "$vSMTPHost", from => "$vFrom", port => "$vDestPort", client => "$vHelloHost", authid => "$vSMTPAuthUser", authpwd => "$vSMTPAuthPass", on_errors => 'die', }; $smtp->Open({ to => "$vTo", cc => "$vCC", bcc => "$vBCC", replyto => "$vReplyTo", subject => "$vHeaderSubject", priority => "$vPriority" }); if ($vMessageBodyPrefix ne "") {$smtp->datasend("$vMessageBodyPrefix");} $smtp->SendLineEnc("Alert:$vAlert"); $smtp->SendLineEnc("$vTarget"); $smtp->SendLineEnc("$vPktLoss"); $smtp->SendLineEnc("$vRTT"); $smtp->SendLineEnc("$vHostName"); $smtp->SendLineEnc("ETSt: $vEdgeTrigger"); if ($vMessageBodyPostfix ne "") {$smtp->SendLineEnc("$vMessageBodyPostfix");} $smtp->Close(); }; if ($@) { die "Failed to send the message: $@\n"; } --- TAGS: SMTP Auth, Alternate smtp port, SASL, External smtp server, mail customization, SMS -- Gregory Sloop, Principal: Sloop Network & Computer Consulting 503.251.0452 x82 Voice | 503.251.0452 Fax www.sloop.net mailto:gregs at sloop.net From gregs at sloop.net Mon Sep 5 21:32:15 2011 From: gregs at sloop.net (Gregory Sloop) Date: Mon, 5 Sep 2011 12:32:15 -0700 Subject: [smokeping-users] Patterns Message-ID: <171139949.20110905123215@sloop.net> I'm looking for a pattern that will alert me quickly of any problems. Say, <50% packet loss. I'm more used to Mon's alert system where you can limit the number of alerts you get - and EdgeTrigger can help - but I'm worried that I'll miss the first one. I'd like to get, say 5 alerts, and then no more. So, anyone have any suggestions? --- I've tried to create some patterns that would produce an alert every five minutes [My step time, at least right now, is 60 seconds - which is probably crazy - but I don't have a lot of hosts and I'm working to nail down a problem and five minutes seems too large.] Something that would 1) let me know within five minutes 2) of a loss of 50%+ twice in 10 minutes 3) Would not repeat the alert more than once every 5 minutes. 4) But would let me know at least three times fairly quickly initially. [Say, every minute, or three.] I just can't wrap my head around the patterns well enough to build something like that - if it's even possible. Any suggestions? TIA -Greg -- Gregory Sloop, Principal: Sloop Network & Computer Consulting 503.251.0452 x82 Voice | 503.251.0452 Fax www.sloop.net mailto:gregs at sloop.net From spatieman at online.nl Tue Sep 6 15:51:07 2011 From: spatieman at online.nl (Ton Muller) Date: Tue, 06 Sep 2011 15:51:07 +0200 Subject: [smokeping-users] Smoke isnt build website stats ? :( Message-ID: <4E66254B.8080202@online.nl> Greeting. I got finaly smokeping running on my openBSD box (4.9) after strugeling with the conf files, i manage to run smokeping. i see the data in the DB directory. but smokeping is refusing to build the website in htdocs/smokeping. any advice?? Below my config i use smokeping on LAN webserver only. *** General *** owner = Ton Muller contact = admin@ mailhost = mail. sendmail = /usr/sbin/sendmail imgcache = /var/www/htdocs/smokeping/img imgurl = http://192.168.0.240/smokeping/img pagedir = /var/www/htdocs/smokeping datadir = /var/db/smokeping piddir = /var/run/smokeping cgiurl = http://192.168.0.240/../smokeping/cgi-bin/smokeping.cgi smokemail = /etc/smokeping/smokemail tmail = /etc/smokeping/tmail # specify this to get syslog logging syslogfacility = local0 # each probe is now run in its own process # disable this to revert to the old behaviour # concurrentprobes = no *** Alerts *** to = alert at xs4non.nl from = smokealert at xs4non.nl +bigloss type = loss # in percent pattern = ==0%,==0%,==0%,==0%,>0%,>0%,>0% comment = suddenly there is packet loss +someloss type = loss # in percent pattern = >0%,*12*,>0%,*12*,>0% comment = loss 3 times in a row +startloss type = loss # in percent pattern = ==S,>0%,>0%,>0% comment = loss at startup +rttdetect type = rtt # in milli seconds pattern = <10,<10,<10,<10,<10,<100,>100,>100,>100 comment = routing mesed up again ? *** Database *** step = 300 pings = 20 # 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 = /etc/smokeping/basepage.html + overview width = 600 height = 50 range = 10h + detail width = 600 height = 200 unison_tolerance = 2 "Last 3 Hours" 3h "Last 30 Hours" 30h "Last 10 Days" 10d "Last 400 Days" 400d ## Colors for loss ++ loss_colors 1 00ff00 "<1" 3 0000ff "<3" 1000 ff0000 ">=3" ## Colors for uptime ++ uptime_colors 3600 00ff00 "<1h" 86400 0000ff "<1d" 604800 ff0000 "<1w" 1000000000000 ffff00 ">1w" *** Probes *** ### Probes - The is where we define we want to ### use icmp through fping. We also need to tell ### smokeping where fling resides + FPing binary = /usr/local/sbin/fping hostinterval = 1.5 mininterval = 0.001 offset = 50% packetsize = 500 timeout = 1.5 *** Targets *** probe = FPing menu = Top title = Network Latency Grapher remark = Welcome to the SmokePing website + Local_Network menu = Local Network title = Local Network ++ OpenBSD_Machine title = Internal_Machine Box host = 192.168.0.240 alerts = bigloss ++ Border_Router title = Border Router of ISP host = 192.168.1.1 alerts = bigloss and here the modded smokeping.cgi #!/usr/local/bin/speedy -w # -*-perl-*- use CGI::Carp qw(fatalsToBrowser); use Smokeping 2.003006; Smokeping::cgi("/etc/smokeping/config"); =head1 NAME smokeping.cgi - SmokePing webfrontend ---CUTING EDGES-- When installing SmokePing, this file has to be adjusted to fit your local system. Three paths have to be entered. use lib qw(/usr/local/bin/rrdtool); One pointing to your B installation use lib qw(/usr/local/libdata/perl5/site_perl/smokeping); One pointing to the place where you have installed the SmokePing libraries use Smokeping; Smokeping::cgi("/etc/smokeping/config"); The third path is the argument to the Smokeping::cgi command. It points to the SmokePing configuration file. thanks.. tony. From spatieman at online.nl Tue Sep 6 20:18:13 2011 From: spatieman at online.nl (Ton Muller) Date: Tue, 06 Sep 2011 20:18:13 +0200 Subject: [smokeping-users] Smoke isnt build website stats ? :( In-Reply-To: <162498376.20110906092437@sloop.net> References: <4E66254B.8080202@online.nl> <162498376.20110906092437@sloop.net> Message-ID: <4E6663E5.7090909@online.nl> Hello Greg. Well, lets see. files in /var/db/smokeling are ok. 755 _smokeping _smokeping, so DB files are ok. message log says ...nothing.... smokeping CGI directory 755 root deamon, inc cgi and smokeping.cgi and no error in error.log, so i guess its working. pagedir for smokeping in htdocs 755 was root deamon :/ ,is now _smokeping _smokeping. but after 15 minutes still no result no files written in it. apache cant serv if smoke isnt writing in it ,hehe.. with the new settings i still can access the smokeping over http. Regards. On 6-9-2011 18:24, Gregory Sloop wrote: > If I were guessing, I'd probably say it's a permission problem with > TM> imgcache = /var/www/htdocs/smokeping/img > and > TM> pagedir = /var/www/htdocs/smokeping > > Does the user smokeping is running as have rights there? > > Are the files not getting built, or will apache refuse to serve them? > > If the latter, then the apache logs will tell you. If the former, the > message log should say, _I think._ > > Just a start. I'm hope someone more knowledgeable will hop in, since > I'm not the best guy for helping tshoot this kind of thing, esp on > BSD. > > -Greg > > TM> Greeting. > TM> I got finaly smokeping running on my openBSD box (4.9) > TM> after strugeling with the conf files, i manage to run smokeping. > TM> i see the data in the DB directory. > TM> but smokeping is refusing to build the website in htdocs/smokeping. > > TM> any advice?? > > TM> Below my config > TM> i use smokeping on LAN webserver only. > > TM> *** General *** > > TM> owner = Ton Muller > TM> contact = admin@ > TM> mailhost = mail. > TM> sendmail = /usr/sbin/sendmail > TM> imgcache = /var/www/htdocs/smokeping/img > TM> imgurl = http://192.168.0.240/smokeping/img > TM> pagedir = /var/www/htdocs/smokeping > TM> datadir = /var/db/smokeping > TM> piddir = /var/run/smokeping > TM> cgiurl = http://192.168.0.240/../smokeping/cgi-bin/smokeping.cgi > TM> smokemail = /etc/smokeping/smokemail > TM> tmail = /etc/smokeping/tmail > TM> # specify this to get syslog logging > TM> syslogfacility = local0 > TM> # each probe is now run in its own process > TM> # disable this to revert to the old behaviour > TM> # concurrentprobes = no > > From spatieman at online.nl Tue Sep 6 21:15:29 2011 From: spatieman at online.nl (Ton Muller) Date: Tue, 06 Sep 2011 21:15:29 +0200 Subject: [smokeping-users] Smoke isnt build website stats ? :( In-Reply-To: <20110906183153.GA36380@ns.umpquanet.com> References: <4E66254B.8080202@online.nl> <162498376.20110906092437@sloop.net> <4E6663E5.7090909@online.nl> <20110906183153.GA36380@ns.umpquanet.com> Message-ID: <4E667151.5090704@online.nl> Hello. results.. # ps -auxww | grep "[s]moke" _smokeping 31627 0.0 0.5 11920 5264 ?? Is 5:43PM 0:00.70 perl: /usr/local/bin/smokeping [FPing] (perl) you have mail in /var/mail/root # 2nd. # ps -auxww | grep "[h]ttp" www 27021 0.0 0.2 1272 2400 ?? Ss 4:54PM 0:00.29 httpd: parent [chroot /var/www] (httpd) www 17660 0.0 0.2 1276 1848 ?? I 4:55PM 0:00.02 httpd: child (httpd) www 4155 0.0 0.2 1276 1852 ?? I 4:55PM 0:00.03 httpd: child (httpd) www 15314 0.0 0.2 1276 1848 ?? I 4:55PM 0:00.03 httpd: child (httpd) www 30267 0.0 0.2 1300 1868 ?? I 4:55PM 0:00.03 httpd: child (httpd) www 30841 0.0 0.2 1276 1864 ?? I 4:55PM 0:00.03 httpd: child (httpd) www 21725 0.0 0.2 1276 1804 ?? I 5:50PM 0:00.02 httpd: child (httpd) www 29482 0.0 0.2 1276 1864 ?? I 5:50PM 0:00.02 httpd: child (httpd) www 3385 0.0 0.2 1276 1868 ?? I 5:50PM 0:00.02 httpd: child (httpd) www 14873 0.0 0.2 1276 1804 ?? I 6:55PM 0:00.02 httpd: child (httpd) www 14707 0.0 0.2 1276 1876 ?? I 6:55PM 0:00.02 httpd: child (httpd) # 3th.. # ls -ld /var/www /var/www/htdocs /var/www/htdocs/smokeping /var/www/htdocs/smokeping/img /var/db/smokeping drwxr-xr-x 3 _smokeping _smokeping 512 Sep 6 14:53 /var/db/smokeping drwxr-xr-x 11 root daemon 512 Sep 5 22:29 /var/www drwxr-xr-x 6 root daemon 512 Sep 6 17:46 /var/www/htdocs drwxr-xr-x 4 _smokeping _smokeping 512 Sep 5 22:12 /var/www/htdocs/smokeping drwxr-xr-x 2 www daemon 512 Sep 5 22:12 /var/www/htdocs/smokeping/img # than. # ls -l /var/www/htdocs/smokeping/index.html ls: /var/www/htdocs/smokeping/index.html: No such file or directory # (smoke isnt making index files as sayed) and ! # ls -l /var/www/htdocs/smokeping/index.html ls: /var/www/htdocs/smokeping/index.html: No such file or directory # echo "hello, world." > /var/www/htdocs/smokeping/test.html # ls -l /var/www/htdocs/smokeping/test.html -rw-r--r-- 1 root _smokeping 27 Sep 6 21:13 /var/www/htdocs/smokeping/test.html # so yes, write able. http://192.168.0.240/smokeping/test.html says hello world. Regards. Ton. ... Feel the power of my shell !! On 6-9-2011 20:31, Jim Long wrote: > Hi, Ton. I didn't notice that you were running BSD. I run smokeping > on FreeBSD, so perhaps I'll jump in here. > > Gregory's line of inquiry is good. Please show the output of: > > ps -auxww | grep "[s]moke" > > and > > ps -auxww | grep "[h]ttp" > > and > > ls -ld /var/www /var/www/htdocs /var/www/htdocs/smokeping /var/www/htdocs/smokeping/img /var/db/smokeping > > Also, check your Apache setup to make sure it's relatively sound. > What is the output of ls -l /var/www/htdocs/smokeping/index.html ? > If there is an index.html file there, can you view it with a web > browser pointed at the correct URL? If there is NOT an index.html > file there, try: > > echo "hello, world." > /var/www/htdocs/smokeping/test.html > > Then please show: > > ls -l /var/www/htdocs/smokeping/test.html > > and report the success of: > > http://192.168.0.240/smokeping/test.html > > > > On Tue, Sep 06, 2011 at 08:18:13PM +0200, Ton Muller wrote: >> Hello Greg. >> >> Well, lets see. >> files in /var/db/smokeling are ok. >> 755 _smokeping _smokeping, so DB files are ok. >> >> message log says ...nothing.... >> smokeping CGI directory 755 root deamon, inc cgi and smokeping.cgi >> and no error in error.log, so i guess its working. >> >> pagedir for smokeping in htdocs 755 was root deamon :/ ,is now >> _smokeping _smokeping. but after 15 minutes still no result >> no files written in it. >> apache cant serv if smoke isnt writing in it ,hehe.. >> with the new settings i still can access the smokeping over http. >> >> Regards. >> >> >> On 6-9-2011 18:24, Gregory Sloop wrote: >>> If I were guessing, I'd probably say it's a permission problem with >>> TM> imgcache = /var/www/htdocs/smokeping/img >>> and >>> TM> pagedir = /var/www/htdocs/smokeping >>> >>> Does the user smokeping is running as have rights there? >>> >>> Are the files not getting built, or will apache refuse to serve them? >>> >>> If the latter, then the apache logs will tell you. If the former, the >>> message log should say, _I think._ >>> >>> Just a start. I'm hope someone more knowledgeable will hop in, since >>> I'm not the best guy for helping tshoot this kind of thing, esp on >>> BSD. >>> >>> -Greg >>> >>> TM> Greeting. >>> TM> I got finaly smokeping running on my openBSD box (4.9) >>> TM> after strugeling with the conf files, i manage to run smokeping. >>> TM> i see the data in the DB directory. >>> TM> but smokeping is refusing to build the website in htdocs/smokeping. >>> >>> TM> any advice?? >>> >>> TM> Below my config >>> TM> i use smokeping on LAN webserver only. >>> >>> TM> *** General *** >>> >>> TM> owner = Ton Muller >>> TM> contact = admin@ >>> TM> mailhost = mail. >>> TM> sendmail = /usr/sbin/sendmail >>> TM> imgcache = /var/www/htdocs/smokeping/img >>> TM> imgurl = http://192.168.0.240/smokeping/img >>> TM> pagedir = /var/www/htdocs/smokeping >>> TM> datadir = /var/db/smokeping >>> TM> piddir = /var/run/smokeping >>> TM> cgiurl = http://192.168.0.240/../smokeping/cgi-bin/smokeping.cgi >>> TM> smokemail = /etc/smokeping/smokemail >>> TM> tmail = /etc/smokeping/tmail >>> TM> # specify this to get syslog logging >>> TM> syslogfacility = local0 >>> TM> # each probe is now run in its own process >>> TM> # disable this to revert to the old behaviour >>> TM> # concurrentprobes = no >>> >>> >> >> _______________________________________________ >> smokeping-users mailing list >> smokeping-users at lists.oetiker.ch >> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users > From spatieman at online.nl Tue Sep 6 22:30:29 2011 From: spatieman at online.nl (Ton Muller) Date: Tue, 06 Sep 2011 22:30:29 +0200 Subject: [smokeping-users] Smoke isnt build website stats ? :( In-Reply-To: References: <4E66254B.8080202@online.nl> <162498376.20110906092437@sloop.net> <4E6663E5.7090909@online.nl> <20110906183153.GA36380@ns.umpquanet.com> <4E667151.5090704@online.nl> Message-ID: <4E6682E5.7020101@online.nl> hmm, no i didnt..... # smokeping --debug Dropping privileges to _smokeping ... ### Compiling alert detector pattern 'startloss' ### ==S,>0%,>0%,>0% sub { my $d = shift; my $y = $d->{loss}; for(1){ my $minlength = 4; my $maxlength = 4; next if scalar @$y < $minlength ; next unless defined $y->[-4] and $y->[-4] eq 'S'; next unless defined $y->[-3] and $y->[-3] =~ /^\d/ and $y->[-3] > 0; next unless defined $y->[-2] and $y->[-2] =~ /^\d/ and $y->[-2] > 0; next unless defined $y->[-1] and $y->[-1] =~ /^\d/ and $y->[-1] > 0; return 1; } return 0; } ### Compiling alert detector pattern 'rttdetect' ### <10,<10,<10,<10,<10,<100,>100,>100,>100 sub { my $d = shift; my $y = $d->{rtt}; for(1){ my $minlength = 9; my $maxlength = 9; next if scalar @$y < $minlength ; next unless defined $y->[-9] and $y->[-9] =~ /^\d/ and $y->[-9] < 0.01; next unless defined $y->[-8] and $y->[-8] =~ /^\d/ and $y->[-8] < 0.01; next unless defined $y->[-7] and $y->[-7] =~ /^\d/ and $y->[-7] < 0.01; next unless defined $y->[-6] and $y->[-6] =~ /^\d/ and $y->[-6] < 0.01; next unless defined $y->[-5] and $y->[-5] =~ /^\d/ and $y->[-5] < 0.01; next unless defined $y->[-4] and $y->[-4] =~ /^\d/ and $y->[-4] < 0.1; next unless defined $y->[-3] and $y->[-3] =~ /^\d/ and $y->[-3] > 0.1; next unless defined $y->[-2] and $y->[-2] =~ /^\d/ and $y->[-2] > 0.1; next unless defined $y->[-1] and $y->[-1] =~ /^\d/ and $y->[-1] > 0.1; return 1; } return 0; } ### Compiling alert detector pattern 'bigloss' ### ==0%,==0%,==0%,==0%,>0%,>0%,>0% sub { my $d = shift; my $y = $d->{loss}; for(1){ my $minlength = 7; my $maxlength = 7; next if scalar @$y < $minlength ; next unless defined $y->[-7] and $y->[-7] =~ /^\d/ and $y->[-7] == 0; next unless defined $y->[-6] and $y->[-6] =~ /^\d/ and $y->[-6] == 0; next unless defined $y->[-5] and $y->[-5] =~ /^\d/ and $y->[-5] == 0; next unless defined $y->[-4] and $y->[-4] =~ /^\d/ and $y->[-4] == 0; next unless defined $y->[-3] and $y->[-3] =~ /^\d/ and $y->[-3] > 0; next unless defined $y->[-2] and $y->[-2] =~ /^\d/ and $y->[-2] > 0; next unless defined $y->[-1] and $y->[-1] =~ /^\d/ and $y->[-1] > 0; return 1; } return 0; } ### Compiling alert detector pattern 'someloss' ### >0%,*12*,>0%,*12*,>0% sub { my $d = shift; my $y = $d->{loss}; for(1){ my $imax2 = min(@$y - 3, 12); my $imax1 = min(@$y - 3, 12); my $minlength = 3; my $maxlength = 27; next if scalar @$y < $minlength ; my $i1; for($i1=0; $i1 < min($maxlength,$imax1); $i1++){ my $i2; for($i2=0; $i2 < min($maxlength-$i1,$imax2); $i2++){ next unless defined $y->[-3-$i1-$i2] and $y->[-3-$i1-$i2] =~ /^\d/ and $y->[-3-$i1-$i2] > 0; last; } return 0 if $i2 >= min($maxlength-$i1-$i2,$imax2); next unless defined $y->[-2-$i1] and $y->[-2-$i1] =~ /^\d/ and $y->[-2-$i1] > 0; last; } return 0 if $i1 >= min($maxlength-$i1,$imax1); next unless defined $y->[-1] and $y->[-1] =~ /^\d/ and $y->[-1] > 0; return 1; } return 0; } Smokeping version 2.003006 successfully launched. Not entering multiprocess mode with '--debug'. Use '--debug-daemon' for that. FPing: probing 2 targets with step 300 s and offset 266 s. FPing: Executing /usr/local/sbin/fping -C 20 -q -B1 -r1 -b500 -t1500 -i1 -p1500 192.168.0.240 192.168.1.1 FPing: Got fping output: 'fping: these options are too risky for mere mortals.' FPing: Got fping output: 'fping: You need i >= 10, p >= 20, r < 20, and t >= 50' FPing: Got fping output: '' FPing: Got fping output: 'Usage: fping [options] [targets...]' FPing: Got fping output: ' -a show targets that are alive' FPing: Got fping output: ' -A show targets by address' FPing: Got fping output: ' -b n amount of ping data to send, in bytes (default 500)' FPing: Got fping output: ' -B f set exponential backoff factor to f' FPing: Got fping output: ' -c n count of pings to send to each target (default 20)' FPing: Got fping output: ' -C n same as -c, report results in verbose format' FPing: Got fping output: ' -e show elapsed time on return packets' FPing: Got fping output: ' -f file read list of targets from a file ( - means stdin) (only if no -g specified)' FPing: Got fping output: ' -g generate target list (only if no -f specified)' FPing: Got fping output: ' (specify the start and end IP in the target list, or supply a IP netmask)' FPing: Got fping output: ' (ex. fping -g 192.168.1.0 192.168.1.255 or fping -g 192.168.1.0/24)' FPing: Got fping output: ' -i n interval between sending ping packets (in millisec) (default 1)' FPing: Got fping output: ' -l loop sending pings forever' FPing: Got fping output: ' -m ping multiple interfaces on target host' FPing: Got fping output: ' -n show targets by name (-d is equivalent)' FPing: Got fping output: ' -p n interval between ping packets to one target (in millisec)' FPing: Got fping output: ' (in looping and counting modes, default 1500)' FPing: Got fping output: ' -q quiet (don't show per-target/per-ping results)' FPing: Got fping output: ' -Q n same as -q, but show summary every n seconds' FPing: Got fping output: ' -r n number of retries (default 3)' FPing: Got fping output: ' -s print final stats' FPing: Got fping output: ' -S addr set source address' FPing: Got fping output: ' -t n individual target initial timeout (in millisec) (default 1500)' FPing: Got fping output: ' -T n set select timeout (default 10)' FPing: Got fping output: ' -u show targets that are unreachable' FPing: Got fping output: ' -O n set the type of service (tos) flag on the ICMP packets' FPing: Got fping output: ' -v show version' FPing: Got fping output: ' targets list of targets to check (if no -f specified)' FPing: Got fping output: '' Calling RRDs::update(/var/db/smokeping/Local_Network/OpenBSD_Machine.rrd --template uptime:loss:median:ping1:ping2:ping3:ping4:ping5:ping6:ping7:ping8:ping9:ping10:ping11:ping12:ping13:ping14:ping15:ping16:ping17:ping18:ping19:ping20 1315340785:U:20:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U) Alert "bigloss": no match for target /var/db/smokeping/Local_Network/OpenBSD_Machine Calling RRDs::update(/var/db/smokeping/Local_Network/Border_Router.rrd --template uptime:loss:median:ping1:ping2:ping3:ping4:ping5:ping6:ping7:ping8:ping9:ping10:ping11:ping12:ping13:ping14:ping15:ping16:ping17:ping18:ping19:ping20 1315340785:U:20:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U) Alert "bigloss": no match for target /var/db/smokeping/Local_Network/Border_Router # cant see any weard things. but as sayed. rrd is building DB files. but smoke isnt making its stats in htdocs.. i almost would say, that i need to make it manualy........ tony. On 6-9-2011 22:10, Greg Sloop wrote: > Sorry if this seems really obvious, but did you try smokeping --debug? > > It should let you know if it finds problems with the config etc... > > -Greg > > On Tue, Sep 6, 2011 at 12:15 PM, Ton Muller wrote: >> Hello. >> >> results.. >> # ps -auxww | grep "[s]moke" >> _smokeping 31627 0.0 0.5 11920 5264 ?? Is 5:43PM 0:00.70 >> perl: /usr/local/bin/smokeping [FPing] (perl) >> you have mail in /var/mail/root >> # >> >> 2nd. >> # ps -auxww | grep "[h]ttp" >> www 27021 0.0 0.2 1272 2400 ?? Ss 4:54PM 0:00.29 httpd: >> parent [chroot /var/www] (httpd) >> www 17660 0.0 0.2 1276 1848 ?? I 4:55PM 0:00.02 httpd: >> child (httpd) >> www 4155 0.0 0.2 1276 1852 ?? I 4:55PM 0:00.03 httpd: >> child (httpd) >> www 15314 0.0 0.2 1276 1848 ?? I 4:55PM 0:00.03 httpd: >> child (httpd) >> www 30267 0.0 0.2 1300 1868 ?? I 4:55PM 0:00.03 httpd: >> child (httpd) >> www 30841 0.0 0.2 1276 1864 ?? I 4:55PM 0:00.03 httpd: >> child (httpd) >> www 21725 0.0 0.2 1276 1804 ?? I 5:50PM 0:00.02 httpd: >> child (httpd) >> www 29482 0.0 0.2 1276 1864 ?? I 5:50PM 0:00.02 httpd: >> child (httpd) >> www 3385 0.0 0.2 1276 1868 ?? I 5:50PM 0:00.02 httpd: >> child (httpd) >> www 14873 0.0 0.2 1276 1804 ?? I 6:55PM 0:00.02 httpd: >> child (httpd) >> www 14707 0.0 0.2 1276 1876 ?? I 6:55PM 0:00.02 httpd: >> child (httpd) >> # >> >> 3th.. >> # ls -ld /var/www /var/www/htdocs /var/www/htdocs/smokeping >> /var/www/htdocs/smokeping/img /var/db/smokeping >> drwxr-xr-x 3 _smokeping _smokeping 512 Sep 6 14:53 /var/db/smokeping >> drwxr-xr-x 11 root daemon 512 Sep 5 22:29 /var/www >> drwxr-xr-x 6 root daemon 512 Sep 6 17:46 /var/www/htdocs >> drwxr-xr-x 4 _smokeping _smokeping 512 Sep 5 22:12 >> /var/www/htdocs/smokeping >> drwxr-xr-x 2 www daemon 512 Sep 5 22:12 >> /var/www/htdocs/smokeping/img >> # >> >> than. >> >> # ls -l /var/www/htdocs/smokeping/index.html >> ls: /var/www/htdocs/smokeping/index.html: No such file or directory >> # >> (smoke isnt making index files as sayed) >> >> >> and ! >> # ls -l /var/www/htdocs/smokeping/index.html >> ls: /var/www/htdocs/smokeping/index.html: No such file or directory >> # echo "hello, world." > /var/www/htdocs/smokeping/test.html >> # ls -l /var/www/htdocs/smokeping/test.html >> -rw-r--r-- 1 root _smokeping 27 Sep 6 21:13 >> /var/www/htdocs/smokeping/test.html >> # >> >> so yes, write able. >> >> http://192.168.0.240/smokeping/test.html >> says hello world. >> >> Regards. >> Ton. >> ... Feel the power of my shell !! >> >> On 6-9-2011 20:31, Jim Long wrote: >>> Hi, Ton. I didn't notice that you were running BSD. I run smokeping >>> on FreeBSD, so perhaps I'll jump in here. >>> >>> Gregory's line of inquiry is good. Please show the output of: >>> >>> ps -auxww | grep "[s]moke" >>> >>> and >>> >>> ps -auxww | grep "[h]ttp" >>> >>> and >>> >>> ls -ld /var/www /var/www/htdocs /var/www/htdocs/smokeping /var/www/htdocs/smokeping/img /var/db/smokeping >>> >>> Also, check your Apache setup to make sure it's relatively sound. >>> What is the output of ls -l /var/www/htdocs/smokeping/index.html ? >>> If there is an index.html file there, can you view it with a web >>> browser pointed at the correct URL? If there is NOT an index.html >>> file there, try: >>> >>> echo "hello, world." > /var/www/htdocs/smokeping/test.html >>> >>> Then please show: >>> >>> ls -l /var/www/htdocs/smokeping/test.html >>> >>> and report the success of: >>> >>> http://192.168.0.240/smokeping/test.html >>> >>> >>> >>> On Tue, Sep 06, 2011 at 08:18:13PM +0200, Ton Muller wrote: >>>> Hello Greg. >>>> >>>> Well, lets see. >>>> files in /var/db/smokeling are ok. >>>> 755 _smokeping _smokeping, so DB files are ok. >>>> >>>> message log says ...nothing.... >>>> smokeping CGI directory 755 root deamon, inc cgi and smokeping.cgi >>>> and no error in error.log, so i guess its working. >>>> >>>> pagedir for smokeping in htdocs 755 was root deamon :/ ,is now >>>> _smokeping _smokeping. but after 15 minutes still no result >>>> no files written in it. >>>> apache cant serv if smoke isnt writing in it ,hehe.. >>>> with the new settings i still can access the smokeping over http. >>>> >>>> Regards. >>>> >>>> >>>> On 6-9-2011 18:24, Gregory Sloop wrote: >>>>> If I were guessing, I'd probably say it's a permission problem with >>>>> TM> imgcache = /var/www/htdocs/smokeping/img >>>>> and >>>>> TM> pagedir = /var/www/htdocs/smokeping >>>>> >>>>> Does the user smokeping is running as have rights there? >>>>> >>>>> Are the files not getting built, or will apache refuse to serve them? >>>>> >>>>> If the latter, then the apache logs will tell you. If the former, the >>>>> message log should say, _I think._ >>>>> >>>>> Just a start. I'm hope someone more knowledgeable will hop in, since >>>>> I'm not the best guy for helping tshoot this kind of thing, esp on >>>>> BSD. >>>>> >>>>> -Greg >>>>> >>>>> TM> Greeting. >>>>> TM> I got finaly smokeping running on my openBSD box (4.9) >>>>> TM> after strugeling with the conf files, i manage to run smokeping. >>>>> TM> i see the data in the DB directory. >>>>> TM> but smokeping is refusing to build the website in htdocs/smokeping. >>>>> >>>>> TM> any advice?? >>>>> >>>>> TM> Below my config >>>>> TM> i use smokeping on LAN webserver only. >>>>> >>>>> TM> *** General *** >>>>> >>>>> TM> owner = Ton Muller >>>>> TM> contact = admin@ >>>>> TM> mailhost = mail. >>>>> TM> sendmail = /usr/sbin/sendmail >>>>> TM> imgcache = /var/www/htdocs/smokeping/img >>>>> TM> imgurl = http://192.168.0.240/smokeping/img >>>>> TM> pagedir = /var/www/htdocs/smokeping >>>>> TM> datadir = /var/db/smokeping >>>>> TM> piddir = /var/run/smokeping >>>>> TM> cgiurl = http://192.168.0.240/../smokeping/cgi-bin/smokeping.cgi >>>>> TM> smokemail = /etc/smokeping/smokemail >>>>> TM> tmail = /etc/smokeping/tmail >>>>> TM> # specify this to get syslog logging >>>>> TM> syslogfacility = local0 >>>>> TM> # each probe is now run in its own process >>>>> TM> # disable this to revert to the old behaviour >>>>> TM> # concurrentprobes = no >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> smokeping-users mailing list >>>> smokeping-users at lists.oetiker.ch >>>> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users >>> >> >> _______________________________________________ >> smokeping-users mailing list >> smokeping-users at lists.oetiker.ch >> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users >> > From spatieman at online.nl Tue Sep 6 22:39:05 2011 From: spatieman at online.nl (Ton Muller) Date: Tue, 06 Sep 2011 22:39:05 +0200 Subject: [smokeping-users] Smoke isnt build website stats ? :( In-Reply-To: <20110906201303.GD36380@ns.umpquanet.com> References: <4E66254B.8080202@online.nl> <162498376.20110906092437@sloop.net> <4E6663E5.7090909@online.nl> <20110906183153.GA36380@ns.umpquanet.com> <4E667151.5090704@online.nl> <20110906201303.GD36380@ns.umpquanet.com> Message-ID: <4E6684E9.2070403@online.nl> uh?? smokeping.log ??? now you mention it.. there is non there. and for the chrooted, not sure. i am more a pf guy,hehe.. On 6-9-2011 22:13, Jim Long wrote: > Just for good measure, I'd suggest stopping smokeping, and then > checking with ps to ensure that all smokeping processes have > terminated. Once all smokeping processes have terminated, > restart smokeping, to ensure that it is incorporating your latest > changes. > > How is your logging configured in smokeping? Are there any > interesting entries in the smokeping log? With the standard > FreeBSD port, the default log location is /var/log/smokeping.log, > but it could be different on OpenBSD. > > Permissions look acceptable, although not optimal. The test.html > wasn't a writeability test -- EVERYTHING is writable by root! It > was a test to ensure your Apache is functional, and also to see > what default group ownership files created there would inherit. > > I note that your Apache is chrooted in /var/www. I've never done > that. I don't know smokeping well enough to know whether the cgi > script (that runs from the chrooted Apache process) requires > access to /var/db/smokeping. If it does, you're hosed, because > that's outside the chroot. > > SUBJECT TO CORRECTION, PLEASE: > > It is my understanding that the graphic files and html are > created by the smokeping daemon, which is not subject to the > chrooted Apache configuration, because the smokeping daemon is > a separate process which is configured/started/stopped > independently of how Apachei runs. But as I said above, if the > CGI script ever requires access to anything in /var/db/smokeping > (or indeed, anything that is not under /var/www/...), then the > chroot option in Apache is going to create problems. > > While you're checking the smokeping logs, check the Apache logs > also to see if the CGI script is logging anything interesting. > > Jim > > > On Tue, Sep 06, 2011 at 09:15:29PM +0200, Ton Muller wrote: >> Hello. >> >> results.. >> # ps -auxww | grep "[s]moke" >> _smokeping 31627 0.0 0.5 11920 5264 ?? Is 5:43PM 0:00.70 >> perl: /usr/local/bin/smokeping [FPing] (perl) >> you have mail in /var/mail/root >> # >> >> 2nd. >> # ps -auxww | grep "[h]ttp" >> www 27021 0.0 0.2 1272 2400 ?? Ss 4:54PM 0:00.29 httpd: >> parent [chroot /var/www] (httpd) >> www 17660 0.0 0.2 1276 1848 ?? I 4:55PM 0:00.02 httpd: >> child (httpd) >> www 4155 0.0 0.2 1276 1852 ?? I 4:55PM 0:00.03 httpd: >> child (httpd) >> www 15314 0.0 0.2 1276 1848 ?? I 4:55PM 0:00.03 httpd: >> child (httpd) >> www 30267 0.0 0.2 1300 1868 ?? I 4:55PM 0:00.03 httpd: >> child (httpd) >> www 30841 0.0 0.2 1276 1864 ?? I 4:55PM 0:00.03 httpd: >> child (httpd) >> www 21725 0.0 0.2 1276 1804 ?? I 5:50PM 0:00.02 httpd: >> child (httpd) >> www 29482 0.0 0.2 1276 1864 ?? I 5:50PM 0:00.02 httpd: >> child (httpd) >> www 3385 0.0 0.2 1276 1868 ?? I 5:50PM 0:00.02 httpd: >> child (httpd) >> www 14873 0.0 0.2 1276 1804 ?? I 6:55PM 0:00.02 httpd: >> child (httpd) >> www 14707 0.0 0.2 1276 1876 ?? I 6:55PM 0:00.02 httpd: >> child (httpd) >> # >> >> 3th.. >> # ls -ld /var/www /var/www/htdocs /var/www/htdocs/smokeping >> /var/www/htdocs/smokeping/img /var/db/smokeping >> drwxr-xr-x 3 _smokeping _smokeping 512 Sep 6 14:53 /var/db/smokeping >> drwxr-xr-x 11 root daemon 512 Sep 5 22:29 /var/www >> drwxr-xr-x 6 root daemon 512 Sep 6 17:46 /var/www/htdocs >> drwxr-xr-x 4 _smokeping _smokeping 512 Sep 5 22:12 >> /var/www/htdocs/smokeping >> drwxr-xr-x 2 www daemon 512 Sep 5 22:12 >> /var/www/htdocs/smokeping/img >> # >> >> than. >> >> # ls -l /var/www/htdocs/smokeping/index.html >> ls: /var/www/htdocs/smokeping/index.html: No such file or directory >> # >> (smoke isnt making index files as sayed) >> >> >> and ! >> # ls -l /var/www/htdocs/smokeping/index.html >> ls: /var/www/htdocs/smokeping/index.html: No such file or directory >> # echo "hello, world." > /var/www/htdocs/smokeping/test.html >> # ls -l /var/www/htdocs/smokeping/test.html >> -rw-r--r-- 1 root _smokeping 27 Sep 6 21:13 >> /var/www/htdocs/smokeping/test.html >> # >> >> so yes, write able. >> >> http://192.168.0.240/smokeping/test.html >> says hello world. >> >> Regards. >> Ton. >> ... Feel the power of my shell !! >> >> On 6-9-2011 20:31, Jim Long wrote: >>> Hi, Ton. I didn't notice that you were running BSD. I run smokeping >>> on FreeBSD, so perhaps I'll jump in here. >>> >>> Gregory's line of inquiry is good. Please show the output of: >>> >>> ps -auxww | grep "[s]moke" >>> >>> and >>> >>> ps -auxww | grep "[h]ttp" >>> >>> and >>> >>> ls -ld /var/www /var/www/htdocs /var/www/htdocs/smokeping /var/www/htdocs/smokeping/img /var/db/smokeping >>> >>> Also, check your Apache setup to make sure it's relatively sound. >>> What is the output of ls -l /var/www/htdocs/smokeping/index.html ? >>> If there is an index.html file there, can you view it with a web >>> browser pointed at the correct URL? If there is NOT an index.html >>> file there, try: >>> >>> echo "hello, world." > /var/www/htdocs/smokeping/test.html >>> >>> Then please show: >>> >>> ls -l /var/www/htdocs/smokeping/test.html >>> >>> and report the success of: >>> >>> http://192.168.0.240/smokeping/test.html >>> >>> >>> >>> On Tue, Sep 06, 2011 at 08:18:13PM +0200, Ton Muller wrote: >>>> Hello Greg. >>>> >>>> Well, lets see. >>>> files in /var/db/smokeling are ok. >>>> 755 _smokeping _smokeping, so DB files are ok. >>>> >>>> message log says ...nothing.... >>>> smokeping CGI directory 755 root deamon, inc cgi and smokeping.cgi >>>> and no error in error.log, so i guess its working. >>>> >>>> pagedir for smokeping in htdocs 755 was root deamon :/ ,is now >>>> _smokeping _smokeping. but after 15 minutes still no result >>>> no files written in it. >>>> apache cant serv if smoke isnt writing in it ,hehe.. >>>> with the new settings i still can access the smokeping over http. >>>> >>>> Regards. >>>> >>>> >>>> On 6-9-2011 18:24, Gregory Sloop wrote: >>>>> If I were guessing, I'd probably say it's a permission problem with >>>>> TM> imgcache = /var/www/htdocs/smokeping/img >>>>> and >>>>> TM> pagedir = /var/www/htdocs/smokeping >>>>> >>>>> Does the user smokeping is running as have rights there? >>>>> >>>>> Are the files not getting built, or will apache refuse to serve them? >>>>> >>>>> If the latter, then the apache logs will tell you. If the former, the >>>>> message log should say, _I think._ >>>>> >>>>> Just a start. I'm hope someone more knowledgeable will hop in, since >>>>> I'm not the best guy for helping tshoot this kind of thing, esp on >>>>> BSD. >>>>> >>>>> -Greg >>>>> >>>>> TM> Greeting. >>>>> TM> I got finaly smokeping running on my openBSD box (4.9) >>>>> TM> after strugeling with the conf files, i manage to run smokeping. >>>>> TM> i see the data in the DB directory. >>>>> TM> but smokeping is refusing to build the website in htdocs/smokeping. >>>>> >>>>> TM> any advice?? >>>>> >>>>> TM> Below my config >>>>> TM> i use smokeping on LAN webserver only. >>>>> >>>>> TM> *** General *** >>>>> >>>>> TM> owner = Ton Muller >>>>> TM> contact = admin@ >>>>> TM> mailhost = mail. >>>>> TM> sendmail = /usr/sbin/sendmail >>>>> TM> imgcache = /var/www/htdocs/smokeping/img >>>>> TM> imgurl = http://192.168.0.240/smokeping/img >>>>> TM> pagedir = /var/www/htdocs/smokeping >>>>> TM> datadir = /var/db/smokeping >>>>> TM> piddir = /var/run/smokeping >>>>> TM> cgiurl = http://192.168.0.240/../smokeping/cgi-bin/smokeping.cgi >>>>> TM> smokemail = /etc/smokeping/smokemail >>>>> TM> tmail = /etc/smokeping/tmail >>>>> TM> # specify this to get syslog logging >>>>> TM> syslogfacility = local0 >>>>> TM> # each probe is now run in its own process >>>>> TM> # disable this to revert to the old behaviour >>>>> TM> # concurrentprobes = no >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> smokeping-users mailing list >>>> smokeping-users at lists.oetiker.ch >>>> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users >>> >> >> _______________________________________________ >> smokeping-users mailing list >> smokeping-users at lists.oetiker.ch >> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users > From smokeping at museum.rain.com Tue Sep 6 22:51:24 2011 From: smokeping at museum.rain.com (Jim Long) Date: Tue, 6 Sep 2011 13:51:24 -0700 Subject: [smokeping-users] Smoke isnt build website stats ? :( In-Reply-To: <4E6684E9.2070403@online.nl> References: <4E66254B.8080202@online.nl> <162498376.20110906092437@sloop.net> <4E6663E5.7090909@online.nl> <20110906183153.GA36380@ns.umpquanet.com> <4E667151.5090704@online.nl> <20110906201303.GD36380@ns.umpquanet.com> <4E6684E9.2070403@online.nl> Message-ID: <20110906205124.GB55801@ns.umpquanet.com> Once you get the big issues sorted, I strongly suggest you iron out the logging for smokeping. In FreeBSD, the default log file is /var/log/smokeping.log. I don't know whether OpenBSD has adopted FreeBSD/NetBSD conventions for config options to add-on software like smokeping, but in FreeBSD, I can set the log file by specifying a "smokeping_logfile" variable in /etc/rc.conf: smokeping_enable="yes" smokeping_logfile="/var/log/smokeping.log" Check your smokeping start-up script to see what hooks it has to set a logfile name, if any. Bottom line, get your smokeping logging straightened out once you get the bigger issues resolved. You definitely want smokeping to be able to log error conditions and progress indicators. Jim On Tue, Sep 06, 2011 at 10:39:05PM +0200, Ton Muller wrote: > uh?? > smokeping.log ??? > now you mention it.. > there is non there. > and for the chrooted, not sure. > i am more a pf guy,hehe.. > > On 6-9-2011 22:13, Jim Long wrote: > > Just for good measure, I'd suggest stopping smokeping, and then > > checking with ps to ensure that all smokeping processes have > > terminated. Once all smokeping processes have terminated, > > restart smokeping, to ensure that it is incorporating your latest > > changes. > > > > How is your logging configured in smokeping? Are there any > > interesting entries in the smokeping log? With the standard > > FreeBSD port, the default log location is /var/log/smokeping.log, > > but it could be different on OpenBSD. > > > > Permissions look acceptable, although not optimal. The test.html > > wasn't a writeability test -- EVERYTHING is writable by root! It > > was a test to ensure your Apache is functional, and also to see > > what default group ownership files created there would inherit. > > > > I note that your Apache is chrooted in /var/www. I've never done > > that. I don't know smokeping well enough to know whether the cgi > > script (that runs from the chrooted Apache process) requires > > access to /var/db/smokeping. If it does, you're hosed, because > > that's outside the chroot. > > > > SUBJECT TO CORRECTION, PLEASE: > > > > It is my understanding that the graphic files and html are > > created by the smokeping daemon, which is not subject to the > > chrooted Apache configuration, because the smokeping daemon is > > a separate process which is configured/started/stopped > > independently of how Apachei runs. But as I said above, if the > > CGI script ever requires access to anything in /var/db/smokeping > > (or indeed, anything that is not under /var/www/...), then the > > chroot option in Apache is going to create problems. > > > > While you're checking the smokeping logs, check the Apache logs > > also to see if the CGI script is logging anything interesting. > > > > Jim > > > > > > On Tue, Sep 06, 2011 at 09:15:29PM +0200, Ton Muller wrote: > >> Hello. > >> > >> results.. > >> # ps -auxww | grep "[s]moke" > >> _smokeping 31627 0.0 0.5 11920 5264 ?? Is 5:43PM 0:00.70 > >> perl: /usr/local/bin/smokeping [FPing] (perl) > >> you have mail in /var/mail/root > >> # > >> > >> 2nd. > >> # ps -auxww | grep "[h]ttp" > >> www 27021 0.0 0.2 1272 2400 ?? Ss 4:54PM 0:00.29 httpd: > >> parent [chroot /var/www] (httpd) > >> www 17660 0.0 0.2 1276 1848 ?? I 4:55PM 0:00.02 httpd: > >> child (httpd) > >> www 4155 0.0 0.2 1276 1852 ?? I 4:55PM 0:00.03 httpd: > >> child (httpd) > >> www 15314 0.0 0.2 1276 1848 ?? I 4:55PM 0:00.03 httpd: > >> child (httpd) > >> www 30267 0.0 0.2 1300 1868 ?? I 4:55PM 0:00.03 httpd: > >> child (httpd) > >> www 30841 0.0 0.2 1276 1864 ?? I 4:55PM 0:00.03 httpd: > >> child (httpd) > >> www 21725 0.0 0.2 1276 1804 ?? I 5:50PM 0:00.02 httpd: > >> child (httpd) > >> www 29482 0.0 0.2 1276 1864 ?? I 5:50PM 0:00.02 httpd: > >> child (httpd) > >> www 3385 0.0 0.2 1276 1868 ?? I 5:50PM 0:00.02 httpd: > >> child (httpd) > >> www 14873 0.0 0.2 1276 1804 ?? I 6:55PM 0:00.02 httpd: > >> child (httpd) > >> www 14707 0.0 0.2 1276 1876 ?? I 6:55PM 0:00.02 httpd: > >> child (httpd) > >> # > >> > >> 3th.. > >> # ls -ld /var/www /var/www/htdocs /var/www/htdocs/smokeping > >> /var/www/htdocs/smokeping/img /var/db/smokeping > >> drwxr-xr-x 3 _smokeping _smokeping 512 Sep 6 14:53 /var/db/smokeping > >> drwxr-xr-x 11 root daemon 512 Sep 5 22:29 /var/www > >> drwxr-xr-x 6 root daemon 512 Sep 6 17:46 /var/www/htdocs > >> drwxr-xr-x 4 _smokeping _smokeping 512 Sep 5 22:12 > >> /var/www/htdocs/smokeping > >> drwxr-xr-x 2 www daemon 512 Sep 5 22:12 > >> /var/www/htdocs/smokeping/img > >> # > >> > >> than. > >> > >> # ls -l /var/www/htdocs/smokeping/index.html > >> ls: /var/www/htdocs/smokeping/index.html: No such file or directory > >> # > >> (smoke isnt making index files as sayed) > >> > >> > >> and ! > >> # ls -l /var/www/htdocs/smokeping/index.html > >> ls: /var/www/htdocs/smokeping/index.html: No such file or directory > >> # echo "hello, world." > /var/www/htdocs/smokeping/test.html > >> # ls -l /var/www/htdocs/smokeping/test.html > >> -rw-r--r-- 1 root _smokeping 27 Sep 6 21:13 > >> /var/www/htdocs/smokeping/test.html > >> # > >> > >> so yes, write able. > >> > >> http://192.168.0.240/smokeping/test.html > >> says hello world. > >> > >> Regards. > >> Ton. > >> ... Feel the power of my shell !! > >> > >> On 6-9-2011 20:31, Jim Long wrote: > >>> Hi, Ton. I didn't notice that you were running BSD. I run smokeping > >>> on FreeBSD, so perhaps I'll jump in here. > >>> > >>> Gregory's line of inquiry is good. Please show the output of: > >>> > >>> ps -auxww | grep "[s]moke" > >>> > >>> and > >>> > >>> ps -auxww | grep "[h]ttp" > >>> > >>> and > >>> > >>> ls -ld /var/www /var/www/htdocs /var/www/htdocs/smokeping /var/www/htdocs/smokeping/img /var/db/smokeping > >>> > >>> Also, check your Apache setup to make sure it's relatively sound. > >>> What is the output of ls -l /var/www/htdocs/smokeping/index.html ? > >>> If there is an index.html file there, can you view it with a web > >>> browser pointed at the correct URL? If there is NOT an index.html > >>> file there, try: > >>> > >>> echo "hello, world." > /var/www/htdocs/smokeping/test.html > >>> > >>> Then please show: > >>> > >>> ls -l /var/www/htdocs/smokeping/test.html > >>> > >>> and report the success of: > >>> > >>> http://192.168.0.240/smokeping/test.html > >>> > >>> > >>> > >>> On Tue, Sep 06, 2011 at 08:18:13PM +0200, Ton Muller wrote: > >>>> Hello Greg. > >>>> > >>>> Well, lets see. > >>>> files in /var/db/smokeling are ok. > >>>> 755 _smokeping _smokeping, so DB files are ok. > >>>> > >>>> message log says ...nothing.... > >>>> smokeping CGI directory 755 root deamon, inc cgi and smokeping.cgi > >>>> and no error in error.log, so i guess its working. > >>>> > >>>> pagedir for smokeping in htdocs 755 was root deamon :/ ,is now > >>>> _smokeping _smokeping. but after 15 minutes still no result > >>>> no files written in it. > >>>> apache cant serv if smoke isnt writing in it ,hehe.. > >>>> with the new settings i still can access the smokeping over http. > >>>> > >>>> Regards. > >>>> > >>>> > >>>> On 6-9-2011 18:24, Gregory Sloop wrote: > >>>>> If I were guessing, I'd probably say it's a permission problem with > >>>>> TM> imgcache = /var/www/htdocs/smokeping/img > >>>>> and > >>>>> TM> pagedir = /var/www/htdocs/smokeping > >>>>> > >>>>> Does the user smokeping is running as have rights there? > >>>>> > >>>>> Are the files not getting built, or will apache refuse to serve them? > >>>>> > >>>>> If the latter, then the apache logs will tell you. If the former, the > >>>>> message log should say, _I think._ > >>>>> > >>>>> Just a start. I'm hope someone more knowledgeable will hop in, since > >>>>> I'm not the best guy for helping tshoot this kind of thing, esp on > >>>>> BSD. > >>>>> > >>>>> -Greg > >>>>> > >>>>> TM> Greeting. > >>>>> TM> I got finaly smokeping running on my openBSD box (4.9) > >>>>> TM> after strugeling with the conf files, i manage to run smokeping. > >>>>> TM> i see the data in the DB directory. > >>>>> TM> but smokeping is refusing to build the website in htdocs/smokeping. > >>>>> > >>>>> TM> any advice?? > >>>>> > >>>>> TM> Below my config > >>>>> TM> i use smokeping on LAN webserver only. > >>>>> > >>>>> TM> *** General *** > >>>>> > >>>>> TM> owner = Ton Muller > >>>>> TM> contact = admin@ > >>>>> TM> mailhost = mail. > >>>>> TM> sendmail = /usr/sbin/sendmail > >>>>> TM> imgcache = /var/www/htdocs/smokeping/img > >>>>> TM> imgurl = http://192.168.0.240/smokeping/img > >>>>> TM> pagedir = /var/www/htdocs/smokeping > >>>>> TM> datadir = /var/db/smokeping > >>>>> TM> piddir = /var/run/smokeping > >>>>> TM> cgiurl = http://192.168.0.240/../smokeping/cgi-bin/smokeping.cgi > >>>>> TM> smokemail = /etc/smokeping/smokemail > >>>>> TM> tmail = /etc/smokeping/tmail > >>>>> TM> # specify this to get syslog logging > >>>>> TM> syslogfacility = local0 > >>>>> TM> # each probe is now run in its own process > >>>>> TM> # disable this to revert to the old behaviour > >>>>> TM> # concurrentprobes = no > >>>>> > >>>>> > >>>> > >>>> _______________________________________________ > >>>> smokeping-users mailing list > >>>> smokeping-users at lists.oetiker.ch > >>>> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users > >>> > >> > >> _______________________________________________ > >> smokeping-users mailing list > >> smokeping-users at lists.oetiker.ch > >> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users > > > > _______________________________________________ > smokeping-users mailing list > smokeping-users at lists.oetiker.ch > https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users From smokeping at museum.rain.com Tue Sep 6 22:46:02 2011 From: smokeping at museum.rain.com (Jim Long) Date: Tue, 6 Sep 2011 13:46:02 -0700 Subject: [smokeping-users] Smoke isnt build website stats ? :( In-Reply-To: <4E6682E5.7020101@online.nl> References: <4E66254B.8080202@online.nl> <162498376.20110906092437@sloop.net> <4E6663E5.7090909@online.nl> <20110906183153.GA36380@ns.umpquanet.com> <4E667151.5090704@online.nl> <4E6682E5.7020101@online.nl> Message-ID: <20110906204602.GA55801@ns.umpquanet.com> On Tue, Sep 06, 2011 at 10:30:29PM +0200, Ton Muller wrote: > rrd is building DB files. > but smoke isnt making its stats in htdocs.. I'm still stuck on the chroot option in Apache. In my smokeping.cgi, on line 9 there is an explicit reference to the smokeping config file: 9 Smokeping::cgi("/usr/home/smokeping/etc/smokeping/config"); Does your smokeping.cgi have something similar to that also? What is the exact path in the smokeping.cgi, and the exact path to your smokeping config? Is it inside of /var/www/ or outside? If outside, there's your problem (or at least one of your problems). You'll need to either remove the chroot from your Apache setup, or else move your smokeping config to someplace underneath /var/www/. Just for the sake of information, click your browser on the URL http://192.168.0.240/../smokeping/cgi-bin/smokeping.cgi and then show us the resulting Apache log entries. Check for both access_log entries and error_log entries. Jim > > tony. > > On 6-9-2011 22:10, Greg Sloop wrote: > > Sorry if this seems really obvious, but did you try smokeping --debug? > > > > It should let you know if it finds problems with the config etc... > > > > -Greg > > > > On Tue, Sep 6, 2011 at 12:15 PM, Ton Muller wrote: > >> Hello. > >> > >> results.. > >> # ps -auxww | grep "[s]moke" > >> _smokeping 31627 0.0 0.5 11920 5264 ?? Is 5:43PM 0:00.70 > >> perl: /usr/local/bin/smokeping [FPing] (perl) > >> you have mail in /var/mail/root > >> # > >> > >> 2nd. > >> # ps -auxww | grep "[h]ttp" > >> www 27021 0.0 0.2 1272 2400 ?? Ss 4:54PM 0:00.29 httpd: > >> parent [chroot /var/www] (httpd) > >> www 17660 0.0 0.2 1276 1848 ?? I 4:55PM 0:00.02 httpd: > >> child (httpd) > >> www 4155 0.0 0.2 1276 1852 ?? I 4:55PM 0:00.03 httpd: > >> child (httpd) > >> www 15314 0.0 0.2 1276 1848 ?? I 4:55PM 0:00.03 httpd: > >> child (httpd) > >> www 30267 0.0 0.2 1300 1868 ?? I 4:55PM 0:00.03 httpd: > >> child (httpd) > >> www 30841 0.0 0.2 1276 1864 ?? I 4:55PM 0:00.03 httpd: > >> child (httpd) > >> www 21725 0.0 0.2 1276 1804 ?? I 5:50PM 0:00.02 httpd: > >> child (httpd) > >> www 29482 0.0 0.2 1276 1864 ?? I 5:50PM 0:00.02 httpd: > >> child (httpd) > >> www 3385 0.0 0.2 1276 1868 ?? I 5:50PM 0:00.02 httpd: > >> child (httpd) > >> www 14873 0.0 0.2 1276 1804 ?? I 6:55PM 0:00.02 httpd: > >> child (httpd) > >> www 14707 0.0 0.2 1276 1876 ?? I 6:55PM 0:00.02 httpd: > >> child (httpd) > >> # > >> > >> 3th.. > >> # ls -ld /var/www /var/www/htdocs /var/www/htdocs/smokeping > >> /var/www/htdocs/smokeping/img /var/db/smokeping > >> drwxr-xr-x 3 _smokeping _smokeping 512 Sep 6 14:53 /var/db/smokeping > >> drwxr-xr-x 11 root daemon 512 Sep 5 22:29 /var/www > >> drwxr-xr-x 6 root daemon 512 Sep 6 17:46 /var/www/htdocs > >> drwxr-xr-x 4 _smokeping _smokeping 512 Sep 5 22:12 > >> /var/www/htdocs/smokeping > >> drwxr-xr-x 2 www daemon 512 Sep 5 22:12 > >> /var/www/htdocs/smokeping/img > >> # > >> > >> than. > >> > >> # ls -l /var/www/htdocs/smokeping/index.html > >> ls: /var/www/htdocs/smokeping/index.html: No such file or directory > >> # > >> (smoke isnt making index files as sayed) > >> > >> > >> and ! > >> # ls -l /var/www/htdocs/smokeping/index.html > >> ls: /var/www/htdocs/smokeping/index.html: No such file or directory > >> # echo "hello, world." > /var/www/htdocs/smokeping/test.html > >> # ls -l /var/www/htdocs/smokeping/test.html > >> -rw-r--r-- 1 root _smokeping 27 Sep 6 21:13 > >> /var/www/htdocs/smokeping/test.html > >> # > >> > >> so yes, write able. > >> > >> http://192.168.0.240/smokeping/test.html > >> says hello world. > >> > >> Regards. > >> Ton. > >> ... Feel the power of my shell !! > >> > >> On 6-9-2011 20:31, Jim Long wrote: > >>> Hi, Ton. I didn't notice that you were running BSD. I run smokeping > >>> on FreeBSD, so perhaps I'll jump in here. > >>> > >>> Gregory's line of inquiry is good. Please show the output of: > >>> > >>> ps -auxww | grep "[s]moke" > >>> > >>> and > >>> > >>> ps -auxww | grep "[h]ttp" > >>> > >>> and > >>> > >>> ls -ld /var/www /var/www/htdocs /var/www/htdocs/smokeping /var/www/htdocs/smokeping/img /var/db/smokeping > >>> > >>> Also, check your Apache setup to make sure it's relatively sound. > >>> What is the output of ls -l /var/www/htdocs/smokeping/index.html ? > >>> If there is an index.html file there, can you view it with a web > >>> browser pointed at the correct URL? If there is NOT an index.html > >>> file there, try: > >>> > >>> echo "hello, world." > /var/www/htdocs/smokeping/test.html > >>> > >>> Then please show: > >>> > >>> ls -l /var/www/htdocs/smokeping/test.html > >>> > >>> and report the success of: > >>> > >>> http://192.168.0.240/smokeping/test.html > >>> > >>> > >>> > >>> On Tue, Sep 06, 2011 at 08:18:13PM +0200, Ton Muller wrote: > >>>> Hello Greg. > >>>> > >>>> Well, lets see. > >>>> files in /var/db/smokeling are ok. > >>>> 755 _smokeping _smokeping, so DB files are ok. > >>>> > >>>> message log says ...nothing.... > >>>> smokeping CGI directory 755 root deamon, inc cgi and smokeping.cgi > >>>> and no error in error.log, so i guess its working. > >>>> > >>>> pagedir for smokeping in htdocs 755 was root deamon :/ ,is now > >>>> _smokeping _smokeping. but after 15 minutes still no result > >>>> no files written in it. > >>>> apache cant serv if smoke isnt writing in it ,hehe.. > >>>> with the new settings i still can access the smokeping over http. > >>>> > >>>> Regards. > >>>> > >>>> > >>>> On 6-9-2011 18:24, Gregory Sloop wrote: > >>>>> If I were guessing, I'd probably say it's a permission problem with > >>>>> TM> imgcache = /var/www/htdocs/smokeping/img > >>>>> and > >>>>> TM> pagedir = /var/www/htdocs/smokeping > >>>>> > >>>>> Does the user smokeping is running as have rights there? > >>>>> > >>>>> Are the files not getting built, or will apache refuse to serve them? > >>>>> > >>>>> If the latter, then the apache logs will tell you. If the former, the > >>>>> message log should say, _I think._ > >>>>> > >>>>> Just a start. I'm hope someone more knowledgeable will hop in, since > >>>>> I'm not the best guy for helping tshoot this kind of thing, esp on > >>>>> BSD. > >>>>> > >>>>> -Greg > >>>>> > >>>>> TM> Greeting. > >>>>> TM> I got finaly smokeping running on my openBSD box (4.9) > >>>>> TM> after strugeling with the conf files, i manage to run smokeping. > >>>>> TM> i see the data in the DB directory. > >>>>> TM> but smokeping is refusing to build the website in htdocs/smokeping. > >>>>> > >>>>> TM> any advice?? > >>>>> > >>>>> TM> Below my config > >>>>> TM> i use smokeping on LAN webserver only. > >>>>> > >>>>> TM> *** General *** > >>>>> > >>>>> TM> owner = Ton Muller > >>>>> TM> contact = admin@ > >>>>> TM> mailhost = mail. > >>>>> TM> sendmail = /usr/sbin/sendmail > >>>>> TM> imgcache = /var/www/htdocs/smokeping/img > >>>>> TM> imgurl = http://192.168.0.240/smokeping/img > >>>>> TM> pagedir = /var/www/htdocs/smokeping > >>>>> TM> datadir = /var/db/smokeping > >>>>> TM> piddir = /var/run/smokeping > >>>>> TM> cgiurl = http://192.168.0.240/../smokeping/cgi-bin/smokeping.cgi > >>>>> TM> smokemail = /etc/smokeping/smokemail > >>>>> TM> tmail = /etc/smokeping/tmail > >>>>> TM> # specify this to get syslog logging > >>>>> TM> syslogfacility = local0 > >>>>> TM> # each probe is now run in its own process > >>>>> TM> # disable this to revert to the old behaviour > >>>>> TM> # concurrentprobes = no > >>>>> > >>>>> > >>>> > >>>> _______________________________________________ > >>>> smokeping-users mailing list > >>>> smokeping-users at lists.oetiker.ch > >>>> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users > >>> > >> > >> _______________________________________________ > >> smokeping-users mailing list > >> smokeping-users at lists.oetiker.ch > >> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users > >> > > > > _______________________________________________ > smokeping-users mailing list > smokeping-users at lists.oetiker.ch > https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users From smokeping at museum.rain.com Wed Sep 7 00:19:37 2011 From: smokeping at museum.rain.com (Jim Long) Date: Tue, 6 Sep 2011 15:19:37 -0700 Subject: [smokeping-users] Smoke isnt build website stats ? :( In-Reply-To: <4E6684E9.2070403@online.nl> References: <4E66254B.8080202@online.nl> <162498376.20110906092437@sloop.net> <4E6663E5.7090909@online.nl> <20110906183153.GA36380@ns.umpquanet.com> <4E667151.5090704@online.nl> <20110906201303.GD36380@ns.umpquanet.com> <4E6684E9.2070403@online.nl> Message-ID: <20110906221937.GC55801@ns.umpquanet.com> On Tue, Sep 06, 2011 at 10:39:05PM +0200, Ton Muller wrote: > On 6-9-2011 22:13, Jim Long wrote: > > SUBJECT TO CORRECTION, PLEASE: > > > > It is my understanding that the graphic files and html are > > created by the smokeping daemon, which is not subject to the > > chrooted Apache configuration, because the smokeping daemon is > > a separate process which is configured/started/stopped > > independently of how Apachei runs. But as I said above, if the > > CGI script ever requires access to anything in /var/db/smokeping > > (or indeed, anything that is not under /var/www/...), then the > > chroot option in Apache is going to create problems. I'm retracting that. Upon peeking into the smokeping.cgi file and particularly .../smokeping/lib/Smokeping/Graphs.pm, it is clear that the CGI is doing plenty of I/O between reading the RRD files and writing the PNG graph files. If the smokeping config file and/or the RRD files are outside of your Apache chroot, you're going to have problems on the HTTP side of things. The Apache logs will likely confirm this. > > While you're checking the smokeping logs, check the Apache logs > > also to see if the CGI script is logging anything interesting. Jim From spatieman at online.nl Wed Sep 7 18:02:56 2011 From: spatieman at online.nl (Ton Muller) Date: Wed, 07 Sep 2011 18:02:56 +0200 Subject: [smokeping-users] Smoke isnt build website stats ? :( In-Reply-To: <20110906204602.GA55801@ns.umpquanet.com> References: <4E66254B.8080202@online.nl> <162498376.20110906092437@sloop.net> <4E6663E5.7090909@online.nl> <20110906183153.GA36380@ns.umpquanet.com> <4E667151.5090704@online.nl> <4E6682E5.7020101@online.nl> <20110906204602.GA55801@ns.umpquanet.com> Message-ID: <4E6795B0.9030407@online.nl> Well, i found something else out. my webserver isnt processing .cgi and .pl files ! got a Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, admin at xs4non.nl and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. message. however, all files are correct when testing with perl it self. all paths are true.. On 6-9-2011 22:46, Jim Long wrote: > On Tue, Sep 06, 2011 at 10:30:29PM +0200, Ton Muller wrote: >> rrd is building DB files. >> but smoke isnt making its stats in htdocs.. > > I'm still stuck on the chroot option in Apache. > > In my smokeping.cgi, on line 9 there is an explicit reference to > the smokeping config file: > > 9 Smokeping::cgi("/usr/home/smokeping/etc/smokeping/config"); yup, here to, /etc/smokeping/config > > Does your smokeping.cgi have something similar to that also? > What is the exact path in the smokeping.cgi, and the exact path > to your smokeping config? Is it inside of /var/www/ or outside? > If outside, there's your problem (or at least one of your > problems). You'll need to either remove the chroot from your > Apache setup, or else move your smokeping config to someplace > underneath /var/www/. > > Just for the sake of information, click your browser on the URL > > http://192.168.0.240/../smokeping/cgi-bin/smokeping.cgi > > and then show us the resulting Apache log entries. Check for > both access_log entries and error_log entries. [Wed Sep 7 17:47:18 2011] [error] (2)No such file or directory: exec of /cgi-bin/smokeping.cgi failed [Wed Sep 7 17:47:18 2011] [error] [client 192.168.0.228] Premature end of script headers: /cgi-bin/smokeping.cgi but as sayed, my webserver is refusing to process it. setting in httpd.conf are correct.. btw.. got the same weard message on MRTG with router2 / 14all.cgi to. > > Jim > > >> >> tony. >> >> On 6-9-2011 22:10, Greg Sloop wrote: >>> Sorry if this seems really obvious, but did you try smokeping --debug? >>> >>> It should let you know if it finds problems with the config etc... >>> >>> -Greg >>> >>> On Tue, Sep 6, 2011 at 12:15 PM, Ton Muller wrote: >>>> Hello. >>>> >>>> results.. >>>> # ps -auxww | grep "[s]moke" >>>> _smokeping 31627 0.0 0.5 11920 5264 ?? Is 5:43PM 0:00.70 >>>> perl: /usr/local/bin/smokeping [FPing] (perl) >>>> you have mail in /var/mail/root >>>> # >>>> >>>> 2nd. >>>> # ps -auxww | grep "[h]ttp" >>>> www 27021 0.0 0.2 1272 2400 ?? Ss 4:54PM 0:00.29 httpd: >>>> parent [chroot /var/www] (httpd) >>>> www 17660 0.0 0.2 1276 1848 ?? I 4:55PM 0:00.02 httpd: >>>> child (httpd) >>>> www 4155 0.0 0.2 1276 1852 ?? I 4:55PM 0:00.03 httpd: >>>> child (httpd) >>>> www 15314 0.0 0.2 1276 1848 ?? I 4:55PM 0:00.03 httpd: >>>> child (httpd) >>>> www 30267 0.0 0.2 1300 1868 ?? I 4:55PM 0:00.03 httpd: >>>> child (httpd) >>>> www 30841 0.0 0.2 1276 1864 ?? I 4:55PM 0:00.03 httpd: >>>> child (httpd) >>>> www 21725 0.0 0.2 1276 1804 ?? I 5:50PM 0:00.02 httpd: >>>> child (httpd) >>>> www 29482 0.0 0.2 1276 1864 ?? I 5:50PM 0:00.02 httpd: >>>> child (httpd) >>>> www 3385 0.0 0.2 1276 1868 ?? I 5:50PM 0:00.02 httpd: >>>> child (httpd) >>>> www 14873 0.0 0.2 1276 1804 ?? I 6:55PM 0:00.02 httpd: >>>> child (httpd) >>>> www 14707 0.0 0.2 1276 1876 ?? I 6:55PM 0:00.02 httpd: >>>> child (httpd) >>>> # >>>> >>>> 3th.. >>>> # ls -ld /var/www /var/www/htdocs /var/www/htdocs/smokeping >>>> /var/www/htdocs/smokeping/img /var/db/smokeping >>>> drwxr-xr-x 3 _smokeping _smokeping 512 Sep 6 14:53 /var/db/smokeping >>>> drwxr-xr-x 11 root daemon 512 Sep 5 22:29 /var/www >>>> drwxr-xr-x 6 root daemon 512 Sep 6 17:46 /var/www/htdocs >>>> drwxr-xr-x 4 _smokeping _smokeping 512 Sep 5 22:12 >>>> /var/www/htdocs/smokeping >>>> drwxr-xr-x 2 www daemon 512 Sep 5 22:12 >>>> /var/www/htdocs/smokeping/img >>>> # >>>> >>>> than. >>>> >>>> # ls -l /var/www/htdocs/smokeping/index.html >>>> ls: /var/www/htdocs/smokeping/index.html: No such file or directory >>>> # >>>> (smoke isnt making index files as sayed) >>>> >>>> >>>> and ! >>>> # ls -l /var/www/htdocs/smokeping/index.html >>>> ls: /var/www/htdocs/smokeping/index.html: No such file or directory >>>> # echo "hello, world." > /var/www/htdocs/smokeping/test.html >>>> # ls -l /var/www/htdocs/smokeping/test.html >>>> -rw-r--r-- 1 root _smokeping 27 Sep 6 21:13 >>>> /var/www/htdocs/smokeping/test.html >>>> # >>>> >>>> so yes, write able. >>>> >>>> http://192.168.0.240/smokeping/test.html >>>> says hello world. >>>> >>>> Regards. >>>> Ton. >>>> ... Feel the power of my shell !! >>>> >>>> On 6-9-2011 20:31, Jim Long wrote: >>>>> Hi, Ton. I didn't notice that you were running BSD. I run smokeping >>>>> on FreeBSD, so perhaps I'll jump in here. >>>>> >>>>> Gregory's line of inquiry is good. Please show the output of: >>>>> >>>>> ps -auxww | grep "[s]moke" >>>>> >>>>> and >>>>> >>>>> ps -auxww | grep "[h]ttp" >>>>> >>>>> and >>>>> >>>>> ls -ld /var/www /var/www/htdocs /var/www/htdocs/smokeping /var/www/htdocs/smokeping/img /var/db/smokeping >>>>> >>>>> Also, check your Apache setup to make sure it's relatively sound. >>>>> What is the output of ls -l /var/www/htdocs/smokeping/index.html ? >>>>> If there is an index.html file there, can you view it with a web >>>>> browser pointed at the correct URL? If there is NOT an index.html >>>>> file there, try: >>>>> >>>>> echo "hello, world." > /var/www/htdocs/smokeping/test.html >>>>> >>>>> Then please show: >>>>> >>>>> ls -l /var/www/htdocs/smokeping/test.html >>>>> >>>>> and report the success of: >>>>> >>>>> http://192.168.0.240/smokeping/test.html >>>>> >>>>> >>>>> >>>>> On Tue, Sep 06, 2011 at 08:18:13PM +0200, Ton Muller wrote: >>>>>> Hello Greg. >>>>>> >>>>>> Well, lets see. >>>>>> files in /var/db/smokeling are ok. >>>>>> 755 _smokeping _smokeping, so DB files are ok. >>>>>> >>>>>> message log says ...nothing.... >>>>>> smokeping CGI directory 755 root deamon, inc cgi and smokeping.cgi >>>>>> and no error in error.log, so i guess its working. >>>>>> >>>>>> pagedir for smokeping in htdocs 755 was root deamon :/ ,is now >>>>>> _smokeping _smokeping. but after 15 minutes still no result >>>>>> no files written in it. >>>>>> apache cant serv if smoke isnt writing in it ,hehe.. >>>>>> with the new settings i still can access the smokeping over http. >>>>>> >>>>>> Regards. >>>>>> >>>>>> >>>>>> On 6-9-2011 18:24, Gregory Sloop wrote: >>>>>>> If I were guessing, I'd probably say it's a permission problem with >>>>>>> TM> imgcache = /var/www/htdocs/smokeping/img >>>>>>> and >>>>>>> TM> pagedir = /var/www/htdocs/smokeping >>>>>>> >>>>>>> Does the user smokeping is running as have rights there? >>>>>>> >>>>>>> Are the files not getting built, or will apache refuse to serve them? >>>>>>> >>>>>>> If the latter, then the apache logs will tell you. If the former, the >>>>>>> message log should say, _I think._ >>>>>>> >>>>>>> Just a start. I'm hope someone more knowledgeable will hop in, since >>>>>>> I'm not the best guy for helping tshoot this kind of thing, esp on >>>>>>> BSD. >>>>>>> >>>>>>> -Greg >>>>>>> >>>>>>> TM> Greeting. >>>>>>> TM> I got finaly smokeping running on my openBSD box (4.9) >>>>>>> TM> after strugeling with the conf files, i manage to run smokeping. >>>>>>> TM> i see the data in the DB directory. >>>>>>> TM> but smokeping is refusing to build the website in htdocs/smokeping. >>>>>>> >>>>>>> TM> any advice?? >>>>>>> >>>>>>> TM> Below my config >>>>>>> TM> i use smokeping on LAN webserver only. >>>>>>> >>>>>>> TM> *** General *** >>>>>>> >>>>>>> TM> owner = Ton Muller >>>>>>> TM> contact = admin@ >>>>>>> TM> mailhost = mail. >>>>>>> TM> sendmail = /usr/sbin/sendmail >>>>>>> TM> imgcache = /var/www/htdocs/smokeping/img >>>>>>> TM> imgurl = http://192.168.0.240/smokeping/img >>>>>>> TM> pagedir = /var/www/htdocs/smokeping >>>>>>> TM> datadir = /var/db/smokeping >>>>>>> TM> piddir = /var/run/smokeping >>>>>>> TM> cgiurl = http://192.168.0.240/../smokeping/cgi-bin/smokeping.cgi >>>>>>> TM> smokemail = /etc/smokeping/smokemail >>>>>>> TM> tmail = /etc/smokeping/tmail >>>>>>> TM> # specify this to get syslog logging >>>>>>> TM> syslogfacility = local0 >>>>>>> TM> # each probe is now run in its own process >>>>>>> TM> # disable this to revert to the old behaviour >>>>>>> TM> # concurrentprobes = no >>>>>>> >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> smokeping-users mailing list >>>>>> smokeping-users at lists.oetiker.ch >>>>>> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users >>>>> >>>> >>>> _______________________________________________ >>>> smokeping-users mailing list >>>> smokeping-users at lists.oetiker.ch >>>> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users >>>> >>> >> >> _______________________________________________ >> smokeping-users mailing list >> smokeping-users at lists.oetiker.ch >> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users > From spatieman at online.nl Wed Sep 7 18:06:53 2011 From: spatieman at online.nl (Ton Muller) Date: Wed, 07 Sep 2011 18:06:53 +0200 Subject: [smokeping-users] Smoke isnt build website stats ? :( In-Reply-To: <20110906205124.GB55801@ns.umpquanet.com> References: <4E66254B.8080202@online.nl> <162498376.20110906092437@sloop.net> <4E6663E5.7090909@online.nl> <20110906183153.GA36380@ns.umpquanet.com> <4E667151.5090704@online.nl> <20110906201303.GD36380@ns.umpquanet.com> <4E6684E9.2070403@online.nl> <20110906205124.GB55801@ns.umpquanet.com> Message-ID: <4E67969D.6060808@online.nl> On 6-9-2011 22:51, Jim Long wrote: > Once you get the big issues sorted, I strongly suggest you iron > out the logging for smokeping. In FreeBSD, the default log file > is /var/log/smokeping.log. I don't know whether OpenBSD has > adopted FreeBSD/NetBSD conventions for config options to add-on > software like smokeping, but in FreeBSD, I can set the log file > by specifying a "smokeping_logfile" variable in /etc/rc.conf: > > smokeping_enable="yes" > smokeping_logfile="/var/log/smokeping.log" I have added both lines now. --cuting edges -- From smokeping at museum.rain.com Wed Sep 7 18:16:43 2011 From: smokeping at museum.rain.com (Jim Long) Date: Wed, 7 Sep 2011 09:16:43 -0700 Subject: [smokeping-users] Smoke isnt build website stats ? :( In-Reply-To: <4E6795B0.9030407@online.nl> References: <4E66254B.8080202@online.nl> <162498376.20110906092437@sloop.net> <4E6663E5.7090909@online.nl> <20110906183153.GA36380@ns.umpquanet.com> <4E667151.5090704@online.nl> <4E6682E5.7020101@online.nl> <20110906204602.GA55801@ns.umpquanet.com> <4E6795B0.9030407@online.nl> Message-ID: <20110907161643.GB24835@ns.umpquanet.com> It sounds like the next step would be to create a simple CGI script named test.cgi or test.pl and install it in the correct directory on your web server, and then test the corresponding URL in your browser to get your CGI processing working. Jim On Wed, Sep 07, 2011 at 06:02:56PM +0200, Ton Muller wrote: > Well, i found something else out. > my webserver isnt processing .cgi and .pl files ! > got a Internal Server Error > The server encountered an internal error or misconfiguration and was > unable to complete your request. > Please contact the server administrator, admin at xs4non.nl and inform them > of the time the error occurred, and anything you might have done that > may have caused the error. > > More information about this error may be available in the server error log. > message. > > however, all files are correct when testing with perl it self. > all paths are true.. > > > On 6-9-2011 22:46, Jim Long wrote: > > On Tue, Sep 06, 2011 at 10:30:29PM +0200, Ton Muller wrote: > >> rrd is building DB files. > >> but smoke isnt making its stats in htdocs.. > > > > I'm still stuck on the chroot option in Apache. > > > > In my smokeping.cgi, on line 9 there is an explicit reference to > > the smokeping config file: > > > > 9 Smokeping::cgi("/usr/home/smokeping/etc/smokeping/config"); > yup, here to, /etc/smokeping/config > > > > > > > Does your smokeping.cgi have something similar to that also? > > What is the exact path in the smokeping.cgi, and the exact path > > to your smokeping config? Is it inside of /var/www/ or outside? > > If outside, there's your problem (or at least one of your > > problems). You'll need to either remove the chroot from your > > Apache setup, or else move your smokeping config to someplace > > underneath /var/www/. > > > > Just for the sake of information, click your browser on the URL > > > > http://192.168.0.240/../smokeping/cgi-bin/smokeping.cgi > > > > and then show us the resulting Apache log entries. Check for > > both access_log entries and error_log entries. > [Wed Sep 7 17:47:18 2011] [error] (2)No such file or directory: exec of > /cgi-bin/smokeping.cgi failed > [Wed Sep 7 17:47:18 2011] [error] [client 192.168.0.228] Premature end > of script headers: /cgi-bin/smokeping.cgi > > but as sayed, my webserver is refusing to process it. > setting in httpd.conf are correct.. > > > btw.. > got the same weard message on MRTG with router2 / 14all.cgi to. > > > > > Jim > > > > > >> > >> tony. > >> > >> On 6-9-2011 22:10, Greg Sloop wrote: > >>> Sorry if this seems really obvious, but did you try smokeping --debug? > >>> > >>> It should let you know if it finds problems with the config etc... > >>> > >>> -Greg > >>> > >>> On Tue, Sep 6, 2011 at 12:15 PM, Ton Muller wrote: > >>>> Hello. > >>>> > >>>> results.. > >>>> # ps -auxww | grep "[s]moke" > >>>> _smokeping 31627 0.0 0.5 11920 5264 ?? Is 5:43PM 0:00.70 > >>>> perl: /usr/local/bin/smokeping [FPing] (perl) > >>>> you have mail in /var/mail/root > >>>> # > >>>> > >>>> 2nd. > >>>> # ps -auxww | grep "[h]ttp" > >>>> www 27021 0.0 0.2 1272 2400 ?? Ss 4:54PM 0:00.29 httpd: > >>>> parent [chroot /var/www] (httpd) > >>>> www 17660 0.0 0.2 1276 1848 ?? I 4:55PM 0:00.02 httpd: > >>>> child (httpd) > >>>> www 4155 0.0 0.2 1276 1852 ?? I 4:55PM 0:00.03 httpd: > >>>> child (httpd) > >>>> www 15314 0.0 0.2 1276 1848 ?? I 4:55PM 0:00.03 httpd: > >>>> child (httpd) > >>>> www 30267 0.0 0.2 1300 1868 ?? I 4:55PM 0:00.03 httpd: > >>>> child (httpd) > >>>> www 30841 0.0 0.2 1276 1864 ?? I 4:55PM 0:00.03 httpd: > >>>> child (httpd) > >>>> www 21725 0.0 0.2 1276 1804 ?? I 5:50PM 0:00.02 httpd: > >>>> child (httpd) > >>>> www 29482 0.0 0.2 1276 1864 ?? I 5:50PM 0:00.02 httpd: > >>>> child (httpd) > >>>> www 3385 0.0 0.2 1276 1868 ?? I 5:50PM 0:00.02 httpd: > >>>> child (httpd) > >>>> www 14873 0.0 0.2 1276 1804 ?? I 6:55PM 0:00.02 httpd: > >>>> child (httpd) > >>>> www 14707 0.0 0.2 1276 1876 ?? I 6:55PM 0:00.02 httpd: > >>>> child (httpd) > >>>> # > >>>> > >>>> 3th.. > >>>> # ls -ld /var/www /var/www/htdocs /var/www/htdocs/smokeping > >>>> /var/www/htdocs/smokeping/img /var/db/smokeping > >>>> drwxr-xr-x 3 _smokeping _smokeping 512 Sep 6 14:53 /var/db/smokeping > >>>> drwxr-xr-x 11 root daemon 512 Sep 5 22:29 /var/www > >>>> drwxr-xr-x 6 root daemon 512 Sep 6 17:46 /var/www/htdocs > >>>> drwxr-xr-x 4 _smokeping _smokeping 512 Sep 5 22:12 > >>>> /var/www/htdocs/smokeping > >>>> drwxr-xr-x 2 www daemon 512 Sep 5 22:12 > >>>> /var/www/htdocs/smokeping/img > >>>> # > >>>> > >>>> than. > >>>> > >>>> # ls -l /var/www/htdocs/smokeping/index.html > >>>> ls: /var/www/htdocs/smokeping/index.html: No such file or directory > >>>> # > >>>> (smoke isnt making index files as sayed) > >>>> > >>>> > >>>> and ! > >>>> # ls -l /var/www/htdocs/smokeping/index.html > >>>> ls: /var/www/htdocs/smokeping/index.html: No such file or directory > >>>> # echo "hello, world." > /var/www/htdocs/smokeping/test.html > >>>> # ls -l /var/www/htdocs/smokeping/test.html > >>>> -rw-r--r-- 1 root _smokeping 27 Sep 6 21:13 > >>>> /var/www/htdocs/smokeping/test.html > >>>> # > >>>> > >>>> so yes, write able. > >>>> > >>>> http://192.168.0.240/smokeping/test.html > >>>> says hello world. > >>>> > >>>> Regards. > >>>> Ton. > >>>> ... Feel the power of my shell !! > >>>> > >>>> On 6-9-2011 20:31, Jim Long wrote: > >>>>> Hi, Ton. I didn't notice that you were running BSD. I run smokeping > >>>>> on FreeBSD, so perhaps I'll jump in here. > >>>>> > >>>>> Gregory's line of inquiry is good. Please show the output of: > >>>>> > >>>>> ps -auxww | grep "[s]moke" > >>>>> > >>>>> and > >>>>> > >>>>> ps -auxww | grep "[h]ttp" > >>>>> > >>>>> and > >>>>> > >>>>> ls -ld /var/www /var/www/htdocs /var/www/htdocs/smokeping /var/www/htdocs/smokeping/img /var/db/smokeping > >>>>> > >>>>> Also, check your Apache setup to make sure it's relatively sound. > >>>>> What is the output of ls -l /var/www/htdocs/smokeping/index.html ? > >>>>> If there is an index.html file there, can you view it with a web > >>>>> browser pointed at the correct URL? If there is NOT an index.html > >>>>> file there, try: > >>>>> > >>>>> echo "hello, world." > /var/www/htdocs/smokeping/test.html > >>>>> > >>>>> Then please show: > >>>>> > >>>>> ls -l /var/www/htdocs/smokeping/test.html > >>>>> > >>>>> and report the success of: > >>>>> > >>>>> http://192.168.0.240/smokeping/test.html > >>>>> > >>>>> > >>>>> > >>>>> On Tue, Sep 06, 2011 at 08:18:13PM +0200, Ton Muller wrote: > >>>>>> Hello Greg. > >>>>>> > >>>>>> Well, lets see. > >>>>>> files in /var/db/smokeling are ok. > >>>>>> 755 _smokeping _smokeping, so DB files are ok. > >>>>>> > >>>>>> message log says ...nothing.... > >>>>>> smokeping CGI directory 755 root deamon, inc cgi and smokeping.cgi > >>>>>> and no error in error.log, so i guess its working. > >>>>>> > >>>>>> pagedir for smokeping in htdocs 755 was root deamon :/ ,is now > >>>>>> _smokeping _smokeping. but after 15 minutes still no result > >>>>>> no files written in it. > >>>>>> apache cant serv if smoke isnt writing in it ,hehe.. > >>>>>> with the new settings i still can access the smokeping over http. > >>>>>> > >>>>>> Regards. > >>>>>> > >>>>>> > >>>>>> On 6-9-2011 18:24, Gregory Sloop wrote: > >>>>>>> If I were guessing, I'd probably say it's a permission problem with > >>>>>>> TM> imgcache = /var/www/htdocs/smokeping/img > >>>>>>> and > >>>>>>> TM> pagedir = /var/www/htdocs/smokeping > >>>>>>> > >>>>>>> Does the user smokeping is running as have rights there? > >>>>>>> > >>>>>>> Are the files not getting built, or will apache refuse to serve them? > >>>>>>> > >>>>>>> If the latter, then the apache logs will tell you. If the former, the > >>>>>>> message log should say, _I think._ > >>>>>>> > >>>>>>> Just a start. I'm hope someone more knowledgeable will hop in, since > >>>>>>> I'm not the best guy for helping tshoot this kind of thing, esp on > >>>>>>> BSD. > >>>>>>> > >>>>>>> -Greg > >>>>>>> > >>>>>>> TM> Greeting. > >>>>>>> TM> I got finaly smokeping running on my openBSD box (4.9) > >>>>>>> TM> after strugeling with the conf files, i manage to run smokeping. > >>>>>>> TM> i see the data in the DB directory. > >>>>>>> TM> but smokeping is refusing to build the website in htdocs/smokeping. > >>>>>>> > >>>>>>> TM> any advice?? > >>>>>>> > >>>>>>> TM> Below my config > >>>>>>> TM> i use smokeping on LAN webserver only. > >>>>>>> > >>>>>>> TM> *** General *** > >>>>>>> > >>>>>>> TM> owner = Ton Muller > >>>>>>> TM> contact = admin@ > >>>>>>> TM> mailhost = mail. > >>>>>>> TM> sendmail = /usr/sbin/sendmail > >>>>>>> TM> imgcache = /var/www/htdocs/smokeping/img > >>>>>>> TM> imgurl = http://192.168.0.240/smokeping/img > >>>>>>> TM> pagedir = /var/www/htdocs/smokeping > >>>>>>> TM> datadir = /var/db/smokeping > >>>>>>> TM> piddir = /var/run/smokeping > >>>>>>> TM> cgiurl = http://192.168.0.240/../smokeping/cgi-bin/smokeping.cgi > >>>>>>> TM> smokemail = /etc/smokeping/smokemail > >>>>>>> TM> tmail = /etc/smokeping/tmail > >>>>>>> TM> # specify this to get syslog logging > >>>>>>> TM> syslogfacility = local0 > >>>>>>> TM> # each probe is now run in its own process > >>>>>>> TM> # disable this to revert to the old behaviour > >>>>>>> TM> # concurrentprobes = no > >>>>>>> > >>>>>>> > >>>>>> > >>>>>> _______________________________________________ > >>>>>> smokeping-users mailing list > >>>>>> smokeping-users at lists.oetiker.ch > >>>>>> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users > >>>>> > >>>> > >>>> _______________________________________________ > >>>> smokeping-users mailing list > >>>> smokeping-users at lists.oetiker.ch > >>>> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users > >>>> > >>> > >> > >> _______________________________________________ > >> smokeping-users mailing list > >> smokeping-users at lists.oetiker.ch > >> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users > > > > _______________________________________________ > smokeping-users mailing list > smokeping-users at lists.oetiker.ch > https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users From smokeping at museum.rain.com Wed Sep 7 18:55:56 2011 From: smokeping at museum.rain.com (Jim Long) Date: Wed, 7 Sep 2011 09:55:56 -0700 Subject: [smokeping-users] Smoke isnt build website stats ? :( In-Reply-To: <4E67969D.6060808@online.nl> References: <4E66254B.8080202@online.nl> <162498376.20110906092437@sloop.net> <4E6663E5.7090909@online.nl> <20110906183153.GA36380@ns.umpquanet.com> <4E667151.5090704@online.nl> <20110906201303.GD36380@ns.umpquanet.com> <4E6684E9.2070403@online.nl> <20110906205124.GB55801@ns.umpquanet.com> <4E67969D.6060808@online.nl> Message-ID: <20110907165556.GA78788@ns.umpquanet.com> On Wed, Sep 07, 2011 at 06:06:53PM +0200, Ton Muller wrote: > On 6-9-2011 22:51, Jim Long wrote: > > Once you get the big issues sorted, I strongly suggest you iron > > out the logging for smokeping. In FreeBSD, the default log file > > is /var/log/smokeping.log. I don't know whether OpenBSD has > > adopted FreeBSD/NetBSD conventions for config options to add-on > > software like smokeping, but in FreeBSD, I can set the log file > > by specifying a "smokeping_logfile" variable in /etc/rc.conf: > > > > smokeping_enable="yes" > > smokeping_logfile="/var/log/smokeping.log" > I have added both lines now. Double-check to make sure that what you're doing is appropriate for OpenBSD. I was simply illustrating that in FreeBSD, there is a way. I don't know for a fact that OpenBSD does it the same way. But, if you stop and restart smokeping, do you now have a log file in /var/log/smokeping.log? Jim From mailinglists at rednarb.com Fri Sep 9 21:57:31 2011 From: mailinglists at rednarb.com (Eric Brander) Date: Fri, 9 Sep 2011 13:57:31 -0600 Subject: [smokeping-users] DNS Probe Question Message-ID: Smokepingers: I've set up a DNS probe that works just fine for one lookup. Do you know if it would be possible to set up multiple DNS probes, each with a different lookup or can I put multiple lookups on the one probe? TIA, Eric From spatieman at online.nl Fri Sep 9 23:50:46 2011 From: spatieman at online.nl (Ton Muller) Date: Fri, 09 Sep 2011 23:50:46 +0200 Subject: [smokeping-users] Smoke isnt build website stats ? :( In-Reply-To: <20110907161643.GB24835@ns.umpquanet.com> References: <4E66254B.8080202@online.nl> <162498376.20110906092437@sloop.net> <4E6663E5.7090909@online.nl> <20110906183153.GA36380@ns.umpquanet.com> <4E667151.5090704@online.nl> <4E6682E5.7020101@online.nl> <20110906204602.GA55801@ns.umpquanet.com> <4E6795B0.9030407@online.nl> <20110907161643.GB24835@ns.umpquanet.com> Message-ID: <4E6A8A36.4080609@online.nl> Hello Jim ,and Hello Gregory. sorry for the late responce, but i was but of troubleshooting and googling, no usefull help :/ However, i did a search on openbsd, and it is a chrooting isue for the webserver when starting it with apachectl.. after stopping it, and starting it as httpd -u ,i could execute my test.cgi script, no more errors. so, based on that, i need to find a solution for it, without not jailbreaking and not use chrooting it.. tony. On 7-9-2011 18:16, Jim Long wrote: > It sounds like the next step would be to create a simple CGI > script named test.cgi or test.pl and install it in the correct > directory on your web server, and then test the corresponding URL > in your browser to get your CGI processing working. > > Jim > > On Wed, Sep 07, 2011 at 06:02:56PM +0200, Ton Muller wrote: >> Well, i found something else out. >> my webserver isnt processing .cgi and .pl files ! >> got a Internal Server Error >> The server encountered an internal error or misconfiguration and was >> unable to complete your request. >> Please contact the server administrator, admin at xs4non.nl and inform them >> of the time the error occurred, and anything you might have done that >> may have caused the error. ---- CUTING EDGES --- From spatieman at online.nl Sat Sep 10 09:22:30 2011 From: spatieman at online.nl (Ton Muller) Date: Sat, 10 Sep 2011 09:22:30 +0200 Subject: [smokeping-users] Fwd: Re: Smoke isnt build website stats ? :( In-Reply-To: <4E6B100C.6030009@online.nl> References: <4E6B100C.6030009@online.nl> Message-ID: <4E6B1036.3010906@online.nl> well., i am blank testing now. trying to get or ,14all.cgi ,or routers2.cgi running... the fun thing is.. blank out of box, MRTG, does work, dont ask me why... only smokeping is bugging me.. so i am testing both config atm. changing in mrtg the way to poll stats from mrtg to rrd way. gave me same error as smokeping. so testing and see what is wrong this time with the write right (755 is ok, so its user/group isue this time) oh, still testing in unsave http enveriment (no save chroot aka jail) ik keep posting when i have a good success ,i think it is way to post for other openBSD users who want mrt/smoke running in dif config style, hehe.. Tony. get now some On 10-9-2011 0:02, Gregory Sloop wrote: > Good enough! Glad you got it sorted. > > I was pretty sure it was a permissions issue, but wasn't sure what. > It's been 15+ years since I tinkered with BSD much. > > -Greg > > TM> Hello Jim ,and Hello Gregory. > TM> sorry for the late responce, but i was but of troubleshooting and > TM> googling, no usefull help :/ > TM> However, i did a search on openbsd, and it is a chrooting isue for the > TM> webserver when starting it with apachectl.. > TM> after stopping it, and starting it as httpd -u ,i could execute my > TM> test.cgi script, no more errors. > TM> so, based on that, i need to find a solution for it, without not > TM> jailbreaking and not use chrooting it.. > > TM> tony. > > TM> On 7-9-2011 18:16, Jim Long wrote: >>> It sounds like the next step would be to create a simple CGI >>> script named test.cgi or test.pl and install it in the correct >>> directory on your web server, and then test the corresponding URL >>> in your browser to get your CGI processing working. >>> >>> Jim >>> >>> On Wed, Sep 07, 2011 at 06:02:56PM +0200, Ton Muller wrote: >>>> Well, i found something else out. >>>> my webserver isnt processing .cgi and .pl files ! >>>> got a Internal Server Error >>>> The server encountered an internal error or misconfiguration and was >>>> unable to complete your request. >>>> Please contact the server administrator, admin at xs4non.nl and inform them >>>> of the time the error occurred, and anything you might have done that >>>> may have caused the error. > TM> ---- CUTING EDGES --- > > TM> _______________________________________________ > TM> smokeping-users mailing list > TM> smokeping-users at lists.oetiker.ch > TM> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users > From spatieman at online.nl Sat Sep 10 16:11:34 2011 From: spatieman at online.nl (Ton Muller) Date: Sat, 10 Sep 2011 16:11:34 +0200 Subject: [smokeping-users] What is better, Smokeping, or MRTG ?? In-Reply-To: <4E67969D.6060808@online.nl> References: <4E66254B.8080202@online.nl> <162498376.20110906092437@sloop.net> <4E6663E5.7090909@online.nl> <20110906183153.GA36380@ns.umpquanet.com> <4E667151.5090704@online.nl> <20110906201303.GD36380@ns.umpquanet.com> <4E6684E9.2070403@online.nl> <20110906205124.GB55801@ns.umpquanet.com> <4E67969D.6060808@online.nl> Message-ID: <4E6B7016.5000309@online.nl> Just want to know. what is better, who of the two (both installed) can be tweaked better. and can make fancy'r grafics.. i want to make a LOCAL stat site for all my machine. it should be able to pull trafic stats for each interface (intern and extern) using bwm-ng (if i ever manage to find out how) monitor on my openBSD box cpu load / disk usage / FTP space monitor trafic from each machine that goes true the box to the internet monitor protocols remote monitoring ,like windows machines.. monitor ,everything that is possible. and the ham question. default mrtg ,or routers2.cgi of 14all.cgi to much question.... From alter3d at alter3d.ca Sat Sep 10 18:36:40 2011 From: alter3d at alter3d.ca (Peter Kristolaitis) Date: Sat, 10 Sep 2011 12:36:40 -0400 Subject: [smokeping-users] What is better, Smokeping, or MRTG ?? In-Reply-To: <4E6B7016.5000309@online.nl> References: <4E66254B.8080202@online.nl> <162498376.20110906092437@sloop.net> <4E6663E5.7090909@online.nl> <20110906183153.GA36380@ns.umpquanet.com> <4E667151.5090704@online.nl> <20110906201303.GD36380@ns.umpquanet.com> <4E6684E9.2070403@online.nl> <20110906205124.GB55801@ns.umpquanet.com> <4E67969D.6060808@online.nl> <4E6B7016.5000309@online.nl> Message-ID: <4E6B9218.803@alter3d.ca> The answer is 'neither'. You're vastly misunderstanding the purpose of both of these tools -- they're not meant for monitoring things like CPU load and disk space. While you can probably hack them to do it, it's not what they're designed to do, and you won't be able to generate alerts in any meaningful way with them. You should be looking at tools like Nagios, Zenoss, Zabbix, OpenNMS, etc. - Peter On 9/10/2011 10:11 AM, Ton Muller wrote: > Just want to know. > what is better, who of the two (both installed) can be tweaked better. > and can make fancy'r grafics.. > > i want to make a LOCAL stat site for all my machine. > it should be able to pull trafic stats for each interface (intern and > extern) using bwm-ng (if i ever manage to find out how) > > monitor on my openBSD box cpu load / disk usage / FTP space > > monitor trafic from each machine that goes true the box to the internet > > monitor protocols > remote monitoring ,like windows machines.. > monitor ,everything that is possible. > > and the ham question. > default mrtg ,or routers2.cgi of 14all.cgi > to much question.... > > _______________________________________________ > smokeping-users mailing list > smokeping-users at lists.oetiker.ch > https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4418 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20110910/0476ed5f/attachment.bin From kim.jahn at makandra.de Tue Sep 13 15:09:11 2011 From: kim.jahn at makandra.de (Kim Jahn) Date: Tue, 13 Sep 2011 15:09:11 +0200 Subject: [smokeping-users] Smokeping shows too small values Message-ID: <4E6F55F7.5050106@makandra.de> Hello, my http smokeping shows too small values. It's about ~75 ms. This looks too small for this Webserver. If I start echoping on commandline I have values about ~2 seconds. This is the smokeping Echoping configuration: > + EchoPingHttp > binary = /usr/local/bin/echoping > forks = 12 > offset = 50% > step = 90 > # The following variables can be overridden in each target section > extraopts = -R > ignore_cache = yes > ipversion = 4 > pings = 3 > port = 80 > revalidate_data = no > timeout = 14 > tos = 0xa0 > url = / > waittime = 1 Can someone tell me what's wrong with that? Regards, Kim From alter3d at alter3d.ca Tue Sep 13 15:30:26 2011 From: alter3d at alter3d.ca (Peter Kristolaitis) Date: Tue, 13 Sep 2011 09:30:26 -0400 Subject: [smokeping-users] Smokeping shows too small values In-Reply-To: <4E6F55F7.5050106@makandra.de> References: <4E6F55F7.5050106@makandra.de> Message-ID: <4E6F5AF2.9040002@alter3d.ca> Are you using the correct probe on your targets? - Peter On 9/13/2011 9:09 AM, Kim Jahn wrote: > Hello, > > my http smokeping shows too small values. > It's about ~75 ms. This looks too small for this Webserver. > If I start echoping on commandline I have values about ~2 seconds. > > This is the smokeping Echoping configuration: > >> + EchoPingHttp >> binary = /usr/local/bin/echoping >> forks = 12 >> offset = 50% >> step = 90 >> # The following variables can be overridden in each target section >> extraopts = -R >> ignore_cache = yes >> ipversion = 4 >> pings = 3 >> port = 80 >> revalidate_data = no >> timeout = 14 >> tos = 0xa0 >> url = / >> waittime = 1 > Can someone tell me what's wrong with that? > > Regards, > > Kim > > _______________________________________________ > smokeping-users mailing list > smokeping-users at lists.oetiker.ch > https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4418 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20110913/9c6bd81f/attachment.bin From kim.jahn at makandra.de Tue Sep 13 15:33:45 2011 From: kim.jahn at makandra.de (Kim Jahn) Date: Tue, 13 Sep 2011 15:33:45 +0200 Subject: [smokeping-users] Smokeping shows too small values In-Reply-To: <4E6F5AF2.9040002@alter3d.ca> References: <4E6F55F7.5050106@makandra.de> <4E6F5AF2.9040002@alter3d.ca> Message-ID: <4E6F5BB9.1020309@makandra.de> Yes. This is the Target configuration: +++ example-http probe = EchoPingHttp menu = example_http title = HTTP to www.example.com host = www.example.com alerts = mediumloss,highloss (I just replace the hostname with example) Am 13.09.2011 15:30, schrieb Peter Kristolaitis: > Are you using the correct probe on your targets? > > - Peter > > > On 9/13/2011 9:09 AM, Kim Jahn wrote: >> Hello, >> >> my http smokeping shows too small values. >> It's about ~75 ms. This looks too small for this Webserver. >> If I start echoping on commandline I have values about ~2 seconds. >> >> This is the smokeping Echoping configuration: >> >>> + EchoPingHttp >>> binary = /usr/local/bin/echoping >>> forks = 12 >>> offset = 50% >>> step = 90 >>> # The following variables can be overridden in each target section >>> extraopts = -R >>> ignore_cache = yes >>> ipversion = 4 >>> pings = 3 >>> port = 80 >>> revalidate_data = no >>> timeout = 14 >>> tos = 0xa0 >>> url = / >>> waittime = 1 >> Can someone tell me what's wrong with that? >> >> Regards, >> >> Kim >> >> _______________________________________________ >> smokeping-users mailing list >> smokeping-users at lists.oetiker.ch >> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users From tobi at oetiker.ch Sun Sep 25 23:42:19 2011 From: tobi at oetiker.ch (Tobias Oetiker) Date: Sun, 25 Sep 2011 23:42:19 +0200 (CEST) Subject: [smokeping-users] ANNOUNCE Smokeping 2.5.0 Message-ID: Finally! Smokeping 2.5.0 is out. It contains a bunch of bugfixes and the following changes: - Switched from SpeedyCGI to FastCGI - DismanPing probe by Bill Fenner - OpenSSHJunOSPing (Sponsoerd by Juniper) - SIP Ping Probe (Sponsored by ANI Networks) - Support alert patterns with upper AND lower limit: (>a References: <4E803349.4090307@otenet.gr> Message-ID: Hi Yannis, indeed ... thanks :-) cheers tobi ps. I had seen the problem, and fixed the files by hand, and re-released 2.5.0 but forgot that my distribution system actually resets the version number on archive generation ... now the version number in the build system is set properly and 2.5.1 should work fine Today Yannis Nikolopoulos wrote: > On 09/26/2011 12:42 AM, Tobias Oetiker wrote: > > Finally! > > > > Smokeping 2.5.0 is out. It contains a bunch of bugfixes and the > > following changes: > > > > - Switched from SpeedyCGI to FastCGI > > - DismanPing probe by Bill Fenner > > - OpenSSHJunOSPing (Sponsoerd by Juniper) > > - SIP Ping Probe (Sponsored by ANI Networks) > > - Support alert patterns with upper AND lower limit: (>a > - SmokeTrace removed. Check out remOcular. > > - Updated Prototype and scriptaculous libraries > > - ExpLoss matcher by Konoplev V.Konoplev > > - Improved slave update performance > > > > get the latest release from > > > > www.smokeping.org > > > > cheers > > tobi > > > Hello Tobi, > > you might want to change the version number in Smokeping.pm since its still: > $VERSION="2.004002"; > and smokeping complains about it ;) > > cheers, > Yannis > > -- Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900 From tobi at oetiker.ch Thu Sep 29 13:57:18 2011 From: tobi at oetiker.ch (Tobias Oetiker) Date: Thu, 29 Sep 2011 13:57:18 +0200 (CEST) Subject: [smokeping-users] announce smokeping 2.6 Message-ID: Users! I have added automake (configure make install) support to smokeping. And fixed a serious bug when sending out alert mails. You can get Smokeping 2.6.1 from http://www.smokeping.org enjoy tobi -- Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900 From throck at gmail.com Fri Sep 2 21:22:56 2011 From: throck at gmail.com (Tom Throckmorton) Date: Fri, 02 Sep 2011 19:22:56 -0000 Subject: [smokeping-users] SMTP Alerts on alternate port, smtp auth In-Reply-To: <12510282248.20110902095533@sloop.net> References: <12510282248.20110902095533@sloop.net> Message-ID: <4E612D0D.9080001@gmail.com> On 9/2/11 12:55 PM, Gregory Sloop wrote: > > I'd like to use the Net::SMTP module instead of sendmail - (Just > easier, IMO) and I need to use an alternate port. [Like 26] > > Is there some way to configure this? I've searched the lists [and > Google] and was not able to find anything... Greg, For alerts you can specify any command you want, so instead of / in addition to using an email address, you can do something like: > *** Alerts *** > # 'to' can be a comma separated list of email addresses or programs > to = gregs at sloop.net,|/path/to/mail-alerts.sh ...where mail-alerts.sh is a script you write or find that does what you want. See the options for the 'to' variable in the Alerts section of the docs, here: > http://oss.oetiker.ch/smokeping/doc/smokeping_config.en.html#I____Alerts____ Cheers, -tt From throck at gmail.com Fri Sep 2 22:08:57 2011 From: throck at gmail.com (Tom Throckmorton) Date: Fri, 02 Sep 2011 20:08:57 -0000 Subject: [smokeping-users] SMTP Alerts on alternate port, smtp auth In-Reply-To: <997873247.20110902123957@sloop.net> References: <12510282248.20110902095533@sloop.net> <4E612D0D.9080001@gmail.com> <997873247.20110902123957@sloop.net> Message-ID: <4E6137D5.4010706@gmail.com> On 9/2/11 3:39 PM, Gregory Sloop wrote: > That's neat and all, but it's not clear how I'd include any data on > what the alert is about - what host etc. > > I assume that perhaps the mailtemplate might be helpful, but an > initial read of the docs isn't particularly enlightening. Read further - it's covered in the 'to' variable description: > Either an email address to send alerts to, or the name of a program > to execute when an alert matches. To call a program, the first > character of the to value must be a pipe symbol "|". The program will > the be called whenever an alert matches, using the following 5 > arguments (except if edgetrigger is 'yes'; see below): name-of-alert, > target, loss-pattern, rtt-pattern, hostname. You can also provide a > comma separated list of addresses and programs. So, 1) name-of-alert 2) target 3) loss-pattern 4) rtt-pattern 5) hostname 6) edgetrigger state (raise=1, clear=0) > I assume you may have done something similar - do you have some > example code, or can you point me to some? > > I'm reasonably proficient in bash, so it's possible I could cobble > something together... It's shockingly simple. Here's some pseudocode: ------- alert=$1 target=$2 loss=$3 rtt=$4 hostname=$5 level=$6 output="$alert:$target $rtt / $loss" echo -e "$hostname\tservice_name\t$level\t$output\n" | /usr/sbin \\ /send_nsca -H nagioshost -c /etc/nagios/nsca.cfg ------- > I still think it would be much better to include SMTP alt-port & auth > etc in the code, along with the required extensions - writing a bash > script etc is really an ugly hack. > > But if I have to settle for a hack, perhaps it's that or nothing. Well, something else I didn't point out is that you _can_ specify a mailhost, which will trigger the use of Net::SMTP, as you were originally hoping: > http://oss.oetiker.ch/smokeping/doc/smokeping_config.en.html#I____General______mandatory_section_ > Instead of using sendmail, you can specify the name of an smtp server > and use perl's Net::SMTP module to send mail (for alerts and DYNAMIC > client script). Several comma separated mailhosts can be specified. > SmokePing will try one after the other if one does not answer for 5 > seconds. ...I don't believe that will meet your port/auth needs, which is why I was suggesting the alternate command method. -tt > TT> On 9/2/11 12:55 PM, Gregory Sloop wrote: >>> >>> I'd like to use the Net::SMTP module instead of sendmail - (Just >>> easier, IMO) and I need to use an alternate port. [Like 26] >>> >>> Is there some way to configure this? I've searched the lists [and >>> Google] and was not able to find anything... > > TT> Greg, > > TT> For alerts you can specify any command you want, so instead of / in > TT> addition to using an email address, you can do something like: > >>> *** Alerts *** >>> # 'to' can be a comma separated list of email addresses or programs >>> to = gregs at sloop.net,|/path/to/mail-alerts.sh > > TT> ...where mail-alerts.sh is a script you write or find that does what you > TT> want. See the options for the 'to' variable in the Alerts section of > TT> the docs, here: > >>> http://oss.oetiker.ch/smokeping/doc/smokeping_config.en.html#I____Alerts____ > > TT> Cheers, > > TT> -tt >