Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've got a satellite modem I'm monitoring via Nagios, and the way it's set up now, Nagios reports the router on the other side of the satellite link as down when the modem has no signal. I'd like to make the router dependent on the service that checks the satellite signal. I could just make a second satellite host that only checks the signal, but that seems a little hacky.

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

This would ordinarily be implemented in nagios as a parent (modem)/ child (router) host relationship rather than a service or host dependency.

However, in your case that won't work based on the way you view--and have defined--your host check for the modem. The nagios philosophy is that for things whose purpose is to pass traffic (e.g., switch, router, modem) they are alive (up) if they are passing traffic.

share|improve this answer
add comment

The short answer is no. But how about the define router with check_command is check_signal, something like this:

define service{
    use                     generic-service
    host_name               modem
    service_description     satellite_signal
    check_command           check-signal
    contacts                admin
}

define host {
    use                     generic-router
    host_name               router
    address                 1.2.3.4
    check_command           check-signal
    contacts                admin
}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.