I have a Nagios Core machine sending NRDP obsessions to NagiosXI with a valid (as far as I can tell) token. There is nothing showing up in Unconfigured Hosts
I see bits flying to...
10:06:42.403864 IP 192.168.200.251.55662 > dooku.apfcu.local.https: Flags [P.], seq 1292:1323, ack 2936, win 293, options [nop,nop,TS val 1553940375 ecr 156497606], length 31
10:06:42.403971 IP dooku.apfcu.local.https > 192.168.200.251.55662: Flags [F.], seq 2936, ack 1323, win 245, options [nop,nop,TS val 156497606 ecr 1553940375], length 0
10:06:42.404331 IP 192.168.200.251.55662 > dooku.apfcu.local.https: Flags [F.], seq 1323, ack 2937, win 293, options [nop,nop,TS val 1553940375 ecr 156497606], length 0
10:06:42.404361 IP dooku.apfcu.local.https > 192.168.200.251.55662: Flags [.], ack 1324, win 245, options [nop,nop,TS val 156497607 ecr 1553940375], length 0
10:06:42.591161 IP 192.168.200.251.55664 > dooku.apfcu.local.https: Flags , seq 461063474, win 29200, options [mss 1360,sackOK,TS val 1553940562 ecr 0,nop,wscale 7], length 0
and fro...
10:42:30.684551 IP dooku.apfcu.local.https > betelgeuse.sto.did.60220: Flags [F.], seq 2936, ack 1309, win 245, options [nop,nop,TS val 23840 ecr 1556088592], length 0
10:42:30.684630 IP betelgeuse.sto.did.60220 > dooku.apfcu.local.https: Flags [F.], seq 1309, ack 2937, win 293, options [nop,nop,TS val 1556088593 ecr 23840], length 0
10:42:30.684919 IP dooku.apfcu.local.https > betelgeuse.sto.did.60220: Flags [.], ack 1310, win 245, options [nop,nop,TS val 23840 ecr 1556088593], length 0
[root@dooku ~]# ps -ef|grep nagios.cfg
nagios 2374 1 4 10:37 ? 00:00:05 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 2662 2374 0 10:37 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root 29269 16394 0 10:39 pts/0 00:00:00 grep --color=auto nagios.cfg
[root@dooku ~]
tail -f /usr/local/nagiosxi/var/feedproc.log
PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/nagiosim/nagiosim.inc.php on line 491
.PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/nagiosim/nagiosim.inc.php on line 491
.PHP Warning: Invalid argument supplied for foreach() in /usr/local/nagiosxi/html/includes/components/nagiosim/nagiosim.inc.php on line 491
And on the Nagios Core machine:
[root@betelgeuse objects]# grep nrd commands.cfg
command_name send_nrdp_host
command_line $USER1$/send_nrdp.php --url=https://dooku/nrdp/ --token=dddd --host="$HOSTNAME$" --state=$HOSTSTATEID$ --output="$HOSTOUTPUT$"
command_name send_nrdp_service
command_line $USER1$/send_nrdp.php --url=https://dooku/nrdp/ --token=dddd --host="$HOSTNAME$" --service="$SERVICEDESC$" --state=$SERVICESTATEID$ --output="$SERVICEOUTPUT$"
[root@betelgeuse objects]#
#grep -E "^[^#]" ../nagios.cfg|grep -e obsess -e ocsp -e ochp
ocsp_timeout=5
ochp_timeout=5
obsess_over_services=1
ocsp_command=send_nrdp_service
obsess_over_hosts=1
ochp_command=send_nrdp_host
Not sure where to go next
NRDP Unconfigured empty
-
glitchcowboy
- Posts: 38
- Joined: Tue Sep 29, 2015 2:59 pm
Re: NRDP Unconfigured empty
Also, I tried this:
https://support.nagios.com/forum/viewto ... 75#p256356
and upgraded to 5.7.3, yum update -y and rebooted
https://support.nagios.com/forum/viewto ... 75#p256356
and upgraded to 5.7.3, yum update -y and rebooted
-
glitchcowboy
- Posts: 38
- Joined: Tue Sep 29, 2015 2:59 pm
Re: NRDP Unconfigured empty
Here's the answer
https://support.nagios.com/forum/viewto ... 16&t=48398
added "Require all granted" to /etc/httpd/conf.d/nrdp.conf and restarted httpd. I assume that's a valid / supported adjustment?
https://support.nagios.com/forum/viewto ... 16&t=48398
added "Require all granted" to /etc/httpd/conf.d/nrdp.conf and restarted httpd. I assume that's a valid / supported adjustment?
Re: NRDP Unconfigured empty
Yes, that's valid.
Here's what I have for nrdp.conf:
You may want to double-check your nagios.conf:
And your nagiosxi.conf:
Here's what I have for nrdp.conf:
Code: Select all
Alias /nrdp "/usr/local/nrdp/server"
<Directory "/usr/local/nrdp">
# SSLRequireSSL
Options None
AllowOverride None
<IfVersion >= 2.3>
<RequireAll>
Require all granted
# Require host 127.0.0.1
# AuthName "NRDP"
# AuthType Basic
# AuthUserFile /usr/local/nrdp/htpasswd.users
# Require valid-user
</RequireAll>
</IfVersion>
<IfVersion < 2.3>
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
# AuthName "NRDP"
# AuthType Basic
# AuthUserFile /usr/local/nrdp/htpasswd.users
# Require valid-user
</IfVersion>
Require all granted
</Directory>Code: Select all
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Core"
AuthType Basic
AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
Require valid-user
Require all denied
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Core"
AuthType Basic
AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
Require valid-user
Require all denied
</Directory>
Code: Select all
<Directory "/usr/local/nagiosxi/html">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
# AuthName "Nagios XI"
# AuthType Basic
# AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
# Require valid-user
Require all granted
</Directory>
Alias /nagiosxi "/usr/local/nagiosxi/html"
# Special configuration to allow .htaccess in custom includes
<Directory "/usr/local/nagiosxi/html/includes/components/custom-includes">
AllowOverride All
Options None
Require all granted
</Directory>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule nagiosxi/api/v1/(.*)$ /usr/local/nagiosxi/html/api/v1/index.php?request=$1 [QSA,NC,L]
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule nagiosxi/api/v1/(.*)$ /usr/local/nagiosxi/html/api/v1/index.php?request=$1 [QSA,NC,L]
</IfModule>