Xymon seems like a LOT of overhead for a simple ping test.
What about something like bash?
while true; do
until ping -c1 -W2 192.168.1.1 &>/dev/null; do
sleep 3
done
echo "ping success"
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
On Mon, Nov 26, 2012 at 9:44 PM, James <user-62138871fbd6@xymon.invalid> wrote:
Thanks for the prompt reply guys, really appreciate that.
The reason why I want to modify Xymon is because I'm working on a small
class project
which only need a simple networking-related function (in my case: ping)
with minimal size of code.
I understand Xymon is powerful and runs fast in most of cases, but the
best case is to make
some minor changes based on Xymon simply because I can't just take Xymon
and turn it in as my project.
My optimal goal is: to use minimal amount of code to perform a ping test,
but keep the framework and
style of Xymon. (Now I'm reading Xymonping.c file under /xymonnet folder)
Anyone has idea about how I can achieve this goal? Any opinion will be
greatly appreciated!
Thanks again!
James