Error: Service check command...not defined anywhere!

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

Re: Error: Service check command...not defined anywhere!

Post by hsmith »

al_orange wrote:
hsmith wrote:What is the output of ls /usr/local/nagios/libexec/?

Code: Select all

[root@nagios ~]# ls /usr/local/nagios/libexec
check_nrpe  eventhandlers
Is this on the client? I'd like to see it from the client.
Former Nagios Employee.
me.
al_orange
Posts: 55
Joined: Mon Nov 23, 2015 7:27 pm

Re: Error: Service check command...not defined anywhere!

Post by al_orange »

hsmith wrote: Is this on the client? I'd like to see it from the client.
Here is from the client:

Code: Select all

[root@ora_linux7_xen2 etc]# ls /usr/local/nagios/libexec/
check_apt       check_http          check_mrtgtraf  check_ping     check_tcp
check_breeze    check_icmp          check_nagios    check_pop      check_time
check_by_ssh    check_ide_smart     check_nntp      check_procs    check_udp
check_clamd     check_ifoperstatus  check_nntps     check_real     check_ups
check_cluster   check_ifstatus      check_nrpe      check_rpc      check_uptime
check_dhcp      check_imap          check_nt        check_sensors  check_users
check_disk      check_ircd          check_ntp       check_simap    check_wave
check_disk_smb  check_jabber        check_ntp_peer  check_smtp     negate
check_dummy     check_load          check_ntp_time  check_spop     urlize
check_file_age  check_log           check_nwstat    check_ssh      utils.pm
check_flexlm    check_mailq         check_oracle    check_ssmtp    utils.sh
check_ftp       check_mrtg          check_overcr    check_swap
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Error: Service check command...not defined anywhere!

Post by hsmith »

What happens if you run ./check_nrpe -H <IP> -c check_users ?
Former Nagios Employee.
me.
al_orange
Posts: 55
Joined: Mon Nov 23, 2015 7:27 pm

Re: Error: Service check command...not defined anywhere!

Post by al_orange »

hsmith wrote:What happens if you run ./check_nrpe -H <IP> -c check_users ?

Code: Select all

[root@ora_linux7_xen2 etc]# ./check_nrpe -H 172.17.40.152 -c check_users
-bash: ./check_nrpe: No such file or directory
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Error: Service check command...not defined anywhere!

Post by rkennedy »

al_orange wrote:
hsmith wrote:What happens if you run ./check_nrpe -H <IP> -c check_users ?

Code: Select all

[root@ora_linux7_xen2 etc]# ./check_nrpe -H 172.17.40.152 -c check_users
-bash: ./check_nrpe: No such file or directory
Looks like you're in the wrong directory, can you run this?

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 172.17.40.152 -c check_users
Former Nagios Employee
al_orange
Posts: 55
Joined: Mon Nov 23, 2015 7:27 pm

Re: Error: Service check command...not defined anywhere!

Post by al_orange »

Code: Select all

[root@ora_linux7_xen2 etc]# /usr/local/nagios/libexec/check_nrpe -H 172.17.40.152 -c check_users
CHECK_NRPE: Error - Could not complete SSL handshake.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Error: Service check command...not defined anywhere!

Post by rkennedy »

You actually need to run that command on the Nagios server. 172.17.40.152 is the IP for ora_linux7_xen2 right?
Former Nagios Employee
al_orange
Posts: 55
Joined: Mon Nov 23, 2015 7:27 pm

Re: Error: Service check command...not defined anywhere!

Post by al_orange »

rkennedy wrote:You actually need to run that command on the Nagios server. 172.17.40.152 is the IP for ora_linux7_xen2 right?
Yes, that's correct. Okay, here is the output from the server:

Code: Select all

[root@nagios etc]# /usr/local/nagios/libexec/check_nrpe -H 172.17.40.152 -c check_users
USERS OK - 2 users currently logged in |users=2;5;10;0
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Error: Service check command...not defined anywhere!

Post by rkennedy »

This appears to be working. Is it also working when you look at your Nagios server on the web interface?
Former Nagios Employee
al_orange
Posts: 55
Joined: Mon Nov 23, 2015 7:27 pm

Re: Error: Service check command...not defined anywhere!

Post by al_orange »

rkennedy wrote:This appears to be working. Is it also working when you look at your Nagios server on the web interface?
Yes, it is working. The only errors I am getting are as follows:
Attachments
test1.png
Locked