4/9/09

Nagios - Instead of a ping check to see if a host is alive, use http instead

Sometimes (often) ICMP is blocked, so you can't ping check your hosts to see if they are alive.

You can add this to commands.cfg and hosts.cfg for those hosts to check via http instead.

commands.cfg
define command {
command_name check-host-alive-by-http
command_line $USER1$/check_http -H $HOSTADDRESS
}

hosts.cfg

define host{
host_name hostname.com
address ip.address
alias hostnamealias
use networking_machines_template
check_command check-host-alive-by-http
}

1 comment:

  1. Important Information on Packt's Learning Nagios 3.0

    Hello,

    My name is Afsha and I work for Packt, a UK based publishing company specializing in focused IT books. We have recently published a book titled “Learning Nagios 3.0” written by Wojciech Kocjan, which is a comprehensive configuration guide to monitor and maintain your network and systems. You can read more about the book here:
    http://www.packtpub.com/guide-for-learning-nagios-3/book

    I found relevant content on your website KylePikeLinux.blogspot.com about Nagios, through Google search. With your eminent expertise, you would be an excellent person to review this book. If you are interested, I would place an order for a PDF version of this book at absolutely no cost to you. I can also send you a Book Extract that you could feature on your website/weblog as it would be exclusive content for your audiences.

    Please feel free to contact me, if you are interested in other Packt related ideas like the partnership program at 10% referral commission through a unique URL.

    Please let me know your response with your complete address. I look forward to your next email.

    Thank you,

    Afsha
    --
    Afsha Walele
    Marketing Research Executive | Packt Publishing | www.PacktPub.com
    Phone: +91-22-66987683/84
    MSN: afshaw@packtpub.com | Skype: afsha_packt

    ReplyDelete