Bandwidth on passive host

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.
Jam1987
Posts: 54
Joined: Mon Jul 27, 2015 2:06 pm

Re: Bandwidth on passive host

Post 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!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Bandwidth on passive host

Post 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..?
Former Nagios Employee.
me.
Jam1987
Posts: 54
Joined: Mon Jul 27, 2015 2:06 pm

Re: Bandwidth on passive host

Post 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!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Bandwidth on passive host

Post 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-)
Former Nagios Employee.
me.
Jam1987
Posts: 54
Joined: Mon Jul 27, 2015 2:06 pm

Re: Bandwidth on passive host

Post 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.
Jam1987
Posts: 54
Joined: Mon Jul 27, 2015 2:06 pm

Re: Bandwidth on passive host

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Bandwidth on passive host

Post 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
Former Nagios Employee.
me.
Jam1987
Posts: 54
Joined: Mon Jul 27, 2015 2:06 pm

Re: Bandwidth on passive host

Post 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
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Bandwidth on passive host

Post 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.
Former Nagios Employee.
me.
Jam1987
Posts: 54
Joined: Mon Jul 27, 2015 2:06 pm

Re: Bandwidth on passive host

Post 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.
Locked