deploy a worker, it goes into failed status

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
btayl
Posts: 131
Joined: Mon Aug 24, 2020 8:51 am

deploy a worker, it goes into failed status

Post by btayl »

i,
When I try to deploy a worker, it goes into pending and then failed status.
Some details:
I'm using an account with full sudo access,
ports 22 and 4370 are both enabled
I have enabled the nagios, epel, and codeready repositories on the worker.
with the worker I have tried both Hostname and Ip address
is there some instruction I am missing
gwesterman
Posts: 268
Joined: Wed Aug 23, 2023 11:29 am

Re: deploy a worker, it goes into failed status

Post by gwesterman »

Hi @btayl,

First, make sure you can ssh into the machine as root.

If that doesn't fix it, them when you try to deploy, could you copy and send me the contents appended to

Code: Select all

/usr/local/nagiosxi/var/components/nmg.log
?
Or you could read the output and try to fix it yourself if you would like.

Thank you!
btayl
Posts: 131
Joined: Mon Aug 24, 2020 8:51 am

Re: deploy a worker, it goes into failed status

Post by btayl »

SSH as root is disabled as per any good security measure you can ssh in as a user that has sudo privlages
btayl
Posts: 131
Joined: Mon Aug 24, 2020 8:51 am

Re: deploy a worker, it goes into failed status

Post by btayl »

/local/nagiosxi/var/components/nmg.log
sh: ansible-playbook: command not found
sh: ansible-playbook: command not found
sh: ansible-playbook: command not found
sh: ansible-playbook: command not found
sh: ansible-playbook: command not found
sh: ansible-playbook: command not found
sh: ansible-playbook: command not found
sh: ansible-playbook: command not found
btayl
Posts: 131
Joined: Mon Aug 24, 2020 8:51 am

Re: deploy a worker, it goes into failed status

Post by btayl »

Any updates ?
DoubleDoubleA
Posts: 272
Joined: Thu Feb 09, 2017 5:07 pm

Re: deploy a worker, it goes into failed status

Post by DoubleDoubleA »

Hi @btayl,

Thanks for your notes.

Support for non-root users in the Nagios Mod-Gearman process may be in future versions, but it is not in the current version of the deployment.

The error message seems like ansible isn't installed somehow or it is installed but not where it is expected.

What does

Code: Select all

which ansible-playbook
return?
btayl
Posts: 131
Joined: Mon Aug 24, 2020 8:51 am

Re: deploy a worker, it goes into failed status

Post by btayl »

which ansible-playbook
/usr/bin/ansible-playbook
DoubleDoubleA
Posts: 272
Joined: Thu Feb 09, 2017 5:07 pm

Re: deploy a worker, it goes into failed status

Post by DoubleDoubleA »

How did you do on this?

I don't know how to reconcile the fact that it says "command not found" but ansible-playbook is where it should be.
Post Reply