[smokeping-users] trouble with smokeping 1.18
chelle
mdemarr at ev1.net
Thu Feb 20 03:17:37 MET 2003
hi, im having a problem getting smokeping 1.18 running on a redhat box
heres some version info:
[root at smokeping smokeping]# uname -a
Linux smokeping.domain.com 2.4.9-34 #1 Sat Jun 1 06:32:14 EDT 2002 i686 unknown
[root at smokeping smokeping]# dmesg | grep redhat
Linux version 2.4.9-34 (bhcompile at stripples.devel.redhat.com) (gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-108.1)) #1 Sat Jun 1 06:32:14 EDT 2002
[root at smokeping smokeping]# ./bin/smokeping --version
$Id: Smokeping.pm,v 1.4 2002/03/09 12:01:08 oetiker Exp $
not sure why it says 1.4 because:
[root at smokeping smokeping]# grep VERSION= ./lib/Smokeping.pm
$VERSION="1.18";
[root at smokeping smokeping]# cat ./bin/smokeping
#!/usr/bin/perl -w
# -*-perl-*
use lib qw(/usr/local/rrdtool-1.0.33/lib/perl);
use lib qw(/var/www/cgi-bin/smokeping/lib);
use lib qw(/usr/lib/perl5/site_perl/5.6.1/CGI);
use Smokeping 1.18;
Smokeping::main("/var/www/cgi-bin/smokeping/etc/config");
=head1 NAME
smokeping - Commandline tool for SmokePing
=head1 SYNOPSIS
B<smokeping> [ B<--email> | B<--makepod> | B<--version> | B<--restart> ]
<cut the rest to make email short>
i tried installing smokeping 1.14 with no luck (which i have working on another box fine), and maybe thats why it says that?
[root at smokeping smokeping]# httpd -V
Server version: Apache/1.3.22 (Unix) (Red-Hat/Linux)
Server built: Jun 19 2002 11:55:48
Server's Module Magic Number: 19990320:10
Server compiled with....
-D EAPI
-D EAPI_MM
-D EAPI_MM_CORE_PATH="/var/run/httpd.mm"
-D HAVE_MMAP
-D HAVE_SHMGET
-D USE_SHMGET_SCOREBOARD
-D USE_MMAP_FILES
-D HAVE_FCNTL_SERIALIZED_ACCEPT
-D HAVE_SYSVSEM_SERIALIZED_ACCEPT
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D HTTPD_ROOT="/etc/httpd"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="/var/run/httpd.pid"
-D DEFAULT_SCOREBOARD="/var/run/httpd.scoreboard"
-D DEFAULT_LOCKFILE="/var/run/httpd.lock"
-D DEFAULT_XFERLOG="/var/log/httpd/access_log"
-D DEFAULT_ERRORLOG="/var/log/httpd/error_log"
-D TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
-D ACCESS_CONFIG_FILE="conf/access.conf"
-D RESOURCE_CONFIG_FILE="conf/srm.conf"
[root at smokeping smokeping]# suexec -V
-D DOC_ROOT="/var/www"
-D GID_MID=100
-D HTTPD_USER="apache"
-D LOG_EXEC="/var/log/httpd/suexec_log"
-D SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
-D UID_MID=100
-D USERDIR_SUFFIX="public_html"
[root at smokeping smokeping]# perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
Platform:
osname=linux, osvers=2.4.17-0.13smp, archname=i386-linux
uname='linux daffy.perf.redhat.com 2.4.17-0.13smp #1 smp fri feb 1 10:30:48 est 2002 i686 unknown '
config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dcccdlflags=-fPIC -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Uusethreads -Uuseithreads -Uuselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Di_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Dlocincpth='
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
Compiler:
cc='gcc', ccflags ='-fno-strict-aliasing -I/usr/local/include',
optimize='-O2 -march=i386 -mcpu=i686',
cppflags='-fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='2.96 20000731 (Red Hat Linux 7.1 2.96-98)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -ldl -lm -lc -lcrypt -lutil
perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
libc=/lib/libc-2.2.4.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options:
Built under linux
Compiled at Feb 20 2002 15:01:16
@INC:
/usr/lib/perl5/5.6.1/i386-linux
/usr/lib/perl5/5.6.1
/usr/lib/perl5/site_perl/5.6.1/i386-linux
/usr/lib/perl5/site_perl/5.6.1
/usr/lib/perl5/site_perl/5.6.0/i386-linux
/usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl
.
[root at smokeping smokeping]# /usr/local/rrdtool-1.0.33/bin/rrdtool
RRDtool 1.0.33 Copyright 1997-2001 by Tobias Oetiker <tobi at oetiker.ch>
Usage: rrdtool [options] command command_options
Valid commands: create, update, graph, dump, restore,
last, info, fetch, tune, resize
RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)
For more information read the RRD manpages
[root at smokeping smokeping]# fping -v
fping: Version 2.4b2_to $Date: 2001/01/25 11:25:04 $
fping: comments to noc at zerohype.com
now that weve gotten all the version info out of the way, heres the problem:
fping was copied to / for troubleshooting purposes:
[chelle at smokeping smokeping]$ ls -al / | grep fping
-rwsr-xr-x 1 root root 83486 Feb 17 23:44 fping
runs fine as chelle:
[chelle at smokeping smokeping]$ /fping -v
/fping: Version 2.4b2_to $Date: 2001/01/25 11:25:04 $
/fping: comments to noc at zerohype.com
all of my smokeping files are in /var/www/cgi-bin/smokeping/
all owned by me and owned by my group:
[chelle at smokeping smokeping]$ ls -al
total 88
drwxr-xr-x 9 chelle chelle 4096 Feb 19 18:55 .
drwxr-xr-x 4 root root 4096 Feb 19 19:02 ..
drwxr-xr-x 2 chelle chelle 4096 Feb 19 18:45 bin
-rw-r--r-- 1 chelle chelle 6738 Dec 4 23:14 CHANGES
-rw-r--r-- 1 chelle chelle 317 Jul 26 2002 CONTRIBUTORS
-rw-r--r-- 1 chelle chelle 17976 Feb 26 2002 COPYING
-rw-r--r-- 1 chelle chelle 927 Feb 26 2002 COPYRIGHT
drwxr-xr-x 2 chelle chelle 4096 Feb 18 17:15 doc
drwxr-xr-x 2 chelle chelle 4096 Feb 19 18:55 etc
drwxr-xr-x 2 chelle chelle 4096 Feb 18 17:15 htdocs
drwxrwxr-x 2 chelle chelle 4096 Feb 18 17:26 images
drwxr-xr-x 4 chelle chelle 4096 Feb 19 18:55 lib
-rw-r--r-- 1 chelle chelle 1673 Dec 4 23:14 Makefile
-rw-r--r-- 1 chelle chelle 1715 Feb 26 2002 README
-rwxr-xr-x 1 chelle chelle 479 Feb 19 18:43 smokeping.cgi
-rw-r--r-- 1 chelle chelle 287 Feb 26 2002 TODO
drwxrwxrwx 3 chelle chelle 4096 Feb 19 18:49 var
here is what /var/www/cgi-bin/smokeping/bin/smokeping looks like:
[chelle at smokeping bin]$ ls -al
total 12
drwxr-xr-x 2 chelle chelle 4096 Feb 19 18:45 .
drwxr-xr-x 9 chelle chelle 4096 Feb 19 18:55 ..
-rwxr-xr-x 1 chelle chelle 2749 Feb 19 18:44 smokeping
[chelle at smokeping bin]$ cat smokeping
#!/usr/bin/perl -w
# -*-perl-*-
use lib qw(/usr/local/rrdtool-1.0.33/lib/perl);
use lib qw(/var/www/cgi-bin/smokeping/lib);
use lib qw(/usr/lib/perl5/site_perl/5.6.1/CGI);
use Smokeping 1.18;
Smokeping::main("/var/www/cgi-bin/smokeping/etc/config");
=head1 NAME
smokeping - Commandline tool for SmokePing
<cut the rest to make email short>
heres what /var/www/cgi-bin/etc looks like:
[chelle at smokeping etc]$ ls -al
total 24
drwxr-xr-x 2 chelle chelle 4096 Feb 19 18:55 .
drwxr-xr-x 9 chelle chelle 4096 Feb 19 18:55 ..
-rw-r--r-- 1 chelle chelle 1776 Feb 26 2002 basepage.html
-rw-r--r-- 1 chelle chelle 2409 Feb 18 17:27 config
-rw-r--r-- 1 chelle chelle 1809 Mar 9 2002 config-echoping.dist
-rw-r--r-- 1 chelle chelle 1562 Feb 26 2002 smokemail
[chelle at smokeping etc]$ cat config
# Note that all IP addresses in this file are false, to prevent some
# machine falling uder a deadly DOS storm because all users keep
# the same addresses in their config.
*** General ***
owner = chelle
contact = noc at domain.com
mailhost = smtp.domain.com
sendmail = /usr/lib/sendmail
imgcache = /var/www/cgi-bin/smokeping/images
imgurl = http://smokeping.domain.com/cgi-bin/smokeping/images
datadir = /var/www/cgi-bin/smokeping/var
piddir = /var/www/cgi-bin/smokeping/var
cgiurl = http://smokeping.domain.com/cgi-bin/smokeping/smokeping.cgi
smokemail = /var/www/cgi-bin/smokeping/etc/smokemail
# specify this to get syslog logging
# syslogfacility = local0
*** 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 = /var/www/cgi-bin/smokeping/etc/basepage.html
+ overview
<the rest is the same as the default config, and it was cut to make the email shorter>
heres /var/www/cgi-bin/lib/:
[chelle at smokeping lib]$ ls -al
total 172
drwxr-xr-x 4 chelle chelle 4096 Feb 19 18:55 .
drwxr-xr-x 9 chelle chelle 4096 Feb 19 18:55 ..
-rw-r--r-- 1 chelle chelle 22209 Feb 26 2002 BER.pm
drwxr-xr-x 2 chelle chelle 4096 Feb 18 17:15 ISG
drwxr-xr-x 2 chelle chelle 4096 Feb 18 17:15 probes
-rw-r--r-- 1 chelle chelle 62935 Dec 4 23:15 Smokeping.pm
-rw-r--r-- 1 chelle chelle 27607 Feb 26 2002 SNMP_Session.pm
-rw-r--r-- 1 chelle chelle 33806 Feb 26 2002 SNMP_util.pm
heres /var/www/cgi-bin/var/:
[chelle at smokeping var]$ ls -al
total 12
drwxrwxrwx 3 chelle chelle 4096 Feb 19 19:28 .
drwxr-xr-x 9 chelle chelle 4096 Feb 19 18:55 ..
drwxrwxrwx 4 chelle chelle 4096 Feb 18 17:27 World
so, i start smokeping from /var/www/cgi-bin/bin/smokeping heres the output:
[chelle at smokeping smokeping]$ ./bin/smokeping
WARNING: Hostname 'www.railway-server.abc' does currently not resolve to an IP address
WARNING: Hostname 'www.tiscali-web.abc' does currently not resolve to an IP address
WARNING: Hostname 'www.ucl-abc.acc.uk' does currently not resolve to an IP address
WARNING: Hostname 'www.gurkoman.ybc' does currently not resolve to an IP address
WARNING: Hostname 'www.iu.ali' does currently not resolve to an IP address
WARNING: Hostname 'www.berkly.udi' does currently not resolve to an IP address
WARNING: Hostname 'www.ucsdddar.art' does currently not resolve to an IP address
WARNING: Hostname 'www.sun-web.com' does currently not resolve to an IP address
### fping seems to report in 1 miliseconds
Daemonizing ./bin/smokeping ...
looks good... so i check processes:
theres one running for smokeping but no fping process:
chelle 18369 0.0 2.4 7868 6228 ? S 19:30 0:00 /usr/bin/perl -w ./bin/smokeping
so i check /var/www/cgi-bin/smokeping/var/:
[chelle at smokeping smokeping]$ ls -al ./var
total 16
drwxrwxrwx 3 chelle chelle 4096 Feb 19 19:30 .
drwxr-xr-x 9 chelle chelle 4096 Feb 19 18:55 ..
-rw-r--r-- 1 chelle chelle 6 Feb 19 19:30 smokeping.pid
drwxrwxrwx 4 chelle chelle 4096 Feb 18 17:27 World
pid is there so it is running i assume...
so i try to go to the webpage:
http://smokeping.domain.com/cgi-bin/smokeping/smokeping.cgi
i get this when i go there:
WARNING: Hostname 'www.railway-server.abc' does currently not resolve to an IP address
Content-Type: text/plain
WARNING: Hostname 'www.tiscali-web.abc' does currently not resolve to an IP address
Content-Type: text/plain
WARNING: Hostname 'www.ucl-abc.acc.uk' does currently not resolve to an IP address
Content-Type: text/plain
WARNING: Hostname 'www.gurkoman.ybc' does currently not resolve to an IP address
Content-Type: text/plain
WARNING: Hostname 'www.iu.ali' does currently not resolve to an IP address
Content-Type: text/plain
WARNING: Hostname 'www.berkly.udi' does currently not resolve to an IP address
Content-Type: text/plain
WARNING: Hostname 'www.ucsdddar.art' does currently not resolve to an IP address
Content-Type: text/plain
WARNING: Hostname 'www.sun-web.com' does currently not resolve to an IP address
Daemonizing /var/www/cgi-bin/smokeping/smokeping.cgi ...
Content-Type: text/plain
creating /var/www/cgi-bin/smokeping/var/smokeping.pid: Permission denied
now, this is obviously because /var/www/cgi-bin/smokeping/var/smokeping.pid already exists and is owned by chelle the process owner
i then check processes and i have 2 for smokeping processes running; one running as chelle and one running as apache:
chelle 18369 0.0 2.4 7868 6228 ? S 19:30 0:00 /usr/bin/perl -w ./bin/smokeping
apache 18402 0.0 2.4 7624 6148 ? S 19:33 0:00 /usr/bin/perl -w /var/www/cgi-bin/smokeping/smokeping.cgi
so, i kill both:
[root at smokeping smokeping]# kill 18369
[root at smokeping smokeping]# kill 18402
bash: kill: (18402) - No such pid
and remove the pid:
[root at smokeping smokeping]# rm /var/www/cgi-bin/smokeping/var/smokeping.pid
rm: remove `/var/www/cgi-bin/smokeping/var/smokeping.pid'? y
then try to go to the webpage again this is what i get this time:
WARNING: Hostname 'www.railway-server.abc' does currently not resolve to an IP address
Content-Type: text/plain
WARNING: Hostname 'www.tiscali-web.abc' does currently not resolve to an IP address
Content-Type: text/plain
WARNING: Hostname 'www.ucl-abc.acc.uk' does currently not resolve to an IP address
Content-Type: text/plain
WARNING: Hostname 'www.gurkoman.ybc' does currently not resolve to an IP address
Content-Type: text/plain
WARNING: Hostname 'www.iu.ali' does currently not resolve to an IP address
Content-Type: text/plain
WARNING: Hostname 'www.berkly.udi' does currently not resolve to an IP address
Content-Type: text/plain
WARNING: Hostname 'www.ucsdddar.art' does currently not resolve to an IP address
Content-Type: text/plain
WARNING: Hostname 'www.sun-web.com' does currently not resolve to an IP address
Daemonizing /var/www/cgi-bin/smokeping/smokeping.cgi ...
looks okay i guess, so i try the webpage again... and i get this:
WARNING: Hostname 'www.railway-server.abc' does currently not resolve to an IP address
Content-Type: text/plain
WARNING: Hostname 'www.tiscali-web.abc' does currently not resolve to an IP address
Content-Type: text/plain
WARNING: Hostname 'www.ucl-abc.acc.uk' does currently not resolve to an IP address
Content-Type: text/plain
WARNING: Hostname 'www.gurkoman.ybc' does currently not resolve to an IP address
Content-Type: text/plain
WARNING: Hostname 'www.iu.ali' does currently not resolve to an IP address
Content-Type: text/plain
WARNING: Hostname 'www.berkly.udi' does currently not resolve to an IP address
Content-Type: text/plain
WARNING: Hostname 'www.ucsdddar.art' does currently not resolve to an IP address
Content-Type: text/plain
WARNING: Hostname 'www.sun-web.com' does currently not resolve to an IP address
Content-Type: text/plain
ERROR: I Quit! Another copy of /var/www/cgi-bin/smokeping/smokeping.cgi (18418) seems to be running.
Check /var/www/cgi-bin/smokeping/var/smokeping.pid
so the script is killing itself or something, not sure whats going on exactly.
there are no updates to apaches error_log or the suexec_log:
[root at smokeping smokeping]# date
Wed Feb 19 19:55:38 CST 2003
[root at smokeping smokeping]# ls -al /var/log/httpd/error_log
-rw-r--r-- 1 root root 24374 Feb 19 18:37 /var/log/httpd/error_log
[root at smokeping smokeping]# ls -al /var/log/httpd/suexec_log
-rw-r--r-- 1 root root 288 Feb 19 19:15 /var/log/httpd/suexec_log
by this point i am not sure what to do other than send this in and hope to get a reply, so any help would be greatly appreciated
thanks,
chelle
--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/smokeping-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the smokeping-users
mailing list