How do I set up rta alerts against a router (Zaji) ?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: How do I set up rta alerts against a router (Zaji) ?

Post by zaji_nms »

Dear lmiltchev

more /usr/local/nagios/etc/nagios.cfg | grep use_aggressive_host_checking
use_aggressive_host_checking=0

I gone through RUL and found as below

Note: If the use_aggressive_host_checking option is enabled, return codes of 1 will result in a host state of DOWN or UNREACHABLE. Otherwise return codes of 1 will result in a host state of UP. The process by which Nagios determines whether or not a host is DOWN or UNREACHABLE is discussed here.

Regards
Zajil NMS
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How do I set up rta alerts against a router (Zaji) ?

Post by lmiltchev »

It seems like everything is working as expected. You have:

Code: Select all

use_aggressive_host_checking=0
so the "warning" state results in host "UP" state. If you had:

Code: Select all

use_aggressive_host_checking=1
the "warning" state would result in host "DOWN" state.
Be sure to check out our Knowledgebase for helpful articles and solutions!
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: How do I set up rta alerts against a router (Zaji) ?

Post by zaji_nms »

Dear lmiltchev

I think its design issue at Nagios level itself. Why Warning should interpret in different way depend on the setting.

Its common understanding : Warning should give Warning, UP should UP, down should down.

FYI, why me insisting to much, we want to send DOWN alert if in real HOST DOWN, not on any warning alert.

If Warning=UP then there will be no Alert which is bad.
If Warning=DOWN it will trigger message to our valued customer that link down, which in real NOT.

Regards
Zajil NMS
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How do I set up rta alerts against a router (Zaji) ?

Post by lmiltchev »

It is by design, but I would like to point out that we are talking about a host check. Generally, you would like to be notified when the host goes down and when it recovers. You need to set this up as a service check. Then, you will get your warnings. Is this an option for you?
Be sure to check out our Knowledgebase for helpful articles and solutions!
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: How do I set up rta alerts against a router (Zaji) ?

Post by zaji_nms »

Dear lmiltchev

I already decided to work on Service but I have to do to much work, because while scanning Host, we never add Ping services as there is already Ping Graph is available (by default), now I have to add Ping Service for all Host then .....

Will try to check if there is option to add Ping Service to all Host (any bulk modification) may help.

Okay, you can close the case.

Regards
Zajil NMS
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How do I set up rta alerts against a router (Zaji) ?

Post by tmcdonald »

If you have a service created, you can simply add it to more hosts by using the CCM. Just go to the service and click the "Manage Hosts" button, then add as many as you want. Same can be done for host groups.
Former Nagios employee
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: How do I set up rta alerts against a router (Zaji) ?

Post by zaji_nms »

Dear tmcdonald

Thanks for advice. However I have never created any PING service , just for Testing Purpose (that what result will give), two/three hosts I have added Ping (checked) while adding Host.

If you guide further, okay, otherwise, if me facing any issue, will report to this Forum.

Regards
Zajil NMS
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How do I set up rta alerts against a router (Zaji) ?

Post by tmcdonald »

We will keep this topic open for a bit while you test the implementation.
Former Nagios employee
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: How do I set up rta alerts against a router (Zaji) ?

Post by lmiltchev »

General steps you can follow:

CCM->Services->Add New

Next, enter:

Config Name -> whatever config name you want to use
Description -> Ping, ICMP or whatever you want to call it
Manage Hosts -> Add it to one or more hosts (or you can add it to a hostgroup)
Manage Templates -> xiwizard_generic_service (if you don't want to set up anything under the "Check Settings" tab and you are OK with defaults)
Check command -> check_xi_service_ping
Fill in the values in $ARG1$ through $ARG4$
Alert Settings -> Add contacts and/or contactgroups
Click on save.
Apply Configuration

Hope this helps. Let us know if you run into some issues.
Be sure to check out our Knowledgebase for helpful articles and solutions!
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: How do I set up rta alerts against a router (Zaji) ?

Post by zaji_nms »

Dear lmiltchev

What you told, we did for common services, CPU, MEMORY, ENVIRONMENT for our all Cisco devices as , one service CPU and add to all Cisco Hosts.

I was thinking the same way but looks it will not work as most of the hosts rtt differ from 10 ms to 200ms (some 10, some 50, some 100 , some 150 ms ....)

No issue, you can close the case. I will add slowly and for all my future Host , I will select Ping to add as a Service which me previously unchecking (ignoring) as by default it was giving Host delay.

Regards
Zajil NMS
Locked