Nevím si rady s modulem ping. Všechny ostatní moduly běží bez problému, ale ping nevytváří obrázky. Proces pingu běží, ale skript pro vytváření nic neudělá.
Mám naistalováno:
Linux version 2.6.18-1.2257.fc5 (brewbuilder@hs20-bc1-5.build.redhat.com) (gcc version 4.1.1 20060525 (Red Hat 4.1.1-1)) #1 Fri Dec 15 16:04:33 EST 2006
Hotsanic 0.5.0-pre5
RRDtool 1.2.15
“Chyba” při spuštění skriptu diagrams.pl:
----- modules/ping -----
creating images for 10.33.10.67 ( AP Bratrk) …
Use of uninitialized value in printf at ./diagrams.pl line 167 (#1)
(W uninitialized) An undefined value was used as if it were already
defined. It was interpreted as a “” or a 0, but maybe it was a mistake.
To suppress this warning assign a defined value to your variables.
To help you figure out what was undefined, perl tells you what operation
you used the undefined value in. Note, however, that perl optimizes your
program and the operation displayed in the warning may not necessarily
appear literally in your program. For example, "that $foo" is
usually optimized into "that " . $foo, and the warning will refer to
the concatenation (.) operator, even though there is no . in your
program.
hour 0x0 /var/www/html/hotsanic/ping/10.33.10.67-hour.png
6 hours 0x0 /var/www/html/hotsanic/ping/10.33.10.67-6h.png
day 0x0 /var/www/html/hotsanic/ping/10.33.10.67-day.png
week 0x0 /var/www/html/hotsanic/ping/10.33.10.67-week.png
month 0x0 /var/www/html/hotsanic/ping/10.33.10.67-month.png
year 0x0 /var/www/html/hotsanic/ping/10.33.10.67-year.png
creating images for 10.33.0.38 ( Topenar) …
hour 0x0 /var/www/html/hotsanic/ping/10.33.0.38-hour.png
6 hours 0x0 /var/www/html/hotsanic/ping/10.33.0.38-6h.png
day 0x0 /var/www/html/hotsanic/ping/10.33.0.38-day.png
week 0x0 /var/www/html/hotsanic/ping/10.33.0.38-week.png
month 0x0 /var/www/html/hotsanic/ping/10.33.0.38-month.png
year 0x0 /var/www/html/hotsanic/ping/10.33.0.38-year.png
Při incializaci HotSaNICu je vše ok:
[root@topenar hotsanic]# ./rrdgraph start
Starting rrdtimer…
reading & checking config (/var/www/hotsanic/settings) …
evaluating cmdline arguments…
entering daemon mode…
[root@topenar log]# cat HotSaNIC.log
1171484547: archiver successfully forked into background and running on PID 19665
1171484547 Initializing modules…
1171484547 END Initializing modules…
netstat running on PID 19503
part running on PID 19509
ping running on PID 19513
system running on PID 19517
traffic running on PID 19524
Ještě uvádím výpis konfiguračního skriptu modulu ping:
[root@topenar settings]# cat mod_ping
query-interval in seconds.
INTERVAL=“30”
set type of diagrams (whatever you like best … Thanx M. Renner! )
classic (default) -> shade ranges for min, avg, max in different colors
simple -> only shade area between min and max in light blue
TYPE=“simple”
set diagram scaling
log -> set logarithmic scaling (default)
lin -> set linear scaling
SCALE=“lin”
set diagram initial upper border in milliseconds (for better graph comparison)
UPPER=“10” sets all diagrams upper border to 10ms
UPPER=“0.01” sets all diagrams upper border to 100us
UPPER=“1”
how many ping processes shall be done in parallel. Reducing the number
causes the process to run longer, but keeps your system load a bit lower.
PARALLEL=“4”
use system’s “ping” command instead of perl library. This is useful when not
running as root. Fallback is implemented in case Net::Ping is not installed
on your system
SYSPING=“0” use Net::Ping library (default)
SYSPING=“1” use system command
SYSPING=“0”
If SYSPING is set to “0”, then you may specify the protocol used to ping all
hosts. Valid are “icmp” (the default) and “tcp”. If you run HotSaNIC without
root privileges, you should use “tcp” - but note, that some hosts don’t reply
to tcp ping packages!
PROTOCOL=“icmp”
PROTOCOL=“icmp”
configure multiple destinations of the form:
HOST=,
HOST=10.33.10.67, AP Bratrk
HOST=10.33.0.38, Topenar