NRDP and proxy
Posted: Thu Jan 11, 2018 5:17 am
Good morning
I have a issues with NRDP passive checks and proxy server.
This is the network architecture:
-------------------------------------> Proxy (10.0.0.70:8080) ---------------> INTERNET -------------------> Nagios XI (20.20.20.20) NRDP
| (HTTPS/HTTP) NRDP
|
|
Nagios Core ----------------------------------------------> firewall (10.0.0.19) --------------------> INTERNET
INTERNET
IP:10.0.0.10
MASK: /24
DG: 10.0.0.19
nagios.cfg:
ocsp_command=send_nrdp_service
obsess_over_services=1
obsess_over_hosts=1
ochp_command=send_nrdp_host
-------------------------------------------------------------------
command.cfg:
### NRDP ###
define command{
command_name send_nrdp_host
command_line $USER1$/send_nrdp.php --url=https://20.20.20.20/nrdp/ --token=XXXXX --host="$HOSTNAME$" --state=$HOSTSTATEID$ --output="$HOSTOUTPUT$"
}
define command{
command_name send_nrdp_service
command_line $USER1$/send_nrdp.php --url=https://20.20.20.20/nrdp/ --token=XXXXX --host="$HOSTNAME$" --service="$SERVICEDESC$" --state=$SERVICESTATEID$ --output="$SERVICEOUTPUT$"
}
------------------------------------------------
Into ./bachrc and ./bash_profile
export http_proxy="http://user:[email protected]:8080"
export https_proxy="http://user:[email protected]:8080"
When the nagios execute this commands, all checks go through to the firewall (default gateway), but if I execute this commands in the command line, the checks go through to proxy server.
I don't know why these issues happen.
Can somebody help me?
I have a issues with NRDP passive checks and proxy server.
This is the network architecture:
-------------------------------------> Proxy (10.0.0.70:8080) ---------------> INTERNET -------------------> Nagios XI (20.20.20.20) NRDP
| (HTTPS/HTTP) NRDP
|
|
Nagios Core ----------------------------------------------> firewall (10.0.0.19) --------------------> INTERNET
INTERNET
IP:10.0.0.10
MASK: /24
DG: 10.0.0.19
nagios.cfg:
ocsp_command=send_nrdp_service
obsess_over_services=1
obsess_over_hosts=1
ochp_command=send_nrdp_host
-------------------------------------------------------------------
command.cfg:
### NRDP ###
define command{
command_name send_nrdp_host
command_line $USER1$/send_nrdp.php --url=https://20.20.20.20/nrdp/ --token=XXXXX --host="$HOSTNAME$" --state=$HOSTSTATEID$ --output="$HOSTOUTPUT$"
}
define command{
command_name send_nrdp_service
command_line $USER1$/send_nrdp.php --url=https://20.20.20.20/nrdp/ --token=XXXXX --host="$HOSTNAME$" --service="$SERVICEDESC$" --state=$SERVICESTATEID$ --output="$SERVICEOUTPUT$"
}
------------------------------------------------
Into ./bachrc and ./bash_profile
export http_proxy="http://user:[email protected]:8080"
export https_proxy="http://user:[email protected]:8080"
When the nagios execute this commands, all checks go through to the firewall (default gateway), but if I execute this commands in the command line, the checks go through to proxy server.
I don't know why these issues happen.
Can somebody help me?