Page 1 of 1
Monitoring of a server and services through another server
Posted: Thu Feb 25, 2021 1:55 pm
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
Re: Monitoring of a server and services through another serv
Posted: Thu Feb 25, 2021 4:34 pm
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:
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 (').