http 80/tcp # World Wide Web HTTP
http 80/udp # World Wide Web HTTP
www 80/tcp # World Wide Web HTTP
www 80/udp # World Wide Web HTTP
www-http 80/tcp # World Wide Web HTTP
www-http 80/udp # World Wide Web HTTP
Also, I noticed that I don't have the /usr/local/nrdp/plugins folder on this machine. I do have the /usr/local/nrdp/clients folder though.
jbennett wrote:Also, I noticed that I don't have the /usr/local/nrdp/plugins folder on this machine. I do have the /usr/local/nrdp/clients folder though.
this is normal, the plugins are placed in /usr/local/nagios/libexec
jbennett wrote:Also, I noticed that I don't have the /usr/local/nrdp/plugins folder on this machine. I do have the /usr/local/nrdp/clients folder though.
this is normal, the plugins are placed in /usr/local/nagios/libexec
testlane2:/usr/local/nagios/etc # /usr/local/nrdp/clients/nrds/nrds.pl -H testlane2
ERROR: STDIN must be either 3 or 4 fields long, I found 2
/usr/local/nrdp/clients/send_nrdp.sh: line 221: xml+=<checkresult type='host' checktype='1'>
<hostname>testlane2</hostname>
<state>Check Users</state>
<output>0</output>: No such file or directory
/usr/local/nrdp/clients/send_nrdp.sh: line 224: xml+=</checkresult>: No such file or directory
/usr/local/nrdp/clients/send_nrdp.sh: line 221: xml+=<checkresult type='host' checktype='1'>
<hostname>testlane2</hostname>
<state>Check Load</state>
<output>0</output>: No such file or directory
/usr/local/nrdp/clients/send_nrdp.sh: line 224: xml+=</checkresult>: No such file or directory
/usr/local/nrdp/clients/send_nrdp.sh: line 221: xml+=<checkresult type='host' checktype='1'>
<hostname>testlane2</hostname>
<state>Check Disk</state>
<output>0</output>: No such file or directory
/usr/local/nrdp/clients/send_nrdp.sh: line 224: xml+=</checkresult>: No such file or directory
/usr/local/nrdp/clients/send_nrdp.sh: line 221: xml+=<checkresult type='host' checktype='1'>
<hostname>testlane2</hostname>
<state>Check Zombie Procs</state>
<output>0</output>: No such file or directory
/usr/local/nrdp/clients/send_nrdp.sh: line 224: xml+=</checkresult>: No such file or directory
/usr/local/nrdp/clients/send_nrdp.sh: line 221: xml+=<checkresult type='host' checktype='1'>
<hostname>testlane2</hostname>
<state>Check Total Procs</state>
<output>0</output>: No such file or directory
/usr/local/nrdp/clients/send_nrdp.sh: line 224: xml+=</checkresult>: No such file or directory
ERROR: The NRDP Server said BAD XML
When I go to the libexec folder, I see that the plug-ins being called are in nagios:nagios instead of all of the others which are root:root. I imagine this is correct?
testlane2:/usr/local/nrdp/clients # /usr/local/nrdp/clients/nrds/nrds.pl -H testlane2
ERROR: STDIN must be either 3 or 4 fields long, I found 2
/usr/local/nrdp/clients/send_nrdp.sh: line 221: xml+=<checkresult type='host' checktype='1'>
<hostname>testlane2</hostname>
<state>Check Users</state>
<output>0</output>: No such file or directory
/usr/local/nrdp/clients/send_nrdp.sh: line 224: xml+=</checkresult>: No such file or directory
/usr/local/nrdp/clients/send_nrdp.sh: line 221: xml+=<checkresult type='host' checktype='1'>
<hostname>testlane2</hostname>
<state>Check Load</state>
<output>0</output>: No such file or directory
/usr/local/nrdp/clients/send_nrdp.sh: line 224: xml+=</checkresult>: No such file or directory
/usr/local/nrdp/clients/send_nrdp.sh: line 221: xml+=<checkresult type='host' checktype='1'>
<hostname>testlane2</hostname>
<state>Check Disk</state>
<output>0</output>: No such file or directory
/usr/local/nrdp/clients/send_nrdp.sh: line 224: xml+=</checkresult>: No such file or directory
/usr/local/nrdp/clients/send_nrdp.sh: line 221: xml+=<checkresult type='host' checktype='1'>
<hostname>testlane2</hostname>
<state>Check Zombie Procs</state>
<output>0</output>: No such file or directory
/usr/local/nrdp/clients/send_nrdp.sh: line 224: xml+=</checkresult>: No such file or directory
/usr/local/nrdp/clients/send_nrdp.sh: line 221: xml+=<checkresult type='host' checktype='1'>
<hostname>testlane2</hostname>
<state>Check Total Procs</state>
<output>0</output>: No such file or directory
/usr/local/nrdp/clients/send_nrdp.sh: line 224: xml+=</checkresult>: No such file or directory
ERROR: The NRDP Server said BAD XML
Also, just to be sure the file I uploaded was different, I diffed them and see the change made.
jbennett wrote:Also, just to be sure the file I uploaded was different, I diffed them and see the change made.
You did overwrite the current file right? because the output you are showing makes me believe that /usr/local/nrdp/clients/send_nrdp.sh is still the old file...
testlane2:/usr/local/nrdp/clients # /usr/local/nrdp/clients/nrds/nrds.pl -H testlane2
ERROR: STDIN must be either 3 or 4 fields long, I found 2
Sent 5 checks to http://xxx.xxx.xxx.xxx/nrdp/
When I check Nagios though, I don't see any unconfigured objects. When I search for the hostname used in the command, I don't find the information I'm expecting. I only show a single service and it's an SSH check that's been configured to run from the Nagios box for some time now.
YES! I had changed this initially when looking at the config file, but that would have been overwritten when I finally installed it correctly instead of how I was doing it. I've changed this now. Do I need to restart the NRDP server somehow?
ERROR: STDIN must be either 3 or 4 fields long, I found 2
which leads me to believe one of the commands is not quite right
I have only used the standard checks that are provided when you go to create a config initially since I wanted to just test this out first. These are the commands that you are referencing, correct?