Hello,
first of all I must say what a program....
I ‘am impressed, but still I have some questions:
why all the scripts have a DOS Carrier return?
So it is not possible to test the scripts by directly hand.
I have checked out versions 6.3 up to 6.5 on all versions it is like this.
Is cacti being developed on a Windows machine?
I have got a lot of problems with the ping script, it hangs some time completely and then the cacti is stopped also complete. Also my System (SuSE 7.3) is using a different version of ping. Therefore I had to modify the ping script in the command line a little bit, see below:
$response =...|grep rtt |... instead of ...|grep round-trip |...
Here is my description:
If I try to ping a host witch is only some times online, then the script doesn’t return to the shell. Then cacti hangs up and 5min. later the next ping.pl is started and so on and so on. And finally the complete system begin to stock, because of to many open processes.
So if you have a solution for this please let me know. I will also try to find some way.
you can reache my by email: t.scholz@alfeld.de
--
cu t.scholz (exolon)
ping problem and some questions about cacti
Moderators: Developers, Moderators
Hi,
it's me again:
I hope I solved the Ping problem:
now I'm use the -w option from ping witch gives ping a deathline, so it is for sure that the ping script will end after some time. The script I use now looks like:
#!/usr/bin/perl
if ($ARGV[0]=="x") {
$db = ":0";
$ARGV[0] = 2;
}
$response = `ping $ARGV[1] -c $ARGV[0] -w 10 | grep rtt | awk '{print $4 }' | awk -F / '{print $1 }' | grep -v "Warning"`;
chomp $response;
$response = $response;
print "$response$db";
Maybe this helps some one....
--
cu t.scholz (exolon)
it's me again:
I hope I solved the Ping problem:
now I'm use the -w option from ping witch gives ping a deathline, so it is for sure that the ping script will end after some time. The script I use now looks like:
#!/usr/bin/perl
if ($ARGV[0]=="x") {
$db = ":0";
$ARGV[0] = 2;
}
$response = `ping $ARGV[1] -c $ARGV[0] -w 10 | grep rtt | awk '{print $4 }' | awk -F / '{print $1 }' | grep -v "Warning"`;
chomp $response;
$response = $response;
print "$response$db";
Maybe this helps some one....
--
cu t.scholz (exolon)
Who is online
Users browsing this forum: No registered users and 3 guests