Page 4 of 5

Re: Bandwidth on passive host

Posted: Wed Aug 26, 2015 3:04 pm
by Jam1987
Well I tried calling a command from yee old libexec folder and get the same command not found message. This is a pickle!

Re: Bandwidth on passive host

Posted: Wed Aug 26, 2015 3:08 pm
by hsmith
Jam1987 wrote:Well I tried calling a command from yee old libexec folder and get the same command not found message. This is a pickle!
./check_nrpe while in libexec? That's where the plugin is isn't it..?

Re: Bandwidth on passive host

Posted: Thu Aug 27, 2015 9:41 am
by Jam1987
Yeppers it is

Code: Select all

root@storage:/usr/local/nagios/libexec# ls
check_apt      check_dhcp      check_dummy     check_http          check_imap   check_mrtg      check_nt        check_oracle  check_real     check_ssh   check_ups     urlize
check_breeze   check_dig       check_file_age  check_icmp          check_ircd   check_mrtgtraf  check_ntp       check_overcr  check_rpc      check_swap  check_uptime  utils.pm
check_by_ssh   check_disk      check_flexlm    check_ide_smart     check_load   check_nagios    check_ntp_peer  check_ping    check_sensors  check_tcp   check_users   utils.sh
check_clamd    check_disk_smb  check_ftp       check_ifoperstatus  check_log    check_nntp      check_ntp_time  check_pop     check_smtp     check_time  check_wave
check_cluster  check_dns       check_hpjd      check_ifstatus      check_mailq  [b][i][u]check_nrpe[/u][/i][/b]      check_nwstat    check_procs   check_snmp     check_udp   negate
root@storage:/usr/local/nagios/libexec# check_nrpe
check_nrpe: command not found
What a pickle!

Re: Bandwidth on passive host

Posted: Thu Aug 27, 2015 9:48 am
by hsmith
You have to use ./ to call it, you can't just use the binary name. Full path or ./ if you are in the directory.

Next time can you use ls -l, it just makes it a lot more human readable. Thanks! 8-)

Re: Bandwidth on passive host

Posted: Thu Aug 27, 2015 10:11 am
by Jam1987
hsmith wrote:You have to use ./ to call it, you can't just use the binary name. Full path or ./ if you are in the directory.

Next time can you use ls -l, it just makes it a lot more human readable. Thanks! 8-)
But one of you guys on here is listed as Skynet! I do not want to incur the wrath of our soon to be overlords lol.

Re: Bandwidth on passive host

Posted: Thu Aug 27, 2015 10:16 am
by Jam1987
I just ran it and woop got a different response now:

CHECK_NRPE: Error - Could not complete SSL handshake.

Got to check yee old security on Nagios and NSClient++ side.

Re: Bandwidth on passive host

Posted: Thu Aug 27, 2015 10:19 am
by hsmith
Jam1987 wrote:I just ran it and woop got a different response now:

CHECK_NRPE: Error - Could not complete SSL handshake.

Got to check yee old security on Nagios and NSClient++ side.
Ohhhhh boy. This is always fun.

Let's start with the basics.

Code: Select all

./check_nrpe -H 127.0.0.1

Re: Bandwidth on passive host

Posted: Thu Aug 27, 2015 10:22 am
by Jam1987
Oh great, I'm glad I can provide some fun times! :mrgreen:

Code: Select all

 ./check_nrpe -H 127.0.0.1
NRPE v2.15

Re: Bandwidth on passive host

Posted: Thu Aug 27, 2015 10:28 am
by hsmith
Jam1987 wrote:Oh great, I'm glad I can provide some fun times! :mrgreen:

Code: Select all

 ./check_nrpe -H 127.0.0.1
NRPE v2.15
Well, this is at least a good sign. We're executing this from the server, right? If so, that part is good. We need to look at the nrpe configuration in the remote host that you're getting the SSL error when trying to check to see if the nagios server is under the allowed hosts portion.

Re: Bandwidth on passive host

Posted: Thu Aug 27, 2015 10:31 am
by Jam1987
Yes that was executed on the server running Nagios, I will check out the NSClient++ file on the Windows PC and let you know.