PDA

View Full Version : Integration of a script to check_host_alive


the-me
07-17-2007, 12:50 PM
Hello,

I want to "include" to the check_host_alive script a perl script. This should look like following:

If the <hostname> is detected as completly down from check_host_alive, it should simply call a perl script with the <hostname> as argument.
Now the problem is, that check_ping in /usr/lib/nagios/plugins is binary.

So how could I integrate this or does anyone know a better way and how to do?

Thanks and regards,
Patrick

DonKiShoot
07-17-2007, 02:11 PM
create a perl script who do what you want and call check_host_alive and return the exit code of check_host_alive