z

Commercial Support Clients: Clients with support contracts can get escalated support assistance by visiting Nagios Answer Hub. These forums are for community support services. Although we at Nagios try our best to help out on the forums here, we always give priority support to our support clients.

How to still check Service when the Host is down....?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.

How to still check Service when the Host is down....?

Postby mohnewald » Tue Jan 31, 2023 2:43 am

Hello,

we would like to monitor a router, which has 3 Interfaces.
Interface 1: The "main" interface on the customer side. Its the host address
Interface 2: 1st WAN Uplink
Interface 3: 2nd WAN Uplink

I wrote a own plugin, which checks the WAN Uplinks as a service with escalation and stuff. (e.g. if one uplink is down, its a warnung, if both are down, its critical).

However, if the Customer unplugs the "main" interface, its IP (and the host address) is down and my service is stuck in hard state 1/3.

How can i still "run" the service check is the assigned host is down?

I already tried to depend the service to some other dummy host with:

Code: Select all
define servicedependency{
       dependent_hostgroup_name        DualPing
       service_description             DualPing
       dependent_host_name             dummyhost
       dependent_service_description   DualPing
        }


But that did not do the trick :/

Any other hints?

Cheers,
Michael
mohnewald
 
Posts: 1
Joined: Fri Dec 10, 2021 8:53 am

Re: How to still check Service when the Host is down....?

Postby kg2857 » Tue Jan 31, 2023 2:34 pm

Can you ping the WANs? If so maybe you can test ping to the main I/F (#1), then #2 and check via #2, and finally #3 if #2 is also down.
Think about searching the internet about your question. It will give you a million possibilities in the blink of an eye.
kg2857
 
Posts: 93
Joined: Thu Jan 26, 2023 8:47 pm

Re: How to still check Service when the Host is down....?

Postby RobMcL » Mon Feb 13, 2023 12:43 pm

Switch Loopback addresses were designed for this purpose. They are always up regardless of interface statuses and you should be utilizing these on your network for monitoring instead of using VLAN IPs.
RobMcL
 
Posts: 7
Joined: Wed Jun 12, 2019 11:50 am


Return to Nagios XI

Who is online

Users browsing this forum: Majestic-12 [Bot], sdenjuopl148 and 16 guests