[smokeping-users] Smoke isnt build website stats ? :(

Ton Muller spatieman at online.nl
Tue Sep 6 22:30:29 CEST 2011


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 <gregs at sloop.net> 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 <spatieman at online.nl> 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 "<html>hello, world.</html>" > /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 "<html>hello, world.</html>" > /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@<domain>
>>>>> TM> mailhost = mail.<domain>
>>>>> 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
>>
> 



More information about the smokeping-users mailing list