Page 1 of 1

Automate Host / Service activation & deactivation

Posted: Tue Dec 10, 2019 11:34 am
by lrnnetops
Hi Team,

We are trying to implement below Nagios XI setup in our DR infra. Please let us know feasibility as well as setup instructions for the same.

Nagios XI Version = 5.6.5

1 - We are trying to install / configure nagios XI on "Amazon Linux AMI release 2017.09". Is its possible to setup Nagios XI on "Amazon Linux AMI release 2017.09"?

2 - As its a DR Infra we wanted to keep the Hosts & their services in deactivated mode. but when DR is initiated we wanted to activate all the hosts & their services with automated script. Let us know know to achieve this.

Regards,
Rohan

Re: Automate Host / Service activation & deactivation

Posted: Tue Dec 10, 2019 3:46 pm
by mbellerue
1. The only operating systems we support currently are RedHat, CentOS, Debian, and Ubuntu. Nagios XI may install on AMI, but it's not an OS we test for.

2. Are you doing any kind of automation for disabling the hosts and services right now? This is something that could probably be done through the API if there's not already a built in solution.

Re: Automate Host / Service activation & deactivation

Posted: Wed Dec 11, 2019 4:32 am
by lrnnetops
Hi mbellerue,

I am not clear on your point 2 reply. We wanted to perform bulk activation & deactivation of hosts & their associate services in single execution eg. shell script or option from UI. can you assist on this.

Regards,
Rohan

Re: Automate Host / Service activation & deactivation

Posted: Wed Dec 11, 2019 11:10 am
by benjaminsmith
Hi Rohan,

You can enable/disable active or passive checks on a program-wide basis using the Nagios Core External Command library.

Here are the commands available:
Nagios Core External Commands

And here is a the command with sample Bash script to start active checks:
START_EXECUTING_HOST_CHECKS

These same commands can also be submitted vis the REST API in Nagios XI ( see system/corecommand ).

Let us know if that would suit your requirements or if you have further questions.

Re: Automate Host / Service activation & deactivation

Posted: Thu Dec 12, 2019 10:24 am
by lrnnetops
Hi benjaminsmith,

Thank you for the suggestions. will git it a try & let you know in a week.

Regards,
Rohan

Re: Automate Host / Service activation & deactivation

Posted: Thu Dec 12, 2019 11:25 am
by benjaminsmith
Hi Rohan,

Sounds good. We'll keep this open.