NRDS Unconfigured object assistance

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
QS1
Posts: 195
Joined: Tue Sep 21, 2010 3:30 pm

NRDS Unconfigured object assistance

Post by QS1 »

Nagiosxi version = 2012R1.7
Centos 5.6 32 bit OS
Virtual Machine
-------------------------------------------
I'm trying to connect a Windows Host via NRDS and can't seem to figure out why im not seeing it in Unconfigured Objects.

I've tried NRDP (https://mynagiosserveraddress/nrdp/) with token only and do see the default "some host" & "some service" being created within Unconfigured Objects..so I am guessing it's a configuration issue within my NRDS_Win setup?

I installed NRDS_WINR3-64.exe

My currrent Config.ini is:
[settings]
CONFIG_VERSION=0
CONFIG_NAME=ASP_Troubleshoot
CONFIG_OS=Windows (64-bit)
URL=https://XXX.XXX.192.59/nrdp/
TOKEN=1234567890
PLUGIN_DIR=C:\Program Files\Nagios\NRDS_Win\plugins
UPDATE_CONFIG=0
UPDATE_PLUGINS=0
LOG_FILE=C:\Program Files\Nagios\NRDS_Win\logs\NRDS_debug.log

[services]
nrpe_memload = .\plugins\memload_nrpe_nt.exe c: 90 99


My current Host.ini is:
[settings]
HOSTNAME=localhost
CONFIG=config.ini

Looking at the logs..I don't see anything obvious for error:

4/18/2013 8:42:59 AM XML to be posted to NRDP : token=1234567890&cmd=submitcheck&XMLDATA=<?xml version='1.0'?><checkresults><checkresult type='service' checktype='1'><hostname>LATITUDEE6400</hostname><servicename>nrpe_memload</servicename><state>3</state><output>NRPE%5FNT+Plugin%2C+MEMORY+Load%2C+GX+Networks%2C+Stephen+Strudwick%0D%0Ausage%3A+memload+warning+threshold%28%25%29+critical+threshold%28%25%29%0D%0Aexample%3A+70+90%0D%0A</output></checkresult></checkresults>
4/18/2013 8:43:01 AM ---Starting NRDS Transaction--- :
4/18/2013 8:43:01 AM base NRDP address locked and loaded : https://XXX.XXX.192.59/nrdp//?token=1234567890&cmd=
4/18/2013 8:43:01 AM command to be run : .\plugins\memload_nrpe_nt.exe c: 90 99
4/18/2013 8:43:01 AM command line executing : cmd /c .\plugins\memload_nrpe_nt.exe c: 90 99 > %temp%\output.txt
4/18/2013 8:43:01 AM check results pre-encoded : NRPE_NT Plugin, MEMORY Load, GX Networks, Stephen Strudwick
usage: memload warning threshold(%) critical threshold(%)
example: 70 90

4/18/2013 8:43:01 AM check results post encoded. This will be sent to Nagios : NRPE%5FNT+Plugin%2C+MEMORY+Load%2C+GX+Networks%2C+Stephen+Strudwick%0D%0Ausage%3A+memload+warning+threshold%28%25%29+critical+threshold%28%25%29%0D%0Aexample%3A+70+90%0D%0A
4/18/2013 8:43:01 AM return code from plugin : 3

I've restarted Nagios after giving it time (10 minutes or so) to appear in the Unconfigured Objects area..but no luck

Any help is greatly appreciated!
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: NRDS Unconfigured object assistance

Post by yancy »

QS1,

Change your service definition to:

Code: Select all

 nrpe_memload = .\plugins\memload_nrpe_nt.exe 90 99 
additionally, using cmd try running the command from the cmd line to make sure the plugin syntax is correct

Code: Select all

 cd <your plugins dir>
memload_nrpe_nt.exe 90 99
also, for a list of sample plugins with definitions included, check here:
http://assets.nagios.com/downloads/nrdp ... lugins.zip


Thanks,

-Yancy
QS1
Posts: 195
Joined: Tue Sep 21, 2010 3:30 pm

Re: NRDS Unconfigured object assistance

Post by QS1 »

Right..however im still not seeing the Host or Service show up as unconfigured objects on nagiosxi..

The service command was made correct:

4/18/2013 11:22:04 AM check results post encoded. This will be sent to Nagios : Mem%3A+1272+MB+%2831%25%29+%2F+4083+MB+%2868%25%29+Paged+Mem%3A+803+MB+%2819%25%29+%2F+4095+MB+%2880%25%29%0D%0A
4/18/2013 11:22:04 AM return code from plugin : 0
4/18/2013 11:22:04 AM XML to be posted to NRDP : token=1234567890&cmd=submitcheck&XMLDATA=<?xml version='1.0'?><checkresults><checkresult type='service' checktype='1'><hostname>LATITUDEE6400</hostname><servicename>nrpe_memload</servicename><state>0</state><output>Mem%3A+1272+MB+%2831%25%29+%2F+4083+MB+%2868%25%29+Paged+Mem%3A+803+MB+%2819%25%29+%2F+4095+MB+%2880%25%29%0D%0A</output></checkresult></checkresults>
4/18/2013 11:55:10 AM ---Starting NRDS Transaction--- :
4/18/2013 11:55:10 AM base NRDP address locked and loaded : https://xxx.xxx.192.59/nrdp//?token=1234567890&cmd=
4/18/2013 11:55:10 AM command to be run : .\plugins\memload_nrpe_nt.exe 90 99
4/18/2013 11:55:10 AM command line executing : cmd /c .\plugins\memload_nrpe_nt.exe 90 99 > %temp%\output.txt
4/18/2013 11:55:10 AM check results pre-encoded : Mem: 1375 MB (33%) / 4083 MB (66%) Paged Mem: 829 MB (20%) / 4095 MB (79%)

4/18/2013 11:55:10 AM check results post encoded. This will be sent to Nagios : Mem%3A+1375+MB+%2833%25%29+%2F+4083+MB+%2866%25%29+Paged+Mem%3A+829+MB+%2820%25%29+%2F+4095+MB+%2879%25%29%0D%0A
4/18/2013 11:55:10 AM return code from plugin : 0
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: NRDS Unconfigured object assistance

Post by yancy »

service definition should look like this:

Code: Select all

 command[nrpe_memload] = $PLUGIN_DIR$\memload_nrpe_nt.exe 90 99 
also I would recomend using the plugins found here and using the config.ini as a sample. These plugins will also return perf data which memload_nrpe_nt will not.
http://assets.nagios.com/downloads/nrdp ... lugins.zip


Hope that helps,

-Yancy
QS1
Posts: 195
Joined: Tue Sep 21, 2010 3:30 pm

Re: NRDS Unconfigured object assistance

Post by QS1 »

Thank you Yancy..the service commands did help. The Config template in XI now mirrors the service command from the Windows host. For now I've turned off updates because when I try with 1 i don't see check information being passed.I've included an attachment for more information as to how the current setup is
You do not have the required permissions to view the files attached to this post.
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: NRDS Unconfigured object assistance

Post by yancy »

QS1,

Check to make sure the plugin exists on your nagios server.

All plugins to be deployed to your clients should reside here:

Code: Select all

"/usr/local/nrdp/plugins/Windows"
Also, you don't have a HOST check defined.
/usr/local/nrdp/plugins/Windows

for example,

Code: Select all

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

Thanks,

-Yancy
QS1
Posts: 195
Joined: Tue Sep 21, 2010 3:30 pm

Re: NRDS Unconfigured object assistance

Post by QS1 »

The Host check is now represented correctly on the Windows machine as well as in the NRDS config template. Still dont see this coming through as an unconfigured object in XI..is there an error log anywhere in the server i can refer to?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: NRDS Unconfigured object assistance

Post by mguthrie »

Lets try clearing the old unconfigured objects cache and see if that takes care of the issue.

Code: Select all

rm -f /usr/local/nagiosxi/var/corelog.*
QS1
Posts: 195
Joined: Tue Sep 21, 2010 3:30 pm

Re: NRDS Unconfigured object assistance

Post by QS1 »

running this command places old host and service checks used for NSCA back into the unconfigured objects area. The Windows NRDS check in question does not appear
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: NRDS Unconfigured object assistance

Post by yancy »

QS1,

Can you verify you're using the latest version of NRDS config manager (1.2).

http://your ip/nagiosxi/admin/ > Manage Components

Look for version number of NRDS Config Manager.

If you're running something older than 1.2, Uninstall and reinstall to the latest component.


Thanks,

-Yancy
Locked