Page 1 of 1
some Host to be check at (1,1,1)
Posted: Sat Jan 13, 2018 12:23 am
by zaji_nms
Dear Expert
Around 100 Host Alert/Notification working fine (5 , 1 , 5) for our customers but among these hosts some hosts (around 20) to be check as (1 , 1 , 1) and immediate alert to be trigger to our Network Team. How possible?
As all Hosts (100) already added and working fine, we do not want to re-add important (20) hosts with duplicate name and to check at (1 , 1 , 1) manner to generate immediate alert/notification to our Network Team.
Regards
Re: some Host to be check at (1,1,1)
Posted: Mon Jan 15, 2018 10:40 am
by npolovenko
Hello,
@zaji_nms. You could use a Bulk Modifications Tool in XI. You can find it in Core Configurations Manager -> Tools -> Bulk Modifications Tool(that's in a left column). Then you'd choose "Change a Single Config Option" option. From there you can select a Notifications Interval, Retry Interval, or Max Check Attempts. Then click on "Select Hosts" and select those 20 hosts. You may press shift to select many hosts at once or CRL. Click on Save Changes, and then Apply Configuration.
Let me know if that helps.
Re: some Host to be check at (1,1,1)
Posted: Tue Jan 16, 2018 6:58 am
by zaji_nms
Dear npolovenko
Looks me unable to make you understand....once again
The Hosts (100 hosts) we added are customers hosts, working fine, alert triggering, its great........however among (100) there are 20 hosts which are related to our Top Priority customers, if any of (among these 20) down even for 1 minutes (1 , 1 , 1) email notification to be trigger to our Technical Team only (not to the customer), is there any way?
Email Notification will trigger to customer if there is HARD State, Email Notification will trigger to our Technical Team if its down in SOFT State.
Regards
Re: some Host to be check at (1,1,1)
Posted: Tue Jan 16, 2018 12:24 pm
by npolovenko
@zaji_nms, The only way I see to achieve is using an event handler. Take a look at this tutorial explaining how to set one up.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
You'd create a custom event handler script and associate it with the top priority hosts, and have it send an email whenever HOSTSTATETYPE maco gets into a soft state. (Here's a reference to macro's in Nagios:
https://assets.nagios.com/downloads/nag ... rolist.htm)
And if you're wondering how to get an event handler script to send emails. You can modify and reuse those standard email commands (
notify-host-by-email) from /usr/local/nagios/etc/commands.cfg
Let us know if this helps.