Automate Host / Service activation & deactivation

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lrnnetops
Posts: 102
Joined: Thu May 18, 2017 5:31 am

Automate Host / Service activation & deactivation

Post 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
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Automate Host / Service activation & deactivation

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
lrnnetops
Posts: 102
Joined: Thu May 18, 2017 5:31 am

Re: Automate Host / Service activation & deactivation

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Automate Host / Service activation & deactivation

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
lrnnetops
Posts: 102
Joined: Thu May 18, 2017 5:31 am

Re: Automate Host / Service activation & deactivation

Post by lrnnetops »

Hi benjaminsmith,

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

Regards,
Rohan
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Automate Host / Service activation & deactivation

Post by benjaminsmith »

Hi Rohan,

Sounds good. We'll keep this open.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked