In some section of my env. I have multiple servers running linux ... I am hosting them as colocation for clients ... these clients can be accessed from a deployment server which belong to our company this deployment server can access to these server with ssh-id without typing passwords ..
however the deployment server got on it nrpe and nagios plugins .... is it possible from the deployment server to watchgaurd these clients .... I want to see if the services on these clients are up such as http dba tomcat ...etc
On the clients I cant install anything ... since am not allowed
Remote servers
Remote servers
You do not have the required permissions to view the files attached to this post.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Remote servers
Hello @fsodah,
If you can directly access the clients from XI using ssh that would be the easiest to setup. Otherwise, one option would be to send passive check results collected by Nagios Core running on the deployment server using NRPD.
See: Distributed Monitoring With NRDP
If you are not able to install plugins directly on the client, it does limit what can be checked from NRPE/Nagios.
If you can directly access the clients from XI using ssh that would be the easiest to setup. Otherwise, one option would be to send passive check results collected by Nagios Core running on the deployment server using NRPD.
See: Distributed Monitoring With NRDP
If you are not able to install plugins directly on the client, it does limit what can be checked from NRPE/Nagios.
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: Remote servers
If the services open up ports that your deployment server can access then the deployment server can verify that client services are up using a plugin like check_tcp. This simply checks to see if a port is up and listening. Checks like check_http, check_ssh, check_mysql_health, etc... can be used to connect to services if you need more than a tcp handshake to verify a service is working.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Remote servers
You can also try the following:
1. On the clients, you may set up something like this in sudoers:
2. On the server with NRPE installed, you could add a command as this one:
Note: Make sure that the Nagios XI ip address is added to the "allowed_hosts" line in nrpe.cfg file.
3. Test it from the command line on the Nagios XI server:
Example:
1. On the clients, you may set up something like this in sudoers:
Code: Select all
Defaults:nagios !requiretty
nagios ALL=NOPASSWD: /sbin/service *Code: Select all
command[check_httpd_remote]=/usr/local/nagios/libexec/check_by_ssh -H <client ip> -C "sudo service httpd status"3. Test it from the command line on the Nagios XI server:
Code: Select all
su - nagios
/usr/local/nagios/libexec/check_nrpe -H <ip address of the deployment server> -c check_httpd_remoteCode: Select all
[nagios@TEST_XI_CentOS_6 ~]$ /usr/local/nagios/libexec/check_nrpe -H x.x.x.x -c check_httpd_remote
httpd (pid 26289) is running...Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Remote servers
let me try this ,,, i need some time to figure it out ... let me get back to my office i will test it ... and update you .. please keep it open the ticket
Re: Remote servers
Sure, we will keep the topic open. Let us know if you have any further questions.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Remote servers
decided to install nrpe on all clients to get a proper data analysis .... please close the ticket.
Re: Remote servers
Okay, thank you for reporting back. We'll close it up.
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!