Page 2 of 3
Re: How do I set up rta alerts against a router (Zaji) ?
Posted: Wed Dec 17, 2014 12:30 pm
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
Re: How do I set up rta alerts against a router (Zaji) ?
Posted: Wed Dec 17, 2014 2:16 pm
by lmiltchev
It seems like everything is working as expected. You have:
so the "warning" state results in host "UP" state. If you had:
the "warning" state would result in host "DOWN" state.
Re: How do I set up rta alerts against a router (Zaji) ?
Posted: Thu Dec 18, 2014 12:23 am
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
Re: How do I set up rta alerts against a router (Zaji) ?
Posted: Thu Dec 18, 2014 11:25 am
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?
Re: How do I set up rta alerts against a router (Zaji) ?
Posted: Thu Dec 18, 2014 11:48 am
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
Re: How do I set up rta alerts against a router (Zaji) ?
Posted: Thu Dec 18, 2014 11:58 am
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.
Re: How do I set up rta alerts against a router (Zaji) ?
Posted: Thu Dec 18, 2014 12:13 pm
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
Re: How do I set up rta alerts against a router (Zaji) ?
Posted: Thu Dec 18, 2014 1:58 pm
by tmcdonald
We will keep this topic open for a bit while you test the implementation.
Re: How do I set up rta alerts against a router (Zaji) ?
Posted: Thu Dec 18, 2014 2:04 pm
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.
Re: How do I set up rta alerts against a router (Zaji) ?
Posted: Thu Dec 18, 2014 3:56 pm
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