Page 1 of 1

Check one service for 3 servers together

Posted: Wed Dec 01, 2021 4:21 am
by lanxessinfy
Hello,

Greetings!

Is it possible to check one service for 3 servers together & if same service is down for all 3 servers then it should trigger Critical alert, if its down for 2 servers then it should trigger Warning alert in NagiosXi.

if it is possible, please provide us steps to achieve the above requirement.

Thanks!

Re: Check one service for 3 servers together

Posted: Wed Dec 01, 2021 12:24 pm
by gsmith
What you are asking for should be achieved by using BPI in Nagios XI GUI.

Nagios BPI was created as a way to visualize business
process health by grouping hosts and services together, and
creating rules to discern the true health of the network
infrastructure as it relates to the business.

The following link are the instructions on how to use the BPI component.

https://assets.nagios.com/downloads/nag ... BPI_v2.pdf

With BPI, you can use it to add weight to the checks and have the notifications generated depending on the weights applied to the checks.

Take a look at it and let me know if you have any questions.

Re: Check one service for 3 servers together

Posted: Thu Dec 02, 2021 9:18 am
by lanxessinfy
Hello gsmith,

thanks for the response.

I have configured with BPI.

I have one more query : Can i get host names in the output like host names of services which are in problem ?
I have to trigger email alerts and Tickets(Service Now) with Host names of services .

Currently I am getting only number services which are in problem like below:
Group health below critical threshold of 1% Health is 0% with 3 problem(s).

Group health below warning threshold of 35% Health is 33.3% with 2 problem(s).


Thanks!

Re: Check one service for 3 servers together

Posted: Fri Dec 03, 2021 10:23 am
by benjaminsmith
HI,
I have one more query : Can i get host names in the output like host names of services which are in problem ?
Normally, that should be in there by default. Here's the standard service email template.

Code: Select all

***** Nagios XI Alert *****

%alertsummary%

Notification Type: %type%

Service: %service%
Host: %host%
Address: %hostaddress%
State: %servicestate%
Info:
%serviceoutput%
Date/Time: %datetime%

Respond: %responseurl%
Nagios URL: %xiserverurl%
However, there are also host alias or host address macros available. These messages can be customized. The process is covered in the guide below. Take a look at let me know if you need any assistance.

How to Configure Email And Text Notifications

Understanding Notification Variables

--Benjamin

Re: Check one service for 3 servers together

Posted: Sun Dec 05, 2021 8:54 am
by lanxessinfy
Hello benjaminsmith,

I am getting only dummy host name in email alert body. please look into the below SS:
email.PNG
I Want all the host names and services names in the email alert body and also in the tickets(ServiceNow). Please look into the below SS which contains all hosts and services configured with BPI:
notifications_LI.jpg
Thanks!

Re: Check one service for 3 servers together

Posted: Mon Dec 06, 2021 2:47 pm
by benjaminsmith
Hi lanxessinfy,

THE BPI Intelligence Component is a special case when it comes to notifications since it's set up outside of the normal object configurations and that's why it is necessary to run the BPI Configuration Wizard to receive a notification.

When you run the BPI Config Wizard, it's going to set up a 'dummy' host object (itself) to put the service check under since all service checks must have an associated host.

One suggestion would be to put the host names in the BPI group in the service description so that information is passed along to Service Now. Let me know if that would work.

Benjamin