@Slodge123, There's a PowerShell script you can run on windows to send NRDP check result manually from the windows host to Nagios. This will be very helpful in our case.
1. Extract the script called ps_nrdp.ps1 from the zip file that I attached.
2. Put the script somewhere on your Windows computer, like in C://
3. Open Windows Powershell as
administrator (you can search for it in windows search, it's a default program).
4. Type
Set-ExecutionPolicy RemoteSigned to allow PowerShell script execution
5. Navigate to the folder where your script is and run it:
Code: Select all
.\ps_nrdp.ps1 -url http://YOUR_NAGIOS_IP -token YOUR_TOKEN -hostname test -service test -state OK -output test -delim 1
6. You should see something like:
Code: Select all
SUCCESS - checks succesfully sent, NRDP returned: <?xml version="1.0" encoding="utf-8"?>
<result>
<status>0</status>
<message>OK</message>
<meta>
<output>1 checks processed.</output>
</meta>
</result>
)
Great!
On your nagios server run
tail -f /usr/local/nagios/var/nagios.logtail -f /usr/local/nagios/var/nagios.logto live track incoming nrdp data.
Do you see anything now?
Also, in your ncpa.cfg file on windows change:
Code: Select all
#
loglevel =debug
logfile = var/log/ncpa_listener.log
pidfile = var/run/ncpa_listener.pid
#
Restart Ncpa service.
And on Nagios server check for these log files. There could be some debugging information in there as well.