New Perl plugins not pulled down by NRDS_Win

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
chris_merris
Posts: 7
Joined: Tue Nov 13, 2012 6:35 pm

New Perl plugins not pulled down by NRDS_Win

Post by chris_merris »

I'm currently testing the passive monitoring capabilities of NRDS for a Healthcare IT company with systems deployed on-site all across the country (100's of hosts and services). Since most all of these hosts are not on our network, the passive "phone-home" capability of NRDS has really gotten us excited. Almost all of our remote servers are Windows boxes, so NRDS_Win is the obvious choice.

I've already been able to successfully install the NRDS_Win Agent on a test Windows box. The box showed up, along with the default services under "Unconfigured Objects" in Nagios XI, and I was able to successfully configure them.

I'm trying to expand these default services and write some tests to monitor some application components on the Windows box.

In order to test this out quickly - Perl is an obvious choice, so I installed ActivePerl on the Windows box. I wrote a plugin script, which I was able to execute successfully from a command prompt on the Windows box.

Here are the steps I tried in order to get the plugin to auto-deploy from the Nagios XI server to my Windows box:
1) I copied the Perl script to the Nagios XI server in "/usr/local/nrdp/plugins/Generic". I also changed the owner/group to nagios.nagios
2) Then, in "NRDS Config Manager", I added the test to the existing config used by the Windows box via an extra line (following the convention of the previous/default tests) - here's what my commands section text box of the Edit page looked like:

command[__HOST__] = $PLUGIN_DIR$\check_winping.exe -H localhost --warning 200,40% --critical 400.0,80%
command[SYS_NUM_PROCESSES] = $PLUGIN_DIR$\check_winprocess.exe --warning 40 --critical 50
command[SYS_CPU_LOAD] = $PLUGIN_DIR$\cpuload_nrpe_nt.exe 70 90
command[SYS_DISKSPACE] = $PLUGIN_DIR$\diskspace_nrpe_nt.exe c: 77 90
command[SYS_EVENT_LOG] = $PLUGIN_DIR$\eventlog_nrpe_nt.exe -m 7200
command[SYS_MEMLOAD] = $PLUGIN_DIR$\memload_nrpe_nt.exe 70 99
command[SYS_DNS_CLIENT] = $PLUGIN_DIR$\service_nrpe_nt.exe "DNS Client"
command[PERL_SCRIPT] = $PLUGIN_DIR$\perl_script.pl 100 500

3) After saving the config, I waited for the passive checks on this host to refresh in the "Service Detail" page, but none of the existing checks ever refreshed. I waited about 15 or 20 minutes just to be safe, since my recheck interval on the remote host is set to 5 minutes. The new test did not show up under "Unconfigured Objects" either. I think something about my new configuration must be causing some sort of error, but I don't see any errors in "C:\Program Files\Nagios\NRDS_Win\logs\NRDS_Debug.log" - just that the 7 tests were successfully submitted:

<result>
<status>0</status>
<message>OK</message>
<meta>
<output>7 checks processed.</output>
</meta>
</result>

Even though there should now be 8 checks.

4) I checked the Windows Host - and found that "C:\Program files\Nagios\NRDS_Win\config.ini" had been updated with my new perl script line. However, my perl script was not copied down to "C:\Program Files\Nagios\NRDS_Win\plugins"

5) I removed my perl script line from the config and re-saved it. After a few minutes, the host once again showed recent information in the "Service Detail" page.

I repeated the above steps multiple times and tried multiple different file paths for the PERL_SCRIPT plugin - including copying perl_script.pl to the /usr/local/nrdp/plugins/Windows directory, and changing the NRDS config line to the location on the central server, i.e.
command[PERL_SCRIPT] = /usr/local/nrdp/plugins/Generic/perl_script.pl 100 500
and
command[PERL_SCRIPT] = /usr/local/nrdp/plugins/Windows/perl_script.pl 100 500


Am I doing something obviously wrong here? Or is there some documentation that clear this up for me? I'm thinking there's something extra I need to do in order to add script as a plugin to the central server. Seemed like most of the plugin installation features in XI revolve around active plugins.

Having the plugins deploy automatically from the central server is very important for our business needs. Thanks in advance.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: New Perl plugins not pulled down by NRDS_Win

Post by scottwilkerson »

The correct command would have likely been

Code: Select all

$PLUGIN_DIR$\perl_script.pl 100 500
Can you verify the permissions on this file

Code: Select all

ls -l /usr/local/nrdp/plugins/Windows/perl_script.pl
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
chris_merris
Posts: 7
Joined: Tue Nov 13, 2012 6:35 pm

Re: New Perl plugins not pulled down by NRDS_Win

Post by chris_merris »

Here's the output of the ls -l command:

Code: Select all

[root@nagiosxi Generic]# ls -l perl_script.pl
-rwxr-xr-x 1 nagios nagios 951 Nov 13 13:09 perl_script.pl
(It's currently in
"/usr/local/nrdp/plugins/Generic" at the moment, but I can move it back to the Windows one if needed)
chris_merris
Posts: 7
Joined: Tue Nov 13, 2012 6:35 pm

Re: New Perl plugins not pulled down by NRDS_Win

Post by chris_merris »

Did a little more testing - I simplified my perl script to be extremely simple (i.e a print statement followed by an exit(0)) - and also granted all permissions on it. Tried placing it in both the Generic and Windows plugin folders as well. Same result as before.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: New Perl plugins not pulled down by NRDS_Win

Post by scottwilkerson »

A couple questions, if you look at the following file on the remote machine
C:\Program Files\Nagios\NRDS_Win\config.ini

Are these item set?

Code: Select all

UPDATE_CONFIG=1
UPDATE_PLUGINS=1
Also, does the CONFIG_VERSION match the one in the web UI?

Also, is there any notices in the log file on the remote machine?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
chris_merris
Posts: 7
Joined: Tue Nov 13, 2012 6:35 pm

Re: New Perl plugins not pulled down by NRDS_Win

Post by chris_merris »

Here's my NRDS Config.ini file on the remote host - I verified that the version is the same as in Nagios XI:

Code: Select all

[settings]
CONFIG_VERSION=2.4
CONFIG_OS=Windows (64-bit)
CONFIG_NAME=TDOC
URL=http://10.10.240.165/nrdp/
TOKEN=4c2rbj36cnb2
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


[services]
command[__HOST__] = $PLUGIN_DIR$\check_winping.exe -H localhost --warning 200,40% --critical 400.0,80%
command[SYS_NUM_PROCESSES] = $PLUGIN_DIR$\check_winprocess.exe --warning 40 --critical 50
command[SYS_CPU_LOAD] = $PLUGIN_DIR$\cpuload_nrpe_nt.exe 70 90
command[SYS_DISKSPACE] = $PLUGIN_DIR$\diskspace_nrpe_nt.exe c: 77 90
command[SYS_EVENT_LOG] = $PLUGIN_DIR$\eventlog_nrpe_nt.exe -m 7200
command[SYS_MEMLOAD] = $PLUGIN_DIR$\memload_nrpe_nt.exe 70 99
command[SYS_DNS_CLIENT] = $PLUGIN_DIR$\service_nrpe_nt.exe "DNS Client"
command[PERL_SCRIPT] = $PLUGIN_DIR$\perl_script.pl



Here's the most recent log file:

Code: Select all

11/14/2012 4:33:00 PM command to be run : C:\PROGRA~1\Nagios\NRDS_Win\plugins\check_winping.exe -H localhost --warning 200,40% --critical 400.0,80%
11/14/2012 4:33:00 PM command line executing : cmd /c C:\PROGRA~1\Nagios\NRDS_Win\plugins\check_winping.exe -H localhost --warning 200,40% --critical 400.0,80% > %temp%\output.txt
11/14/2012 4:33:06 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%2E0%3B+%27packet+loss+rate%27%3D0%25%3B40%3B80%3B+packets%3D5%3B
11/14/2012 4:33:06 PM return code from plugin : 0
11/14/2012 4:33:06 PM command to be run : C:\PROGRA~1\Nagios\NRDS_Win\plugins\check_winprocess.exe --warning 40 --critical 50
11/14/2012 4:33:06 PM command line executing : cmd /c C:\PROGRA~1\Nagios\NRDS_Win\plugins\check_winprocess.exe --warning 40 --critical 50 > %temp%\output.txt
11/14/2012 4:33:08 PM return results from plugin : PROCESS+CRITICAL+%2D+66+process%28es%29%7Cprocesses%3D66%3B40%3B50%3B
11/14/2012 4:33:08 PM return code from plugin : 2
11/14/2012 4:33:08 PM command to be run : C:\PROGRA~1\Nagios\NRDS_Win\plugins\cpuload_nrpe_nt.exe 70 90
11/14/2012 4:33:08 PM command line executing : cmd /c C:\PROGRA~1\Nagios\NRDS_Win\plugins\cpuload_nrpe_nt.exe 70 90 > %temp%\output.txt
11/14/2012 4:33:10 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%0D%0A
11/14/2012 4:33:10 PM return code from plugin : 0
11/14/2012 4:33:10 PM command to be run : C:\PROGRA~1\Nagios\NRDS_Win\plugins\diskspace_nrpe_nt.exe c: 77 90
11/14/2012 4:33:10 PM command line executing : cmd /c C:\PROGRA~1\Nagios\NRDS_Win\plugins\diskspace_nrpe_nt.exe c: 77 90 > %temp%\output.txt
11/14/2012 4:33:10 PM return results from plugin : Used%3A+18299+MB+%2871%25%29+Free%3A+7198+MB+%2828%25%29%0D%0A
11/14/2012 4:33:10 PM return code from plugin : 0
11/14/2012 4:33:10 PM command to be run : C:\PROGRA~1\Nagios\NRDS_Win\plugins\eventlog_nrpe_nt.exe -m 7200
11/14/2012 4:33:10 PM command line executing : cmd /c C:\PROGRA~1\Nagios\NRDS_Win\plugins\eventlog_nrpe_nt.exe -m 7200 > %temp%\output.txt
11/14/2012 4:33:10 PM return results from plugin : Service+Control+Manager%287024%29%3A+Err%3D1+Warn%3D0+Instances%3D1+vmdebug%283%29%3A+Err%3D0+Warn%3D3+Instances%3D3+
11/14/2012 4:33:10 PM return code from plugin : 1
11/14/2012 4:33:10 PM command to be run : C:\PROGRA~1\Nagios\NRDS_Win\plugins\memload_nrpe_nt.exe 70 99
11/14/2012 4:33:10 PM command line executing : cmd /c C:\PROGRA~1\Nagios\NRDS_Win\plugins\memload_nrpe_nt.exe 70 99 > %temp%\output.txt
11/14/2012 4:33:10 PM return results from plugin : Mem%3A+2320+MB+%2890%25%29+%2F+2559+MB+%289%25%29+Paged+Mem%3A+2183+MB+%2853%25%29+%2F+4095+MB+%2846%25%29%0D%0A
11/14/2012 4:33:10 PM return code from plugin : 1
11/14/2012 4:33:10 PM command to be run : C:\PROGRA~1\Nagios\NRDS_Win\plugins\service_nrpe_nt.exe "DNS Client"
11/14/2012 4:33:10 PM command line executing : cmd /c C:\PROGRA~1\Nagios\NRDS_Win\plugins\service_nrpe_nt.exe "DNS Client" > %temp%\output.txt
11/14/2012 4:33:10 PM return results from plugin : DNS+Client+OK+
11/14/2012 4:33:10 PM return code from plugin : 0
11/14/2012 4:33:10 PM XML to be posted to NRDP : token=4c2rbj36cnb2&cmd=submitcheck&XMLDATA=<?xml version='1.0'?><checkresults><checkresult type='host' checktype='1'><hostname>CM450</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%2E0%3B+%27packet+loss+rate%27%3D0%25%3B40%3B80%3B+packets%3D5%3B</output></checkresult><checkresult type='service' checktype='1'><hostname>CM450</hostname><servicename>SYS_NUM_PROCESSES</servicename><state>2</state><output>PROCESS+CRITICAL+%2D+66+process%28es%29%7Cprocesses%3D66%3B40%3B50%3B</output></checkresult><checkresult type='service' checktype='1'><hostname>CM450</hostname><servicename>SYS_CPU_LOAD</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%0D%0A</output></checkresult><checkresult type='service' checktype='1'><hostname>CM450</hostname><servicename>SYS_DISKSPACE</servicename><state>0</state><output>Used%3A+18299+MB+%2871%25%29+Free%3A+7198+MB+%2828%25%29%0D%0A</output></checkresult><checkresult type='service' checktype='1'><hostname>CM450</hostname><servicename>SYS_EVENT_LOG</servicename><state>1</state><output>Service+Control+Manager%287024%29%3A+Err%3D1+Warn%3D0+Instances%3D1+vmdebug%283%29%3A+Err%3D0+Warn%3D3+Instances%3D3+</output></checkresult><checkresult type='service' checktype='1'><hostname>CM450</hostname><servicename>SYS_MEMLOAD</servicename><state>1</state><output>Mem%3A+2320+MB+%2890%25%29+%2F+2559+MB+%289%25%29+Paged+Mem%3A+2183+MB+%2853%25%29+%2F+4095+MB+%2846%25%29%0D%0A</output></checkresult><checkresult type='service' checktype='1'><hostname>CM450</hostname><servicename>SYS_DNS_CLIENT</servicename><state>0</state><output>DNS+Client+OK+</output></checkresult></checkresults>
11/14/2012 4:33:11 PM post response from NRDP : <?xml version="1.0" encoding="utf-8"?>
<result>
  <status>0</status>
  <message>OK</message>
    <meta>
       <output>7 checks processed.</output>
    </meta>
</result>

11/14/2012 4:38:01 PM base NRDP address locked and loaded : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=
11/14/2012 4:38:01 PM XML being passed to check for updates : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=updatenrds&XMLDATA=<?xml version='1.0' ?><configs><config><name>TDOC</name><version>2.3</version></config></configs>
11/14/2012 4:38:01 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=TDOC
URL=http://10.10.240.165/nrdp/
TOKEN=4c2rbj36cnb2
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[SYS_NUM_PROCESSES] = $PLUGIN_DIR$\check_winprocess.exe --warning 40 --critical 50
command[SYS_CPU_LOAD] = $PLUGIN_DIR$\cpuload_nrpe_nt.exe 70 90
command[SYS_DISKSPACE] = $PLUGIN_DIR$\diskspace_nrpe_nt.exe c: 77 90
command[SYS_EVENT_LOG] = $PLUGIN_DIR$\eventlog_nrpe_nt.exe -m 7200
command[SYS_MEMLOAD] = $PLUGIN_DIR$\memload_nrpe_nt.exe 70 99
command[SYS_DNS_CLIENT] = $PLUGIN_DIR$\service_nrpe_nt.exe "DNS Client"
command[PERL_SCRIPT] = $PLUGIN_DIR$\perl_script.pl


  </config>
</result>

11/14/2012 4:38:01 PM Config update availability : True
11/14/2012 4:38:01 PM downloading new config : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=getconfig&configname=TDOC&os=Windows&os_ver=6.1.7601&arch=AMD64
11/14/2012 4:38:01 PM downloading new file : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=getconfig&configname=TDOC&os=Windows&os_ver=6.1.7601&arch=AMD64
11/14/2012 4:43:00 PM base NRDP address locked and loaded : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=
11/14/2012 4:43:00 PM XML being passed to check for updates : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=updatenrds&XMLDATA=<?xml version='1.0' ?><configs><config><name>TDOC</name><version>2.4</version></config></configs>
11/14/2012 4:43: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.4
CONFIG_OS=Windows (64-bit)
CONFIG_NAME=TDOC
URL=http://10.10.240.165/nrdp/
TOKEN=4c2rbj36cnb2
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[SYS_NUM_PROCESSES] = $PLUGIN_DIR$\check_winprocess.exe --warning 40 --critical 50
command[SYS_CPU_LOAD] = $PLUGIN_DIR$\cpuload_nrpe_nt.exe 70 90
command[SYS_DISKSPACE] = $PLUGIN_DIR$\diskspace_nrpe_nt.exe c: 77 90
command[SYS_EVENT_LOG] = $PLUGIN_DIR$\eventlog_nrpe_nt.exe -m 7200
command[SYS_MEMLOAD] = $PLUGIN_DIR$\memload_nrpe_nt.exe 70 99
command[SYS_DNS_CLIENT] = $PLUGIN_DIR$\service_nrpe_nt.exe "DNS Client"
command[PERL_SCRIPT] = $PLUGIN_DIR$\perl_script.pl


  </config>
</result>

11/14/2012 4:43:00 PM Config update availability : False
11/14/2012 4:48:01 PM base NRDP address locked and loaded : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=
11/14/2012 4:48:01 PM XML being passed to check for updates : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=updatenrds&XMLDATA=<?xml version='1.0' ?><configs><config><name>TDOC</name><version>2.4</version></config></configs>
11/14/2012 4:48:01 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.4
CONFIG_OS=Windows (64-bit)
CONFIG_NAME=TDOC
URL=http://10.10.240.165/nrdp/
TOKEN=4c2rbj36cnb2
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[SYS_NUM_PROCESSES] = $PLUGIN_DIR$\check_winprocess.exe --warning 40 --critical 50
command[SYS_CPU_LOAD] = $PLUGIN_DIR$\cpuload_nrpe_nt.exe 70 90
command[SYS_DISKSPACE] = $PLUGIN_DIR$\diskspace_nrpe_nt.exe c: 77 90
command[SYS_EVENT_LOG] = $PLUGIN_DIR$\eventlog_nrpe_nt.exe -m 7200
command[SYS_MEMLOAD] = $PLUGIN_DIR$\memload_nrpe_nt.exe 70 99
command[SYS_DNS_CLIENT] = $PLUGIN_DIR$\service_nrpe_nt.exe "DNS Client"
command[PERL_SCRIPT] = $PLUGIN_DIR$\perl_script.pl


  </config>
</result>

11/14/2012 4:48:01 PM Config update availability : False
11/14/2012 4:53:00 PM base NRDP address locked and loaded : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=
11/14/2012 4:53:00 PM XML being passed to check for updates : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=updatenrds&XMLDATA=<?xml version='1.0' ?><configs><config><name>TDOC</name><version>2.4</version></config></configs>
11/14/2012 4:53: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.4
CONFIG_OS=Windows (64-bit)
CONFIG_NAME=TDOC
URL=http://10.10.240.165/nrdp/
TOKEN=4c2rbj36cnb2
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[SYS_NUM_PROCESSES] = $PLUGIN_DIR$\check_winprocess.exe --warning 40 --critical 50
command[SYS_CPU_LOAD] = $PLUGIN_DIR$\cpuload_nrpe_nt.exe 70 90
command[SYS_DISKSPACE] = $PLUGIN_DIR$\diskspace_nrpe_nt.exe c: 77 90
command[SYS_EVENT_LOG] = $PLUGIN_DIR$\eventlog_nrpe_nt.exe -m 7200
command[SYS_MEMLOAD] = $PLUGIN_DIR$\memload_nrpe_nt.exe 70 99
command[SYS_DNS_CLIENT] = $PLUGIN_DIR$\service_nrpe_nt.exe "DNS Client"
command[PERL_SCRIPT] = $PLUGIN_DIR$\perl_script.pl


  </config>
</result>

11/14/2012 4:53:00 PM Config update availability : False
11/14/2012 4:58:00 PM base NRDP address locked and loaded : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=
11/14/2012 4:58:00 PM XML being passed to check for updates : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=updatenrds&XMLDATA=<?xml version='1.0' ?><configs><config><name>TDOC</name><version>2.4</version></config></configs>
11/14/2012 4:58: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.4
CONFIG_OS=Windows (64-bit)
CONFIG_NAME=TDOC
URL=http://10.10.240.165/nrdp/
TOKEN=4c2rbj36cnb2
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[SYS_NUM_PROCESSES] = $PLUGIN_DIR$\check_winprocess.exe --warning 40 --critical 50
command[SYS_CPU_LOAD] = $PLUGIN_DIR$\cpuload_nrpe_nt.exe 70 90
command[SYS_DISKSPACE] = $PLUGIN_DIR$\diskspace_nrpe_nt.exe c: 77 90
command[SYS_EVENT_LOG] = $PLUGIN_DIR$\eventlog_nrpe_nt.exe -m 7200
command[SYS_MEMLOAD] = $PLUGIN_DIR$\memload_nrpe_nt.exe 70 99
command[SYS_DNS_CLIENT] = $PLUGIN_DIR$\service_nrpe_nt.exe "DNS Client"
command[PERL_SCRIPT] = $PLUGIN_DIR$\perl_script.pl


  </config>
</result>

11/14/2012 4:58:00 PM Config update availability : False
11/14/2012 5:03:00 PM base NRDP address locked and loaded : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=
11/14/2012 5:03:00 PM XML being passed to check for updates : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=updatenrds&XMLDATA=<?xml version='1.0' ?><configs><config><name>TDOC</name><version>2.4</version></config></configs>
11/14/2012 5:03: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.4
CONFIG_OS=Windows (64-bit)
CONFIG_NAME=TDOC
URL=http://10.10.240.165/nrdp/
TOKEN=4c2rbj36cnb2
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[SYS_NUM_PROCESSES] = $PLUGIN_DIR$\check_winprocess.exe --warning 40 --critical 50
command[SYS_CPU_LOAD] = $PLUGIN_DIR$\cpuload_nrpe_nt.exe 70 90
command[SYS_DISKSPACE] = $PLUGIN_DIR$\diskspace_nrpe_nt.exe c: 77 90
command[SYS_EVENT_LOG] = $PLUGIN_DIR$\eventlog_nrpe_nt.exe -m 7200
command[SYS_MEMLOAD] = $PLUGIN_DIR$\memload_nrpe_nt.exe 70 99
command[SYS_DNS_CLIENT] = $PLUGIN_DIR$\service_nrpe_nt.exe "DNS Client"
command[PERL_SCRIPT] = $PLUGIN_DIR$\perl_script.pl


  </config>
</result>

11/14/2012 5:03:00 PM Config update availability : False
11/14/2012 5:08:00 PM base NRDP address locked and loaded : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=
11/14/2012 5:08:00 PM XML being passed to check for updates : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=updatenrds&XMLDATA=<?xml version='1.0' ?><configs><config><name>TDOC</name><version>2.4</version></config></configs>
11/14/2012 5:08: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.4
CONFIG_OS=Windows (64-bit)
CONFIG_NAME=TDOC
URL=http://10.10.240.165/nrdp/
TOKEN=4c2rbj36cnb2
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[SYS_NUM_PROCESSES] = $PLUGIN_DIR$\check_winprocess.exe --warning 40 --critical 50
command[SYS_CPU_LOAD] = $PLUGIN_DIR$\cpuload_nrpe_nt.exe 70 90
command[SYS_DISKSPACE] = $PLUGIN_DIR$\diskspace_nrpe_nt.exe c: 77 90
command[SYS_EVENT_LOG] = $PLUGIN_DIR$\eventlog_nrpe_nt.exe -m 7200
command[SYS_MEMLOAD] = $PLUGIN_DIR$\memload_nrpe_nt.exe 70 99
command[SYS_DNS_CLIENT] = $PLUGIN_DIR$\service_nrpe_nt.exe "DNS Client"
command[PERL_SCRIPT] = $PLUGIN_DIR$\perl_script.pl


  </config>
</result>

11/14/2012 5:08:00 PM Config update availability : False
11/14/2012 5:13:00 PM base NRDP address locked and loaded : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=
11/14/2012 5:13:00 PM XML being passed to check for updates : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=updatenrds&XMLDATA=<?xml version='1.0' ?><configs><config><name>TDOC</name><version>2.4</version></config></configs>
11/14/2012 5:13: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.4
CONFIG_OS=Windows (64-bit)
CONFIG_NAME=TDOC
URL=http://10.10.240.165/nrdp/
TOKEN=4c2rbj36cnb2
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[SYS_NUM_PROCESSES] = $PLUGIN_DIR$\check_winprocess.exe --warning 40 --critical 50
command[SYS_CPU_LOAD] = $PLUGIN_DIR$\cpuload_nrpe_nt.exe 70 90
command[SYS_DISKSPACE] = $PLUGIN_DIR$\diskspace_nrpe_nt.exe c: 77 90
command[SYS_EVENT_LOG] = $PLUGIN_DIR$\eventlog_nrpe_nt.exe -m 7200
command[SYS_MEMLOAD] = $PLUGIN_DIR$\memload_nrpe_nt.exe 70 99
command[SYS_DNS_CLIENT] = $PLUGIN_DIR$\service_nrpe_nt.exe "DNS Client"
command[PERL_SCRIPT] = $PLUGIN_DIR$\perl_script.pl


  </config>
</result>

11/14/2012 5:13:00 PM Config update availability : False
11/14/2012 5:18:00 PM base NRDP address locked and loaded : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=
11/14/2012 5:18:00 PM XML being passed to check for updates : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=updatenrds&XMLDATA=<?xml version='1.0' ?><configs><config><name>TDOC</name><version>2.4</version></config></configs>
11/14/2012 5:18: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.4
CONFIG_OS=Windows (64-bit)
CONFIG_NAME=TDOC
URL=http://10.10.240.165/nrdp/
TOKEN=4c2rbj36cnb2
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[SYS_NUM_PROCESSES] = $PLUGIN_DIR$\check_winprocess.exe --warning 40 --critical 50
command[SYS_CPU_LOAD] = $PLUGIN_DIR$\cpuload_nrpe_nt.exe 70 90
command[SYS_DISKSPACE] = $PLUGIN_DIR$\diskspace_nrpe_nt.exe c: 77 90
command[SYS_EVENT_LOG] = $PLUGIN_DIR$\eventlog_nrpe_nt.exe -m 7200
command[SYS_MEMLOAD] = $PLUGIN_DIR$\memload_nrpe_nt.exe 70 99
command[SYS_DNS_CLIENT] = $PLUGIN_DIR$\service_nrpe_nt.exe "DNS Client"
command[PERL_SCRIPT] = $PLUGIN_DIR$\perl_script.pl


  </config>
</result>

11/14/2012 5:18:00 PM Config update availability : False
11/14/2012 5:23:00 PM base NRDP address locked and loaded : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=
11/14/2012 5:23:00 PM XML being passed to check for updates : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=updatenrds&XMLDATA=<?xml version='1.0' ?><configs><config><name>TDOC</name><version>2.4</version></config></configs>
11/14/2012 5:23: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.4
CONFIG_OS=Windows (64-bit)
CONFIG_NAME=TDOC
URL=http://10.10.240.165/nrdp/
TOKEN=4c2rbj36cnb2
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[SYS_NUM_PROCESSES] = $PLUGIN_DIR$\check_winprocess.exe --warning 40 --critical 50
command[SYS_CPU_LOAD] = $PLUGIN_DIR$\cpuload_nrpe_nt.exe 70 90
command[SYS_DISKSPACE] = $PLUGIN_DIR$\diskspace_nrpe_nt.exe c: 77 90
command[SYS_EVENT_LOG] = $PLUGIN_DIR$\eventlog_nrpe_nt.exe -m 7200
command[SYS_MEMLOAD] = $PLUGIN_DIR$\memload_nrpe_nt.exe 70 99
command[SYS_DNS_CLIENT] = $PLUGIN_DIR$\service_nrpe_nt.exe "DNS Client"
command[PERL_SCRIPT] = $PLUGIN_DIR$\perl_script.pl


  </config>
</result>

11/14/2012 5:23:00 PM Config update availability : False
11/14/2012 5:28:00 PM base NRDP address locked and loaded : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=
11/14/2012 5:28:00 PM XML being passed to check for updates : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=updatenrds&XMLDATA=<?xml version='1.0' ?><configs><config><name>TDOC</name><version>2.4</version></config></configs>
11/14/2012 5:28: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.4
CONFIG_OS=Windows (64-bit)
CONFIG_NAME=TDOC
URL=http://10.10.240.165/nrdp/
TOKEN=4c2rbj36cnb2
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[SYS_NUM_PROCESSES] = $PLUGIN_DIR$\check_winprocess.exe --warning 40 --critical 50
command[SYS_CPU_LOAD] = $PLUGIN_DIR$\cpuload_nrpe_nt.exe 70 90
command[SYS_DISKSPACE] = $PLUGIN_DIR$\diskspace_nrpe_nt.exe c: 77 90
command[SYS_EVENT_LOG] = $PLUGIN_DIR$\eventlog_nrpe_nt.exe -m 7200
command[SYS_MEMLOAD] = $PLUGIN_DIR$\memload_nrpe_nt.exe 70 99
command[SYS_DNS_CLIENT] = $PLUGIN_DIR$\service_nrpe_nt.exe "DNS Client"
command[PERL_SCRIPT] = $PLUGIN_DIR$\perl_script.pl


  </config>
</result>

11/14/2012 5:28:00 PM Config update availability : False
11/14/2012 5:33:00 PM base NRDP address locked and loaded : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=
11/14/2012 5:33:00 PM XML being passed to check for updates : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=updatenrds&XMLDATA=<?xml version='1.0' ?><configs><config><name>TDOC</name><version>2.4</version></config></configs>
11/14/2012 5:33: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.4
CONFIG_OS=Windows (64-bit)
CONFIG_NAME=TDOC
URL=http://10.10.240.165/nrdp/
TOKEN=4c2rbj36cnb2
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[SYS_NUM_PROCESSES] = $PLUGIN_DIR$\check_winprocess.exe --warning 40 --critical 50
command[SYS_CPU_LOAD] = $PLUGIN_DIR$\cpuload_nrpe_nt.exe 70 90
command[SYS_DISKSPACE] = $PLUGIN_DIR$\diskspace_nrpe_nt.exe c: 77 90
command[SYS_EVENT_LOG] = $PLUGIN_DIR$\eventlog_nrpe_nt.exe -m 7200
command[SYS_MEMLOAD] = $PLUGIN_DIR$\memload_nrpe_nt.exe 70 99
command[SYS_DNS_CLIENT] = $PLUGIN_DIR$\service_nrpe_nt.exe "DNS Client"
command[PERL_SCRIPT] = $PLUGIN_DIR$\perl_script.pl


  </config>
</result>

11/14/2012 5:33:00 PM Config update availability : False
11/14/2012 5:38:00 PM base NRDP address locked and loaded : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=
11/14/2012 5:38:00 PM XML being passed to check for updates : http://10.10.240.165/nrdp//?token=4c2rbj36cnb2&cmd=updatenrds&XMLDATA=<?xml version='1.0' ?><configs><config><name>TDOC</name><version>2.4</version></config></configs>
11/14/2012 5: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=2.4
CONFIG_OS=Windows (64-bit)
CONFIG_NAME=TDOC
URL=http://10.10.240.165/nrdp/
TOKEN=4c2rbj36cnb2
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[SYS_NUM_PROCESSES] = $PLUGIN_DIR$\check_winprocess.exe --warning 40 --critical 50
command[SYS_CPU_LOAD] = $PLUGIN_DIR$\cpuload_nrpe_nt.exe 70 90
command[SYS_DISKSPACE] = $PLUGIN_DIR$\diskspace_nrpe_nt.exe c: 77 90
command[SYS_EVENT_LOG] = $PLUGIN_DIR$\eventlog_nrpe_nt.exe -m 7200
command[SYS_MEMLOAD] = $PLUGIN_DIR$\memload_nrpe_nt.exe 70 99
command[SYS_DNS_CLIENT] = $PLUGIN_DIR$\service_nrpe_nt.exe "DNS Client"
command[PERL_SCRIPT] = $PLUGIN_DIR$\perl_script.pl


  </config>
</result>

11/14/2012 5:38:00 PM Config update availability : False

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

Re: New Perl plugins not pulled down by NRDS_Win

Post by scottwilkerson »

does the plugin directory on the windows server have perl_script.pl in it?

If so, on your system you may need to make the command something like

Code: Select all

command[PERL_SCRIPT] = perl.exe $PLUGIN_DIR$\perl_script.pl
Which also, I have to ask.

Do you have perl installed on the windows system? And have it in the path?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
chris_merris
Posts: 7
Joined: Tue Nov 13, 2012 6:35 pm

Re: New Perl plugins not pulled down by NRDS_Win

Post by chris_merris »

The plugin directory on the Windows box does not include perl_script.pl in it, but the Config.ini file does have the new test, now modified with

Code: Select all

command[PERL_SCRIPT] = perl.exe $PLUGIN_DIR$\perl_script.pl
It's kind of weird I don't see anything in the debug log about detecting a new plugin or attempting to download it.

I also verified that Perl is installed on the system, and is on the path. I'm able to run perl and perl.exe from the command line as well (including running perl_script.pl)
chris_merris
Posts: 7
Joined: Tue Nov 13, 2012 6:35 pm

Re: New Perl plugins not pulled down by NRDS_Win

Post by chris_merris »

I'm going to upgrade XI to the current version and then re-try this scenario.

Thanks
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: New Perl plugins not pulled down by NRDS_Win

Post by slansing »

Sounds good let us know what happens.
Locked