Dear all
i have ready installed  packages smokeping from packages bellow my steep :
# pkg_add smokeping-2.1.1p1.tgz
        smokeping-2.1.1p1: complete
        --- smokeping-2.1.1p1 -------------------
        To have smokeping start at boot time, you have to adapt
        /etc/smokeping/config and insert the following into /etc/rc.local.

        if [ -x /usr/local/bin/smokeping ]; then
                install -d -o _smokeping /var/run/smokeping
                echo -n ' smokeping';   /usr/local/bin/smokeping
        fi
#

then i edit the smokeping config
# cat /etc/smokeping/config | more
# Note that all IP addresses in this file are false, to prevent some
# machine falling under a deadly DOS storm because all users keep
# the same addresses in their config.

*** General ***

owner    = me and may domain
contact  = [EMAIL PROTECTED]
mailhost = 192.168.1.2
sendmail = /usr/sbin/sendmail
imgcache = /var/www/htdocs/noc/smokeping/img/
imgurl   = /smokeping/img/
pagedir  = /var/www/htdocs/noc/smokeping/
datadir  = /var/db/smokeping
piddir  = /var/run/smokeping
cgiurl   = http://192.168.1.1/smokeping/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 = [EMAIL PROTECTED]
from = [EMAIL PROTECTED]

+bigloss
type = loss
# in percent
pattern = ==0%,==0%,==0%,==0%,>0%,>0%,>0%
comment = suddenly there is packet loss
-----------------------------------------------------------------
Then running the smokeping and get email confirmation about smokeping .
But where i must  access and see the image.

i sett some folder create by smokeping
/var/db/smokeping <-- result of rrdtools in config smoke ping
/var/www/smokeping/cgi-bin/smokeping.cgi

i see in smokeping.cgi :
use lib qw(/usr/pack/rrdtool-1.0.33-to/lib/perl);
and
use lib qw(/home/oetiker/public_html/smokeping/lib);
and
Smokeping::cgi("/home/oetiker/.smokeping/config");
where i can find all taht file , when i try access direct  page not
found  ( http://localhost/cgi-bin/smokeping.cgi or
http://localhost/smokeping/cgi-bin/smokeping.cgi

thq
-- 
sonjaya
http://sicute.blogspot.com

Reply via email to