|
From: Grant P. <gp...@th...> - 2006-03-07 09:06:38
|
Hi Jamie, I shut down em1 on the target host and here is the ping result. defiant# ping -c 1 -t 1 192.168.0.7 PING 192.168.0.7 (192.168.0.7): 56 data bytes --- 192.168.0.7 ping statistics --- 1 packets transmitted, 0 packets received, 100% packet loss -GRant ----- Original Message ----- From: "Jamie Cameron" <jca...@we...> To: <web...@li...> Sent: Monday, March 06, 2006 7:33 PM Subject: Re: [webmin-l] Host Is Down > Hi Grant, > On FreeBSD, Webmin uses the command > > ping -c 1 -t 1 192.168.0.7 > > to check the host, and then looks at it's exit status. If it is exiting > with status 0 (meaning OK) even when the host is down, then this is a > problem .. > > - Jamie > > On Tue, 2006-03-07 at 06:39, Grant Peel wrote: >> I suppose the next time the server to be monitored goes down, I can try >> pinging it and sending you the output, but I hope it does not happen! >> >> Here is the ping results from the server running the ping command to the >> server to be monitored, from the command line of course. >> >> Yes, FreeBSD 5.4 >> >> defiant# ping -c 1 192.168.0.7 >> PING 192.168.0.7 (192.168.0.7): 56 data bytes >> 64 bytes from 192.168.0.7: icmp_seq=0 ttl=64 time=0.325 ms >> >> --- 192.168.0.7 ping statistics --- >> 1 packets transmitted, 1 packets received, 0% packet loss >> round-trip min/avg/max/stddev = 0.325/0.325/0.325/0.000 ms >> defiant# >> >> -GRant >> >> ----- Original Message ----- >> From: "Jamie Cameron" <jca...@we...> >> To: <web...@li...> >> Sent: Monday, March 06, 2006 7:13 AM >> Subject: Re: [webmin-l] Host Is Down >> >> >> > Webmin doesn't actually use the output from the ping command - instead, >> > it either checks the exit status of the ping command (0 for success or >> > 1 >> > for failure), or sends its own UDP ping packets. >> > >> > By the way, which OS are you using there? It is FreeBSD, right? >> > >> > - Jamie >> > >> > On Mon, 2006-03-06 at 17:48, Grant Peel wrote: >> >> 'Host is down" shows up when I do I ping to the server being >> >> monitored. >> >> >> >> What I am thinking is ... webmin is looking for a blank response,e >> >> but >> >> instead is getting "Host is Down" >> >> >> >> -Grant >> >> >> >> ----- Original Message ----- >> >> From: "Jamie Cameron" <jca...@we...> >> >> To: <web...@li...> >> >> Sent: Monday, March 06, 2006 4:37 AM >> >> Subject: Re: [webmin-l] Host Is Down >> >> >> >> >> >> > On Sun, 2006-03-05 at 23:57, Grant Peel wrote: >> >> >> Hi all, >> >> >> >> >> >> I am having troubles with a server, and have tried to add a monitor >> >> >> in >> >> >> the >> >> >> System and Server status Module. >> >> >> >> >> >> The system being monitored is freezing solid. I can PING it but >> >> >> instead >> >> >> of >> >> >> just loosing packets, I am getting a "Host is Donw" message which I >> >> >> think >> >> >> is >> >> >> fooling the script .... I am not getting emails. >> >> >> >> >> >> Has anyone some experience with this ? Can I pick your brains! >> >> >> >> >> >> Thanks all, >> >> >> >> >> >> -Grant >> >> >> >> >> >> Here is the /etc/webmin/status/nnnnnnn.serv file: >> >> >> >> >> >> runon=0 >> >> >> depend= >> >> >> host=192.168.0.7 >> >> >> ema...@my... >> >> >> ondown= >> >> >> clone= >> >> >> onup= >> >> >> wait=5 >> >> >> fails=1 >> >> >> desc=Remote Ping >> >> >> type=ping >> >> >> id=1140983277 >> >> >> notify=email >> >> >> nosched=0 >> >> >> _file=/etc/webmin/status/services/1140983277.serv >> >> >> oldremote= >> >> > >> >> > Hi Grant, >> >> > Where is this 'Host is down' message showing up in Webmin exactly? >> >> > Also, what happens if you run a command like : >> >> > >> >> > ping -c 1 the.host.address >> >> > >> >> > from the Unix shell prompt? >> >> > >> >> > - Jamie >> >> > >> >> > >> >> > >> >> > >> >> > ------------------------------------------------------- >> >> > This SF.Net email is sponsored by xPML, a groundbreaking scripting >> >> > language >> >> > that extends applications into web and mobile media. Attend the live >> >> > webcast >> >> > and join the prime developer group breaking into this new coding >> >> > territory! >> >> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >> >> > - >> >> > Forwarded by the Webmin mailing list at >> >> > web...@li... >> >> > To remove yourself from this list, go to >> >> > http://lists.sourceforge.net/lists/listinfo/webadmin-list >> >> > >> >> >> >> >> >> >> >> >> >> ------------------------------------------------------- >> >> This SF.Net email is sponsored by xPML, a groundbreaking scripting >> >> language >> >> that extends applications into web and mobile media. Attend the live >> >> webcast >> >> and join the prime developer group breaking into this new coding >> >> territory! >> >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >> >> - >> >> Forwarded by the Webmin mailing list at >> >> web...@li... >> >> To remove yourself from this list, go to >> >> http://lists.sourceforge.net/lists/listinfo/webadmin-list >> >> >> > >> > >> > >> > ------------------------------------------------------- >> > This SF.Net email is sponsored by xPML, a groundbreaking scripting >> > language >> > that extends applications into web and mobile media. Attend the live >> > webcast >> > and join the prime developer group breaking into this new coding >> > territory! >> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >> > - >> > Forwarded by the Webmin mailing list at >> > web...@li... >> > To remove yourself from this list, go to >> > http://lists.sourceforge.net/lists/listinfo/webadmin-list >> > >> >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by xPML, a groundbreaking scripting >> language >> that extends applications into web and mobile media. Attend the live >> webcast >> and join the prime developer group breaking into this new coding >> territory! >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >> - >> Forwarded by the Webmin mailing list at >> web...@li... >> To remove yourself from this list, go to >> http://lists.sourceforge.net/lists/listinfo/webadmin-list >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > - > Forwarded by the Webmin mailing list at > web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list > |