nrds stopped working after its first check

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
adamh
Posts: 22
Joined: Thu Jun 19, 2014 12:40 pm

nrds stopped working after its first check

Post by adamh »

I thought I had NRDS working on a remote server. The task scheduler says it ran successfully. But after the first 2 checks there is nothing in NAGIOS. I've dealt with task scheduler issues in the past and my guess is the two that ran were while I was logged in and after that it may not be running the task properly when logged out. Has anyone run into this and have advice on setting task scheduler properly for the vb_script? It's a Windows 2008 server being monitored over the internet. Also I have 3 hard drives to monitor on this particular machine and I tried adding 2 checks in the nrds_config manager by copying the 1 for C: and changing it to B: and D:. It doesn't seem to be pulling in anything for B and D. Is there a different way I should have done this? commas separating each drive on the original check for C:? Something like that? I'm not sure what the proper way to do this is. Thanks.
adamh
Posts: 22
Joined: Thu Jun 19, 2014 12:40 pm

Re: nrds stopped working after its first check

Post by adamh »

I uninstalled and reinstalled NRDS_64.exe and it is working now. Not sure what the deal is. Maybe it didn't like something when I was trying to add in checks for other drives. So now on to getting that worked out. Adding drives B: and D:...
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: nrds stopped working after its first check

Post by jolson »

adamh,

Let us know if you have any further NRDS problems!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
adamh
Posts: 22
Joined: Thu Jun 19, 2014 12:40 pm

Re: nrds stopped working after its first check

Post by adamh »

I am having some more problems. It stands to reason that I would copy the diskspace line and add paste it under the check for C: and just change C: to D: or B: to get it to check multiple drives. However every time I make changes after the initial check in the NRDS configuration it stops sending checks. The only thing that seems to get it to work is to completely delete the host out of core configure manager and then uninstall and reinstall NRDS on the client side. So basically starting all over gets the checks to come back after trying to make changes. It seems like a glitch unless I'm missing something.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: nrds stopped working after its first check

Post by tgriep »

Could you go to this folder and post the NRDS_Debug.log file?

Code: Select all

C:\Program Files\Nagios\NRDS_Win\logs
Be sure to check out our Knowledgebase for helpful articles and solutions!
adamh
Posts: 22
Joined: Thu Jun 19, 2014 12:40 pm

Re: nrds stopped working after its first check

Post by adamh »

Okay here's a nice Before and After of the log. You can see the nicely working checks and then it loads the new checks for B: and D: (the config.ini gets updated with new checks, seems good) and then it hangs during the post-routine. Thanks.

BEFORE CHANGES

Code: Select all

7/17/2015 3:31:00 PM ---Starting NRDS Transaction--- : 
7/17/2015 3:31:00 PM Diagnostic mode : False
7/17/2015 3:31:00 PM base NRDP address locked and loaded : http://RedactedPublicIP/nrdp//?token=RedactedToken&cmd=
7/17/2015 3:31:00 PM XML being passed to check for updates : http://RedactedPublicIP/nrdp//?

token=RedactedToken&cmd=updatenrds&XMLDATA=<?xml version='1.0' ?

><configs><config><name>Windowserver</name><version>2.2</version></config></configs>
7/17/2015 3:31:00 PM running Post routine.. : 
7/17/2015 3:31:00 PM ignoring certificate errors : 13056
7/17/2015 3:31:00 PM Post Data.... : 
7/17/2015 3:31:00 PM address..... : http://RedactedPublicIP/nrdp//?token=RedactedToken&cmd=updatenrds&XMLDATA=<?xml 

version='1.0' ?><configs><config><name>Windowserver</name><version>2.2</version></config></configs>
7/17/2015 3:31:00 PM NRDP response to update query : <?xml version="1.0" encoding="utf-8"?>
<result>
  <status>0</status>
  <message>OK</message>
    <meta>
       <output></output>
    </meta>
  <config>
CONFIG_VERSION=2.2
CONFIG_OS=Windows (64-bit)
CONFIG_NAME=Windowserver
URL=http://RedactedPublicIP/nrdp/
TOKEN=RedactedToken
PLUGIN_DIR=C:\Program Files\Nagios\NRDS_Win\plugins
SEND_NRDP=
TMPDIR=
COMMAND_PREFIX=
LOG_FILE=C:\Program Files\Nagios\NRDS_Win\logs\NRDS_Debug.log
IGNORE_SSL_CERTIFICATE_ERRORS=1
UPDATE_CONFIG=1
UPDATE_PLUGINS=1


command[__HOST__] = $PLUGIN_DIR$\check_winping.exe -H 127.0.0.1 --warning 200,40% --critical 400,80%
command[nrpe_winprocess] = $PLUGIN_DIR$\check_winprocess.exe --warning 40 --critical 50
command[nrpe_process] = $PLUGIN_DIR$\cpuload_nrpe_nt.exe 70 90
command[nrpe_diskspace] = $PLUGIN_DIR$\check_pdm.exe --disk --drive C: -w 97.5 -c 99.5
command[nrpe_eventlog] = $PLUGIN_DIR$\eventlog_nrpe_nt.exe -m 7200
command[nrpe_memload] = $PLUGIN_DIR$\check_pdm.exe --memory -w 90 -c 99
command[nrpe_physical_mem] = $PLUGIN_DIR$\check_pdm.exe --memory pagefile -w 80 -c 95
command[nrpe_service] = $PLUGIN_DIR$\service_nrpe_nt.exe "DNS Client"


  </config>
</result>

7/17/2015 3:31:00 PM Config update availability : False
7/17/2015 3:31:00 PM command to be run : C:\PROGRA~1\Nagios\NRDS_Win\plugins\check_winping.exe -H 127.0.0.1 --warning 

200,40% --critical 400,80%
7/17/2015 3:31:00 PM command line executing : cmd /c C:\PROGRA~1\Nagios\NRDS_Win\plugins\check_winping.exe -H 127.0.0.1 

--warning 200,40% --critical 400,80% > %temp%\output.txt
7/17/2015 3:31:04 PM return results from plugin : WINPING+OK+%2D+Round+trip%3A+0+ms%2C+Packet+loss%3A+0%25%2C+packets%3A

+5%7C%27round+trip%27%3D0ms%3B200%3B400%3B+%27packet+loss+rate%27%3D0%25%3B40%3B80%3B+packets%3D5%3B
7/17/2015 3:31:04 PM return code from plugin : 0
7/17/2015 3:31:04 PM command to be run : C:\PROGRA~1\Nagios\NRDS_Win\plugins\check_winprocess.exe --warning 40 --critical 

50
7/17/2015 3:31:04 PM command line executing : cmd /c C:\PROGRA~1\Nagios\NRDS_Win\plugins\check_winprocess.exe --warning 

40 --critical 50 > %temp%\output.txt
7/17/2015 3:31:04 PM return results from plugin : PROCESS+CRITICAL+%2D+71+process%28es%29%7Cprocesses%3D71%3B40%3B50%3B
7/17/2015 3:31:04 PM return code from plugin : 2
7/17/2015 3:31:04 PM command to be run : C:\PROGRA~1\Nagios\NRDS_Win\plugins\cpuload_nrpe_nt.exe 70 90
7/17/2015 3:31:04 PM command line executing : cmd /c C:\PROGRA~1\Nagios\NRDS_Win\plugins\cpuload_nrpe_nt.exe 70 90 > 

%temp%\output.txt
7/17/2015 3:31:07 PM return results from plugin : NOW%3A+Mean%3A0%2E000000%25+Variance%3A+0%2E000000%25+CUMULATIVE%3A

+Mean%3A0%2E000000%25+Variance%3A+0%2E000000%25
7/17/2015 3:31:07 PM return code from plugin : 0
7/17/2015 3:31:07 PM command to be run : C:\PROGRA~1\Nagios\NRDS_Win\plugins\check_pdm.exe --disk --drive C: -w 97.5 -c 

99.5
7/17/2015 3:31:07 PM command line executing : cmd /c C:\PROGRA~1\Nagios\NRDS_Win\plugins\check_pdm.exe --disk --drive C: 

-w 97.5 -c 99.5 > %temp%\output.txt
7/17/2015 3:31:07 PM return results from plugin : DISK+OK+%2D+usage%3A+C%3A+45694%2E8+MB+%2830%2E37%25+of+total

+150454%2E0+MB%29%7C%27disk+in+use%27%3D45694%2E8MB%3B+%27disk+usage%27%3D30%2E37%25%3B97%2E5%3B99%2E5%3B+%27disk+total

%27%3D150454%2E0MB%3B
7/17/2015 3:31:07 PM return code from plugin : 0
7/17/2015 3:31:07 PM command to be run : C:\PROGRA~1\Nagios\NRDS_Win\plugins\eventlog_nrpe_nt.exe -m 7200
7/17/2015 3:31:07 PM command line executing : cmd /c C:\PROGRA~1\Nagios\NRDS_Win\plugins\eventlog_nrpe_nt.exe -m 7200 > 

%temp%\output.txt
7/17/2015 3:31:09 PM return results from plugin : DCOM%2810009%29%3A+Err%3D2+Warn%3D0+Instances%3D2+Backup+Exec

%2833919%29%3A+Err%3D0+Warn%3D1+Instances%3D1+Backup+Exec%2834581%29%3A+Err%3D0+Warn%3D1+Instances%3D1+
7/17/2015 3:31:09 PM return code from plugin : 1
7/17/2015 3:31:09 PM command to be run : C:\PROGRA~1\Nagios\NRDS_Win\plugins\check_pdm.exe --memory -w 90 -c 99
7/17/2015 3:31:09 PM command line executing : cmd /c C:\PROGRA~1\Nagios\NRDS_Win\plugins\check_pdm.exe --memory -w 90 -c 

99 > %temp%\output.txt
7/17/2015 3:31:09 PM return results from plugin : MEMORY+OK+%2D+Physical+usage%3A+3325+MB+%2840%25+of+8180+MB%29%7C

%27memory+in+use%27%3D3325MB%3B+%27memory+usage%27%3D40%25%3B90%3B99%3B+%27memory+total%27%3D8180MB%3B
7/17/2015 3:31:09 PM return code from plugin : 0
7/17/2015 3:31:09 PM command to be run : C:\PROGRA~1\Nagios\NRDS_Win\plugins\check_pdm.exe --memory pagefile -w 80 -c 95
7/17/2015 3:31:09 PM command line executing : cmd /c C:\PROGRA~1\Nagios\NRDS_Win\plugins\check_pdm.exe --memory pagefile 

-w 80 -c 95 > %temp%\output.txt
7/17/2015 3:31:09 PM return results from plugin : MEMORY+OK+%2D+Pagefile+usage%3A+142+MB+%281%25+of+8180+MB%29%7C

%27memory+in+use%27%3D142MB%3B+%27memory+usage%27%3D1%25%3B80%3B95%3B+%27memory+total%27%3D8180MB%3B
7/17/2015 3:31:09 PM return code from plugin : 0
7/17/2015 3:31:09 PM command to be run : C:\PROGRA~1\Nagios\NRDS_Win\plugins\service_nrpe_nt.exe "DNS Client"
7/17/2015 3:31:09 PM command line executing : cmd /c C:\PROGRA~1\Nagios\NRDS_Win\plugins\service_nrpe_nt.exe "DNS Client" 

> %temp%\output.txt
7/17/2015 3:31:09 PM return results from plugin : DNS+Client+OK+
7/17/2015 3:31:09 PM return code from plugin : 0
7/17/2015 3:31:09 PM XML to be posted to NRDP : token=RedactedToken&cmd=submitcheck&XMLDATA=<?xml version='1.0'?

><checkresults><checkresult type='host' checktype='1'><hostname>LI-Backup</hostname><state>0</state><output>WINPING+OK+

%2D+Round+trip%3A+0+ms%2C+Packet+loss%3A+0%25%2C+packets%3A+5%7C%27round+trip%27%3D0ms%3B200%3B400%3B+%27packet+loss

+rate%27%3D0%25%3B40%3B80%3B+packets%3D5%3B</output></checkresult><checkresult type='service' 

checktype='1'><hostname>LI-Backup</hostname><servicename>nrpe_winprocess</servicename><state>2</state><output>PROCESS

+CRITICAL+%2D+71+process%28es%29%7Cprocesses%3D71%3B40%3B50%3B</output></checkresult><checkresult type='service' 

checktype='1'><hostname>LI-Backup</hostname><servicename>nrpe_process</servicename><state>0</state><output>NOW%3A+Mean

%3A0%2E000000%25+Variance%3A+0%2E000000%25+CUMULATIVE%3A+Mean%3A0%2E000000%25+Variance%3A

+0%2E000000%25</output></checkresult><checkresult type='service' checktype='1'><hostname>LI-

Backup</hostname><servicename>nrpe_diskspace</servicename><state>0</state><output>DISK+OK+%2D+usage%3A+C%3A+45694%2E8+MB

+%2830%2E37%25+of+total+150454%2E0+MB%29%7C%27disk+in+use%27%3D45694%2E8MB%3B+%27disk+usage

%27%3D30%2E37%25%3B97%2E5%3B99%2E5%3B+%27disk+total%27%3D150454%2E0MB%3B</output></checkresult><checkresult 

type='service' checktype='1'><hostname>LI-

Backup</hostname><servicename>nrpe_eventlog</servicename><state>1</state><output>DCOM%2810009%29%3A+Err%3D2+Warn

%3D0+Instances%3D2+Backup+Exec%2833919%29%3A+Err%3D0+Warn%3D1+Instances%3D1+Backup+Exec%2834581%29%3A+Err%3D0+Warn

%3D1+Instances%3D1+</output></checkresult><checkresult type='service' checktype='1'><hostname>LI-

Backup</hostname><servicename>nrpe_memload</servicename><state>0</state><output>MEMORY+OK+%2D+Physical+usage%3A+3325+MB+

%2840%25+of+8180+MB%29%7C%27memory+in+use%27%3D3325MB%3B+%27memory+usage%27%3D40%25%3B90%3B99%3B+%27memory+total

%27%3D8180MB%3B</output></checkresult><checkresult type='service' checktype='1'><hostname>LI-

Backup</hostname><servicename>nrpe_physical_mem</servicename><state>0</state><output>MEMORY+OK+%2D+Pagefile+usage%3A

+142+MB+%281%25+of+8180+MB%29%7C%27memory+in+use%27%3D142MB%3B+%27memory+usage%27%3D1%25%3B80%3B95%3B+%27memory+total

%27%3D8180MB%3B</output></checkresult><checkresult type='service' checktype='1'><hostname>LI-

Backup</hostname><servicename>nrpe_service</servicename><state>0</state><output>DNS+Client+OK

+</output></checkresult></checkresults>
7/17/2015 3:31:10 PM running Post routine.. : 
7/17/2015 3:31:10 PM ignoring certificate errors : 13056
7/17/2015 3:31:10 PM Post Data.... : token=RedactedToken&cmd=submitcheck&XMLDATA=<?xml version='1.0'?

><checkresults><checkresult type='host' checktype='1'><hostname>LI-Backup</hostname><state>0</state><output>WINPING+OK+

%2D+Round+trip%3A+0+ms%2C+Packet+loss%3A+0%25%2C+packets%3A+5%7C%27round+trip%27%3D0ms%3B200%3B400%3B+%27packet+loss

+rate%27%3D0%25%3B40%3B80%3B+packets%3D5%3B</output></checkresult><checkresult type='service' 

checktype='1'><hostname>LI-Backup</hostname><servicename>nrpe_winprocess</servicename><state>2</state><output>PROCESS

+CRITICAL+%2D+71+process%28es%29%7Cprocesses%3D71%3B40%3B50%3B</output></checkresult><checkresult type='service' 

checktype='1'><hostname>LI-Backup</hostname><servicename>nrpe_process</servicename><state>0</state><output>NOW%3A+Mean

%3A0%2E000000%25+Variance%3A+0%2E000000%25+CUMULATIVE%3A+Mean%3A0%2E000000%25+Variance%3A

+0%2E000000%25</output></checkresult><checkresult type='service' checktype='1'><hostname>LI-

Backup</hostname><servicename>nrpe_diskspace</servicename><state>0</state><output>DISK+OK+%2D+usage%3A+C%3A+45694%2E8+MB

+%2830%2E37%25+of+total+150454%2E0+MB%29%7C%27disk+in+use%27%3D45694%2E8MB%3B+%27disk+usage

%27%3D30%2E37%25%3B97%2E5%3B99%2E5%3B+%27disk+total%27%3D150454%2E0MB%3B</output></checkresult><checkresult 

type='service' checktype='1'><hostname>LI-

Backup</hostname><servicename>nrpe_eventlog</servicename><state>1</state><output>DCOM%2810009%29%3A+Err%3D2+Warn

%3D0+Instances%3D2+Backup+Exec%2833919%29%3A+Err%3D0+Warn%3D1+Instances%3D1+Backup+Exec%2834581%29%3A+Err%3D0+Warn

%3D1+Instances%3D1+</output></checkresult><checkresult type='service' checktype='1'><hostname>LI-

Backup</hostname><servicename>nrpe_memload</servicename><state>0</state><output>MEMORY+OK+%2D+Physical+usage%3A+3325+MB+

%2840%25+of+8180+MB%29%7C%27memory+in+use%27%3D3325MB%3B+%27memory+usage%27%3D40%25%3B90%3B99%3B+%27memory+total

%27%3D8180MB%3B</output></checkresult><checkresult type='service' checktype='1'><hostname>LI-

Backup</hostname><servicename>nrpe_physical_mem</servicename><state>0</state><output>MEMORY+OK+%2D+Pagefile+usage%3A

+142+MB+%281%25+of+8180+MB%29%7C%27memory+in+use%27%3D142MB%3B+%27memory+usage%27%3D1%25%3B80%3B95%3B+%27memory+total

%27%3D8180MB%3B</output></checkresult><checkresult type='service' checktype='1'><hostname>LI-

Backup</hostname><servicename>nrpe_service</servicename><state>0</state><output>DNS+Client+OK

+</output></checkresult></checkresults>
7/17/2015 3:31:10 PM address..... : http://RedactedPublicIP/nrdp//?token=RedactedToken&cmd=
7/17/2015 3:31:10 PM post response from NRDP : <?xml version="1.0" encoding="utf-8"?>
<result>
  <status>0</status>
  <message>OK</message>
    <meta>
       <output>8 checks processed.</output>
    </meta>
</result>

7/17/2015 3:31:10 PM ---NRDS Transaction Finished--- : 
AFTER CHANGES

Code: Select all

7/17/2015 3:34:00 PM ---Starting NRDS Transaction--- : 
7/17/2015 3:34:00 PM Diagnostic mode : False
7/17/2015 3:34:00 PM base NRDP address locked and loaded : http://RedactedPublicIP/nrdp//?token=RedactedToken&cmd=
7/17/2015 3:34:00 PM XML being passed to check for updates : http://RedactedPublicIP/nrdp//?

token=RedactedToken&cmd=updatenrds&XMLDATA=<?xml version='1.0' ?

><configs><config><name>Windowserver</name><version>2.2</version></config></configs>
7/17/2015 3:34:00 PM running Post routine.. : 
7/17/2015 3:34:00 PM ignoring certificate errors : 13056
7/17/2015 3:34:00 PM Post Data.... : 
7/17/2015 3:34:00 PM address..... : http://RedactedPublicIP/nrdp//?token=RedactedToken&cmd=updatenrds&XMLDATA=<?xml 

version='1.0' ?><configs><config><name>Windowserver</name><version>2.2</version></config></configs>
7/17/2015 3:34:00 PM NRDP response to update query : <?xml version="1.0" encoding="utf-8"?>
<result>
  <status>1</status>
  

<message>Version 2.4 available</message>
    <meta>
       <output></output>
    </meta>
  <config>
CONFIG_VERSION=2.4
CONFIG_OS=Windows (64-bit)
CONFIG_NAME=Windowserver
URL=http://RedactedPublicIP/nrdp/
TOKEN=RedactedToken
PLUGIN_DIR=C:

\Program Files\Nagios\NRDS_Win\plugins
SEND_NRDP=
TMPDIR=
COMMAND_PREFIX=
LOG_FILE=C:\Program Files\Nagios\NRDS_Win\logs

\NRDS_Debug.log
IGNORE_SSL_CERTIFICATE_ERRORS=1
UPDATE_CONFIG=1
UPDATE_PLUGINS=1


command[__HOST__] = $PLUGIN_DIR$

\check_winping.exe -H 127.0.0.1 --warning 200,40% --critical 400,80%
command[nrpe_winprocess] = $PLUGIN_DIR$

\check_winprocess.exe --warning 40 --critical 50
command[nrpe_process] = $PLUGIN_DIR$\cpuload_nrpe_nt.exe 70 90
command

[nrpe_diskspace] = $PLUGIN_DIR$\check_pdm.exe --disk --drive C: -w 97.5 -c 99.5
command[nrpe_diskspace] = $PLUGIN_DIR$

\check_pdm.exe --disk --drive B: -w 97.5 -c 99.5
command[nrpe_diskspace] = $PLUGIN_DIR$\check_pdm.exe --disk --drive D: -w 

97.5 -c 99.5
command[nrpe_eventlog] = $PLUGIN_DIR$\eventlog_nrpe_nt.exe -m 7200
command[nrpe_memload] = $PLUGIN_DIR$

\check_pdm.exe --memory -w 90 -c 99
command[nrpe_physical_mem] = $PLUGIN_DIR$\check_pdm.exe --memory pagefile -w 80 -c 95
command[nrpe_service] = $PLUGIN_DIR$\service_nrpe_nt.exe "DNS Client"


  </config>
</result>

7/17/2015 3:34:00 PM Config update availability : True
7/17/2015 3:34:00 PM downloading new config : http://RedactedPublicIP/nrdp//?

token=RedactedToken&cmd=getconfig&configname=Windowserver&os=Windows&os_ver=6.1.7601&arch=AMD64
7/17/2015 3:34:00 PM downloading new file : http://RedactedPublicIP/nrdp//?

token=RedactedToken&cmd=getconfig&configname=Windowserver&os=Windows&os_ver=6.1.7601&arch=AMD64
7/17/2015 3:34:00 PM running Post routine.. : 
7/17/2015 3:34:00 PM ignoring certificate errors : 13056
7/17/2015 3:34:00 PM Post Data.... : 
7/17/2015 3:34:00 PM address..... : http://RedactedPublicIP/nrdp//?

token=RedactedToken&cmd=getconfig&configname=Windowserver&os=Windows&os_ver=6.1.7601&arch=AMD64
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: nrds stopped working after its first check

Post by ssax »

Can you post the working and non-working config so that we can see the differences?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: nrds stopped working after its first check

Post by tgriep »

I recreated your issue and this is what I found to get it to work.
I think the scheduler doesn't like the duplicate service name for the nrpe_diskspace command so when I added the D drive, I added it like below giving it a different service name. "nrpe_diskspaceD"

Code: Select all

command[nrpe_diskspaceD] = $PLUGIN_DIR$\check_pdm.exe --disk --drive D: -w 97.5 -c 99.5
The windows system ran the schedule and sent the check to the XI system.
I then I had to go in to XI under Admin > Unconfigured Objects and import the new drive.

Try this out and let us know if this works for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
adamh
Posts: 22
Joined: Thu Jun 19, 2014 12:40 pm

Re: nrds stopped working after its first check

Post by adamh »

I had thought of that too. I had tried that early on in troubleshooting. I'll try it again, though, for good measure. Thanks.

The config has commands for D: and B:, but they are under the same header (nrpe_diskspace) just 3 total lines.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: nrds stopped working after its first check

Post by tgriep »

Keep us in the loop.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked