Monitoring of a server and services through another server

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
supportcl
Posts: 39
Joined: Wed Oct 07, 2020 12:19 pm

Monitoring of a server and services through another server

Post by supportcl »

Hello, I have the following problem, I have my nagios server that has access to server A, without problems, but there is a server B that only server A has access to, so nagios does not reach server B, I am interested in being able to through from server A, ping server B and also see if port 80 is open, but "see" that somehow in nagios. How can I achieve that?
Server B is a 5.x redhat and Server A is a 6.10 redhat
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Monitoring of a server and services through another serv

Post by dchurch »

You can run this HTTP check remotely using the remote Linux machine to complete the request.

1. Download this file to /usr/local/ncpaplugins/check_http.py.
2. Run Command Prompt as administrator. Type this:

Code: Select all

pip3 install requests
3. Enter this into the Nagios XI service:
- Plugin: check_xi_ncpa
- Arg1: -t '<your NCPA community string>' -M 'plugins/check_http.py' -a '<your URL>'

The script I linked is specially modified to allow a quoting workaround for NCPA, so you'll want to put quotes around the '<your URL>' string in your arg1. E.g. -a '"https://example.com"' - that's a single quote ('), then a double quote ("), then the URL, then a double quote ("), then a single quote (').
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
Locked