Plugins Helps

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Plugins Helps

Post by Box293 »

Can you please upload the nsclient.ini file from the XP machine.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: Plugins Helps

Post by kwhogster »

OK

I attached the nsiclient.ini
Attachments
nsiclientXP.txt
NSICLient INI from XP 32 bit
(13.98 KiB) Downloaded 289 times
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Plugins Helps

Post by rkennedy »

kwhogster wrote:Box293

Great catch on the service name that worked making the changes now.


The NSCLIENT version of 32 bit is

NSCP-0.4.3.143

I ran this on all machines

Type cd "\Program Files\NSClient++\" and press Enter
?Type nscp settings --activate-module NRPEServer --add-defaults and press Enter

nscp settings --activate-module NRPEServer --add-defaults

?This may prompt you for permission
?Type nscp settings --path /settings/NRPE/server --key "allow arguments" --set true and press Enter

nscp settings --path /settings/NRPE/server --key "allow arguments" --set true

?This may prompt you for permission
?Type nscp settings --path /settings/NRPE/server --key "allow nasty characters" --set true and press Enter

nscp settings --path /settings/NRPE/server --key "allow nasty characters" --set true

?This may prompt you for permission

?IF this is NSClient++ 0.4.3 onwards

?Type nscp settings --path /settings/NRPE/server --key insecure --set true and press Enter

nscp settings --path /settings/NRPE/server --key insecure --set true

?This may prompt you for permission

net stop nscp

net start nscp

All 64 bit clients are NSCP 0.4.1.73


I ran this on the 32 bit computers

?IF this is NSClient++ 0.4.3 onwards

?Type nscp settings --path /settings/NRPE/server --key insecure --set true and press Enter

nscp settings --path /settings/NRPE/server --key insecure --set true


Thoughts
NSClient++ can be finicky through the CLI, but it looks like your allow arguments, insecure mode, and allow nasty characters are all true now. What issue are you currently experiencing?
Former Nagios Employee
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: Plugins Helps

Post by kwhogster »

My original post was this

After adding on my computers to this all worked except for two of them both of them are 32 bit computers one is Windows XP Pro the other is Windows 2003 Server

Get this error CHECK_NRPE: Error - Could not complete SSL handshake.


Does NRPE work with 32 bit computers?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Plugins Helps

Post by tgriep »

I haven't used the 32 bit version of the client but is should work.

I do see a few changes to the nsclient.ini file that should work for you.
Edit that file and under this section

Code: Select all

[/settings/NRPE/server]
Remove these 2 lines

Code: Select all

verify mode = peer-cert
use ssl = true
Save the file and restart the NSClient++ service and see if that fixes it for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: Plugins Helps

Post by kwhogster »

Removed these
verify mode = peer-cert
use ssl = true

Now I get this

root@TGCS017:/usr/lib/nagios/plugins# ./check_nrpe -H 10.2.8.75 -t 30 -c CheckDriveSize -a ShowAll=long MinWarn =20% MinCrit=10% Drive=C: perf-unit=G
CHECK_NRPE: Invalid packet type received from server.
Attachments
nsiclientXP2.txt
NSCLIENT INI for XP 32 bit after changes
(13.98 KiB) Downloaded 332 times
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Plugins Helps

Post by tgriep »

Try changing this from

Code: Select all

ssl options = no-sslv2,no-sslv3
to

Code: Select all

ssl options =
Save and restart like before.

If you get an error, can you upload the nsclient.log file from that windows host?
Be sure to check out our Knowledgebase for helpful articles and solutions!
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: Plugins Helps

Post by kwhogster »

same error

root@tgcs017:/usr/lib/nagios/plugins# ./check_nrpe -H 10.2.8.75 -t 30 -c CheckDriveSize -a ShowAll=long MinWarn =20% MinCrit=10% Drive=C: perf-unit=G
CHECK_NRPE: Invalid packet type received from server.
Attachments
nsiclientXP3.txt
nsclient ini xp 32 bit computer after changes
(14 KiB) Downloaded 348 times
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Plugins Helps

Post by Box293 »

Can you stop the NSClient++ service
Open a command prompt
type:

Code: Select all

cd "\Program Files\NSClient++\"
nscp test
What output is produced?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
kwhogster
Posts: 644
Joined: Wed Oct 14, 2015 6:51 pm
Location: Wood Ridge NJ USA
Contact:

Re: Plugins Helps

Post by kwhogster »

boz293

ran net stop nscp

nscp test >>c:\nscp.txt

See attached
Attachments
nscp.txt
nscp output
(3.88 KiB) Downloaded 350 times
Locked