NRDS_win and Unconfigured objects

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: NRDS_win and Unconfigured objects

Post by yancy »

juana,

Delete the hostname name in Config.ini

For example, change:
HOSTNAME=win.host.edu

to:
HOSTNAME=


The hostname is acutally in the file host.ini on the client and needs to match if it's defined. The other option would be to change the name in host.ini to match win.host.edu

Regards,

-Yancy
juana
Posts: 44
Joined: Thu Nov 01, 2012 4:53 pm
Location: Monterey, CA

Re: NRDS_win and Unconfigured objects

Post by juana »

Hi Yancy!

Those logs were for 11/09 when NRDS_win was first installed on the host. The latest logs look the same as the ones dated 11/14.

Thank you,

Juana
juana
Posts: 44
Joined: Thu Nov 01, 2012 4:53 pm
Location: Monterey, CA

Re: NRDS_win and Unconfigured objects

Post by juana »

Hi Yancy,

The hostname was removed from config.ini then ran task scheduler. In Unconfigured objects, the host appeared with one service. However, that service (Drive C: Disk Usage) is not part of the NRDS configuration created for that host and its Status Information is "No check results for service yet...". So, none of the host metrics are being reported to XI nor do they appear in Unconfigured objects.

Thank you,

Juana
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRDS_win and Unconfigured objects

Post by scottwilkerson »

Sorry for the confusion but I believe yancy mean't to tell you to remove the hostname from the NRDS config manager.

In the NRDS config manager there is a field labeled host name that actually wasn't supposed to be implemented yet.

On the server you should still have the actual name in the host.ini
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: NRDS_win and Unconfigured objects

Post by scottwilkerson »

Sorry for the confusion but I believe yancy meant to tell you to remove the hostname from the NRDS config manager.

In the NRDS config manager there is a field labeled host name that actually wasn't supposed to be implemented yet.

On the server you should still have the actual name in the host.ini
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: NRDS_win and Unconfigured objects

Post by yancy »

Hi juana,

Yes Scott is correct. The hostname should be changed removed from the config manager or the host would just be overwritten with a new config.

Also, I just posted a new version that has some bug fixes, an uninstaller, silent installer and improved logging.

http://exchange.nagios.org/directory/Ad ... in/details

Regards,

-Yancy
juana
Posts: 44
Joined: Thu Nov 01, 2012 4:53 pm
Location: Monterey, CA

Re: NRDS_win and Unconfigured objects

Post by juana »

Hi,

I removed the hostname at the UI NRDS Config Manager -> Edit NRDS Config (for the corresponding host) level, applied and saved changes, but still no changes to Unconfigured objects. I then ssh to XI and removed the 'HOSTNAME=' line from the corresponding config file in /usr/local/nrdp/configs/, but still no changes with Unconfigured objects. Of course, for each of these changes, I ensured to remote into Windows server and force run task scheduler.

I will now remove the configuration file from NRDS Config Manager, remote into Windows server and remove NRDS_win and redo all considering Yancy just posted a new NRDS_win version that addresses some bugs. I will report back my findings.

Thank you!

-Juana
juana
Posts: 44
Joined: Thu Nov 01, 2012 4:53 pm
Location: Monterey, CA

Re: NRDS_win and Unconfigured objects

Post by juana »

Hello,

Same behavior as before (host appears in Unconfigured objects with one service that does not correspond to one I configured) even after I created new NRDS configuration and clean installed client. I even removed the 'HOSTNAME=' line from the corresponding config file in /usr/local/nrdp/configs/.

Regards,

Juana
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: NRDS_win and Unconfigured objects

Post by yancy »

juana,

1) from the NRDS config manager, make sure the Hostname field is empty. Don't remove the 'HOSTNAME=' from the config, just leave it empty.

2) What is the full path NRDS_win is installed to on the client? is that the same path as configured in the NRDS config manger?

PLUGIN_DIR=C:\Program Files\Nagios\NRDS_Win\plugins

make sure it's not installed to "program files(x86)"

3) Can you post the new log from NRDS_Win


Thanks!

-Yancy
juana
Posts: 44
Joined: Thu Nov 01, 2012 4:53 pm
Location: Monterey, CA

Re: NRDS_win and Unconfigured objects

Post by juana »

Yancy,

Apologies for the slight delay.

1. Okay, ensured the 'HOSTNAME=' exists within config file under /usr/local/nrdp/configs/
2. Full NRDS_win install on client is C:\Program Files\Nagios\NRDS_Win and it patches the PLUGIN_DIR value in NRDS config manager for desired host (C:\Program Files\Nagios\NRDS_Win\plugins)

It is NOT installed in the "Program Files(x86)" as it does not exist.

3. Below are the latest logs

Code: Select all

11/20/2012 4:32:00 PM base NRDP address locked and loaded : https://nagios.nps.edu/nrdp//?token=xxxxxxxxxxxxxxxxxxxxxxxxxx&cmd=
11/20/2012 4:32:00 PM XML being passed to check for updates : https://nagios.nps.edu/nrdp//?token=xxxxxxxxxxxxxxxxxxxxxxxxxx&cmd=updatenrds&XMLDATA=<?xml version='1.0' ?><configs><config><name>win.host.edu</name><version>0.2</version></config></configs>
11/20/2012 4:32: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=0.2
CONFIG_OS=Windows (32-bit)
CONFIG_NAME=win.host.edu
URL=https://nagios.nps.edu/nrdp/
TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxx
HOSTNAME=
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
UPDATE_CONFIG=1
UPDATE_PLUGINS=1


command[__HOST__] = $PLUGIN_DIR$\check_winping.exe -H localhost --warning 200,40% --critical 400.0,80%
command[ProcessCount] = $PLUGIN_DIR$\check_winprocess.exe --warning 40 --critical 50
command[CPULoad] = $PLUGIN_DIR$\cpuload_nrpe_nt.exe 70 90
command[DiskSpaceC] = $PLUGIN_DIR$\diskspace_nrpe_nt.exe c: 85 90
command[DiskSpaceD] = $PLUGIN_DIR$\diskspace_nrpe_nt.exe d: 85 90
command[EventLog] = $PLUGIN_DIR$\eventlog_nrpe_nt.exe -m 7200
command[MemoryLoad] = $PLUGIN_DIR$\memload_nrpe_nt.exe 70 90


  </config>
</result>

11/20/2012 4:32:00 PM Config update availability : False
11/20/2012 4:35:00 PM base NRDP address locked and loaded : https://nagios.nps.edu/nrdp//?token=xxxxxxxxxxxxxxxxxxxxxxxxxx&cmd=
11/20/2012 4:35:00 PM XML being passed to check for updates : https://nagios.nps.edu/nrdp//?token=xxxxxxxxxxxxxxxxxxxxxxxxxx&cmd=updatenrds&XMLDATA=<?xml version='1.0' ?><configs><config><name>win.host.edu</name><version>0.2</version></config></configs>
11/20/2012 4:35: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=0.2
CONFIG_OS=Windows (32-bit)
CONFIG_NAME=win.host.edu
URL=https://nagios.nps.edu/nrdp/
TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxx
HOSTNAME=
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
UPDATE_CONFIG=1
UPDATE_PLUGINS=1


command[__HOST__] = $PLUGIN_DIR$\check_winping.exe -H localhost --warning 200,40% --critical 400.0,80%
command[ProcessCount] = $PLUGIN_DIR$\check_winprocess.exe --warning 40 --critical 50
command[CPULoad] = $PLUGIN_DIR$\cpuload_nrpe_nt.exe 70 90
command[DiskSpaceC] = $PLUGIN_DIR$\diskspace_nrpe_nt.exe c: 85 90
command[DiskSpaceD] = $PLUGIN_DIR$\diskspace_nrpe_nt.exe d: 85 90
command[EventLog] = $PLUGIN_DIR$\eventlog_nrpe_nt.exe -m 7200
command[MemoryLoad] = $PLUGIN_DIR$\memload_nrpe_nt.exe 70 90


  </config>
</result>

11/20/2012 4:35:00 PM Config update availability : False
11/20/2012 4:38:00 PM base NRDP address locked and loaded : https://nagios.nps.edu/nrdp//?token=xxxxxxxxxxxxxxxxxxxxxxxxxx&cmd=
11/20/2012 4:38:00 PM XML being passed to check for updates : https://nagios.nps.edu/nrdp//?token=xxxxxxxxxxxxxxxxxxxxxxxxxx&cmd=updatenrds&XMLDATA=<?xml version='1.0' ?><configs><config><name>win.host.edu</name><version>0.2</version></config></configs>
11/20/2012 4:38: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=0.2
CONFIG_OS=Windows (32-bit)
CONFIG_NAME=win.host.edu
URL=https://nagios.nps.edu/nrdp/
TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxx
HOSTNAME=
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
UPDATE_CONFIG=1
UPDATE_PLUGINS=1


command[__HOST__] = $PLUGIN_DIR$\check_winping.exe -H localhost --warning 200,40% --critical 400.0,80%
command[ProcessCount] = $PLUGIN_DIR$\check_winprocess.exe --warning 40 --critical 50
command[CPULoad] = $PLUGIN_DIR$\cpuload_nrpe_nt.exe 70 90
command[DiskSpaceC] = $PLUGIN_DIR$\diskspace_nrpe_nt.exe c: 85 90
command[DiskSpaceD] = $PLUGIN_DIR$\diskspace_nrpe_nt.exe d: 85 90
command[EventLog] = $PLUGIN_DIR$\eventlog_nrpe_nt.exe -m 7200
command[MemoryLoad] = $PLUGIN_DIR$\memload_nrpe_nt.exe 70 90


  </config>
</result>

11/20/2012 4:38:00 PM Config update availability : False
Locked