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: 937-552-2340 Direct: 937-552-2343 1100 Wayne St Suite 1337 Troy, OH 45373
On Mon, Nov 26, 2012 at 9:44 PM, James <kfc.android at gmail.com> 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
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon