Page 6 of 8
Re: Error: Service check command...not defined anywhere!
Posted: Thu Dec 17, 2015 4:21 pm
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.
Re: Error: Service check command...not defined anywhere!
Posted: Thu Dec 17, 2015 4:24 pm
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
Re: Error: Service check command...not defined anywhere!
Posted: Fri Dec 18, 2015 10:29 am
by hsmith
What happens if you run ./check_nrpe -H <IP> -c check_users ?
Re: Error: Service check command...not defined anywhere!
Posted: Fri Dec 18, 2015 11:29 am
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
Re: Error: Service check command...not defined anywhere!
Posted: Fri Dec 18, 2015 12:08 pm
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
Re: Error: Service check command...not defined anywhere!
Posted: Fri Dec 18, 2015 12:21 pm
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.
Re: Error: Service check command...not defined anywhere!
Posted: Fri Dec 18, 2015 2:10 pm
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?
Re: Error: Service check command...not defined anywhere!
Posted: Fri Dec 18, 2015 4:45 pm
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
Re: Error: Service check command...not defined anywhere!
Posted: Mon Dec 21, 2015 11:35 am
by rkennedy
This appears to be working. Is it also working when you look at your Nagios server on the web interface?
Re: Error: Service check command...not defined anywhere!
Posted: Mon Dec 21, 2015 2:32 pm
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: