Hi Team,
We have recently installed Nagios XI 5.7.1 on our Centos 8.x server.
In Nagios XI GUI, we can see a new feature called "Deploy Agent" which is a part of "Auto Deployment"".
We have used 5.6.14 Nagios XI earlier, so not aware about this new feature. It seems to be very useful.
Could you please provide a standard document that covers this feature and how to use it?
If not document, could you please help us to understand this feature and its working?
Also, in Deploy Agent section, I can just see three OS, those are Linux, Mac OS X, and Solaris. I am not understanding why is it not showing Windows machine there.
Please help us on it.
Thanks a lot in advance!!
Nagios 5.7.1
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Nagios 5.7.1
Hi,
We are very excited about the Agent Deployment feature in 5.7. The new feature will allow you to deploy NCPA to large numbers of remote hosts. Currently, we do have Windows support but that is coming soon.
The process for deploying an agent is as follows. Please let me know if you have further questions. Fields
IP Addresses: Enter one or more host IP addresses. Separate addresses with a carriage return. NOTE: If entering more than one host, the hosts entered must have the same operating system and username/password combination.
Operating System: The operating system of the host system(s). The currently supported operating systems are:
Linux
Mac OS X
AIX
Solaris
Auth Type: The type of authorization used to access the host. Currently, only password authorization is supported.
Username and Password: The username and password of the root user or a user who can sudo to root.
Process
1. Enter host data into all the fields on the Deploy Agent screen.
2. Click Deploy.
3. The system will attempt to deploy the selected agent. For hosts that successfully install agents, the Deploy Agent screen will display a success message. For hosts that fail in the install agent process, the Deploy Agent screen will display a failure message. See Important Notes.
4. If your agent deploy is successful, you can click on the Run Wizard button to run the agent configuration wizard on the selected host system.
Important Notes
There must be a version of python installed on the host systems.
All systems must be connected to the internet.
If deploying an agent from NagiosXI hosted on Centos 6, a python file called ‘python’ must exist in /usr/bin/ on any systems you are deploying to that are EL-8 (Centos 8 or RHEL 8). One method of accomplishing this is to copy the EL-8 version of python (python3, python2, etc…).
Example:
cp /usr/bin/python3 /usr/bin/python
There is currently no ssh key Auth Type – an ssh key only server will not be able to use Automatic Agent Deploy.
On deploy failure, the verbose message displayed should be informational enough to troubleshoot the issue. A couple of common errors and solutions are:
Python does not exist on host system – Install python or ensure that /usr/bin/python exists.
User does not have root access – Change the username to a user that has root access or can sudo into root.
NCPA tokens are set in the Deployment Settings screen. All NCPA deployments will use the same token.
We are very excited about the Agent Deployment feature in 5.7. The new feature will allow you to deploy NCPA to large numbers of remote hosts. Currently, we do have Windows support but that is coming soon.
The process for deploying an agent is as follows. Please let me know if you have further questions. Fields
IP Addresses: Enter one or more host IP addresses. Separate addresses with a carriage return. NOTE: If entering more than one host, the hosts entered must have the same operating system and username/password combination.
Operating System: The operating system of the host system(s). The currently supported operating systems are:
Linux
Mac OS X
AIX
Solaris
Auth Type: The type of authorization used to access the host. Currently, only password authorization is supported.
Username and Password: The username and password of the root user or a user who can sudo to root.
Process
1. Enter host data into all the fields on the Deploy Agent screen.
2. Click Deploy.
3. The system will attempt to deploy the selected agent. For hosts that successfully install agents, the Deploy Agent screen will display a success message. For hosts that fail in the install agent process, the Deploy Agent screen will display a failure message. See Important Notes.
4. If your agent deploy is successful, you can click on the Run Wizard button to run the agent configuration wizard on the selected host system.
Important Notes
There must be a version of python installed on the host systems.
All systems must be connected to the internet.
If deploying an agent from NagiosXI hosted on Centos 6, a python file called ‘python’ must exist in /usr/bin/ on any systems you are deploying to that are EL-8 (Centos 8 or RHEL 8). One method of accomplishing this is to copy the EL-8 version of python (python3, python2, etc…).
Example:
cp /usr/bin/python3 /usr/bin/python
There is currently no ssh key Auth Type – an ssh key only server will not be able to use Automatic Agent Deploy.
On deploy failure, the verbose message displayed should be informational enough to troubleshoot the issue. A couple of common errors and solutions are:
Python does not exist on host system – Install python or ensure that /usr/bin/python exists.
User does not have root access – Change the username to a user that has root access or can sudo into root.
NCPA tokens are set in the Deployment Settings screen. All NCPA deployments will use the same token.
You do not have the required permissions to view the files attached to this post.
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios 5.7.1
Hello,
Thanks for your support!!
We tried to Deploy agent using the feature in Nagios XI GUI on a Linux server. The agent is getting failed with the attached error message.
Below is the python in that's server, I am sure there is something we are missing related to python.
[root@NagiosUAT bin]# cd /usr/bin
[root@NagiosUAT bin]# ls -lrt | grep -i "python"
-rwxr-xr-x. 1 root root 157 Jun 30 14:05 python
drwxr-xr-x. 17 root root 4096 Jun 30 14:39 Python-3.8.3
[root@NagiosUAT bin]# cd Python-3.8.3
[root@NagiosUAT Python-3.8.3]# ls -lrt | grep -i "python"
drwxr-xr-x. 3 root root 4096 Jun 30 14:54 Python
[root@NagiosUAT Python-3.8.3]# cd Python
[root@NagiosUAT Python]# ls -lrt | grep -i "python"
-rw-r--r--. 1 root root 49030 Jun 30 14:39 pythonrun.c
-rw-r--r--. 1 root root 290582 Jun 30 14:39 Python-ast.c
lrwxrwxrwx. 1 root root 11 Jun 30 14:54 python -> /bin/python
[root@NagiosUAT Python]#
Please check and help us on the same.
Thanks for your support!!
We tried to Deploy agent using the feature in Nagios XI GUI on a Linux server. The agent is getting failed with the attached error message.
Below is the python in that's server, I am sure there is something we are missing related to python.
[root@NagiosUAT bin]# cd /usr/bin
[root@NagiosUAT bin]# ls -lrt | grep -i "python"
-rwxr-xr-x. 1 root root 157 Jun 30 14:05 python
drwxr-xr-x. 17 root root 4096 Jun 30 14:39 Python-3.8.3
[root@NagiosUAT bin]# cd Python-3.8.3
[root@NagiosUAT Python-3.8.3]# ls -lrt | grep -i "python"
drwxr-xr-x. 3 root root 4096 Jun 30 14:54 Python
[root@NagiosUAT Python-3.8.3]# cd Python
[root@NagiosUAT Python]# ls -lrt | grep -i "python"
-rw-r--r--. 1 root root 49030 Jun 30 14:39 pythonrun.c
-rw-r--r--. 1 root root 290582 Jun 30 14:39 Python-ast.c
lrwxrwxrwx. 1 root root 11 Jun 30 14:54 python -> /bin/python
[root@NagiosUAT Python]#
Please check and help us on the same.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
I2MP Team.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Nagios 5.7.1
Hi,
Thanks for posting the error message, it looks like it did connect briefly and then fail. What operating system are you installing NCPA on to as I would like to test this out here? Also, how did you install python on the server and what is the output of the following commands?
Thanks for posting the error message, it looks like it did connect briefly and then fail. What operating system are you installing NCPA on to as I would like to test this out here? Also, how did you install python on the server and what is the output of the following commands?
Code: Select all
which python
python --version
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Nagios 5.7.1
Hello,
We reinstalled python and it worked fine.
Please keep the topic open for a couple of days so that we can contact you for any other queries related to this new feature.
Thanks!!
We reinstalled python and it worked fine.
Please keep the topic open for a couple of days so that we can contact you for any other queries related to this new feature.
Thanks!!
Thanks & Regards,
I2MP Team.
I2MP Team.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Nagios 5.7.1
Hi,
Benjamin
Glad to hear it's working now. No problem, I'll leave this open for now.We reinstalled python and it worked fine.
Please keep the topic open for a couple of days so that we can contact you for any other queries related to this new feature.
Benjamin
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!