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.
Locked
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:Can you verify the permissions of your libexec folder and post the result?

Code: Select all

ls -l /usr/local/nagios/libexec/

Code: Select all

-rwxr-xr-x 1 nagios nagios 205922 Dec 17 13:30 check_apt
-rwxr-xr-x 1 nagios nagios   2309 Dec 17 13:30 check_breeze
-rwxr-xr-x 1 nagios nagios 210127 Dec 17 13:30 check_by_ssh
lrwxrwxrwx 1 root   root        9 Dec 17 13:30 check_clamd -> check_tcp
-rwxr-xr-x 1 nagios nagios 158867 Dec 17 13:30 check_cluster
-r-sr-xr-x 1 root   nagios 207752 Dec 17 13:30 check_dhcp
-rwxr-xr-x 1 nagios nagios 224866 Dec 17 13:30 check_disk
-rwxr-xr-x 1 nagios nagios   9348 Dec 17 13:30 check_disk_smb
-rwxr-xr-x 1 nagios nagios 118795 Dec 17 13:30 check_dummy
-rwxr-xr-x 1 nagios nagios   3542 Dec 17 13:30 check_file_age
-rwxr-xr-x 1 nagios nagios   6375 Dec 17 13:30 check_flexlm
lrwxrwxrwx 1 root   root        9 Dec 17 13:30 check_ftp -> check_tcp
-rwxr-xr-x 1 nagios nagios 204299 Dec 17 13:30 check_hpjd
-rwxr-xr-x 1 nagios nagios 348270 Dec 17 13:30 check_http
-r-sr-xr-x 1 root   nagios 219395 Dec 17 13:30 check_icmp
-rwxr-xr-x 1 nagios nagios 165737 Dec 17 13:30 check_ide_smart
-rwxr-xr-x 1 nagios nagios  15238 Dec 17 13:30 check_ifoperstatus
-rwxr-xr-x 1 nagios nagios  13386 Dec 17 13:30 check_ifstatus
lrwxrwxrwx 1 root   root        9 Dec 17 13:30 check_imap -> check_tcp
-rwxr-xr-x 1 nagios nagios   6947 Dec 17 13:30 check_ircd
lrwxrwxrwx 1 root   root        9 Dec 17 13:30 check_jabber -> check_tcp
-rwxr-xr-x 1 nagios nagios 183426 Dec 17 13:30 check_load
-rwxr-xr-x 1 nagios nagios   6595 Dec 17 13:30 check_log
-rwxr-xr-x 1 nagios nagios  22730 Dec 17 13:30 check_mailq
-rwxr-xr-x 1 nagios nagios 164911 Dec 17 13:30 check_mrtg
-rwxr-xr-x 1 nagios nagios 166268 Dec 17 13:30 check_mrtgtraf
-rwxr-xr-x 1 nagios nagios 182286 Dec 17 13:30 check_nagios
lrwxrwxrwx 1 root   root        9 Dec 17 13:30 check_nntp -> check_tcp
lrwxrwxrwx 1 root   root        9 Dec 17 13:30 check_nntps -> check_tcp
-rwxrwxr-x 1 nagios nagios  81470 Nov 18 11:07 check_nrpe
-rwxr-xr-x 1 nagios nagios 211452 Dec 17 13:30 check_nt
-rwxr-xr-x 1 nagios nagios 214711 Dec 17 13:30 check_ntp
-rwxr-xr-x 1 nagios nagios 203908 Dec 17 13:30 check_ntp_peer
-rwxr-xr-x 1 nagios nagios 199073 Dec 17 13:30 check_ntp_time
-rwxr-xr-x 1 nagios nagios 245989 Dec 17 13:30 check_nwstat
-rwxr-xr-x 1 nagios nagios   8926 Dec 17 13:30 check_oracle
-rwxr-xr-x 1 nagios nagios 184583 Dec 17 13:30 check_overcr
-rwxr-xr-x 1 nagios nagios 214756 Dec 17 13:30 check_ping
lrwxrwxrwx 1 root   root        9 Dec 17 13:30 check_pop -> check_tcp
-rwxr-xr-x 1 nagios nagios 215914 Dec 17 13:30 check_procs
-rwxr-xr-x 1 nagios nagios 181349 Dec 17 13:30 check_real
-rwxr-xr-x 1 nagios nagios   9642 Dec 17 13:30 check_rpc
-rwxr-xr-x 1 nagios nagios   1465 Dec 17 13:30 check_sensors
lrwxrwxrwx 1 root   root        9 Dec 17 13:30 check_simap -> check_tcp
-rwxr-xr-x 1 nagios nagios 272299 Dec 17 13:30 check_smtp
-rwxr-xr-x 1 nagios nagios 264764 Dec 17 13:30 check_snmp
lrwxrwxrwx 1 root   root        9 Dec 17 13:30 check_spop -> check_tcp
-rwxr-xr-x 1 nagios nagios 180848 Dec 17 13:30 check_ssh
lrwxrwxrwx 1 root   root        9 Dec 17 13:30 check_ssmtp -> check_tcp
-rwxr-xr-x 1 nagios nagios 162647 Dec 17 13:30 check_swap
-rwxr-xr-x 1 nagios nagios 257790 Dec 17 13:30 check_tcp
-rwxr-xr-x 1 nagios nagios 182651 Dec 17 13:30 check_time
lrwxrwxrwx 1 root   root        9 Dec 17 13:30 check_udp -> check_tcp
-rwxr-xr-x 1 nagios nagios 195159 Dec 17 13:30 check_ups
-rwxr-xr-x 1 nagios nagios 155189 Dec 17 13:30 check_uptime
-rwxr-xr-x 1 nagios nagios 153879 Dec 17 13:30 check_users
-rwxr-xr-x 1 nagios nagios   2995 Dec 17 13:30 check_wave
drwxr-xr-x 4 nagios nagios   4096 Nov 11 15:40 eventhandlers
-rwxr-xr-x 1 nagios nagios 149404 Dec 17 13:30 negate
-rwxr-xr-x 1 nagios nagios 147032 Dec 17 13:30 urlize
-rwxr-xr-x 1 nagios nagios   1931 Dec 17 13:30 utils.pm
-rwxr-xr-x 1 nagios nagios   2791 Dec 17 13:30 utils.sh
[root@nagios etc]#
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

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

Post by Box293 »

rkennedy wrote:Can you verify the permissions of your libexec folder and post the result?

Code: Select all

ls -l /usr/local/nagios/libexec/
Can you please execute this command on your remote linux server that has the NRPE agent installed.

Also, I'm not sure if you've been linked to this troubleshooting guide as it may help:

https://assets.nagios.com/downloads/nag ... utions.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
al_orange
Posts: 55
Joined: Mon Nov 23, 2015 7:27 pm

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

Post by al_orange »

Box293 wrote:
rkennedy wrote:Can you verify the permissions of your libexec folder and post the result?

Code: Select all

ls -l /usr/local/nagios/libexec/
Can you please execute this command on your remote linux server that has the NRPE agent installed.

Also, I'm not sure if you've been linked to this troubleshooting guide as it may help:

https://assets.nagios.com/downloads/nag ... utions.pdf
Thanks.

Code: Select all

-rwxr-xr-x. 1 nagios nagios 205306 Dec 16 17:04 check_apt
-rwxr-xr-x. 1 nagios nagios   2309 Dec 16 17:04 check_breeze
-rwxr-xr-x. 1 nagios nagios 209511 Dec 16 17:04 check_by_ssh
lrwxrwxrwx. 1 root   root        9 Dec 16 17:04 check_clamd -> check_tcp
-rwxr-xr-x. 1 nagios nagios 158243 Dec 16 17:04 check_cluster
-r-sr-xr-x. 1 root   nagios 206776 Dec 16 17:04 check_dhcp
-rwxr-xr-x. 1 nagios nagios 224250 Dec 16 17:04 check_disk
-rwxr-xr-x. 1 nagios nagios   9348 Dec 16 17:04 check_disk_smb
-rwxr-xr-x. 1 nagios nagios 118171 Dec 16 17:04 check_dummy
-rwxr-xr-x. 1 nagios nagios   3542 Dec 16 17:04 check_file_age
-rwxr-xr-x. 1 nagios nagios   6375 Dec 16 17:04 check_flexlm
lrwxrwxrwx. 1 root   root        9 Dec 16 17:04 check_ftp -> check_tcp
-rwxr-xr-x. 1 nagios nagios 347654 Dec 16 17:04 check_http
-r-sr-xr-x. 1 root   nagios 218739 Dec 16 17:04 check_icmp
-rwxr-xr-x. 1 nagios nagios 165121 Dec 16 17:04 check_ide_smart
-rwxr-xr-x. 1 nagios nagios  15238 Dec 16 17:04 check_ifoperstatus
-rwxr-xr-x. 1 nagios nagios  13386 Dec 16 17:04 check_ifstatus
lrwxrwxrwx. 1 root   root        9 Dec 16 17:04 check_imap -> check_tcp
-rwxr-xr-x. 1 nagios nagios   6947 Dec 16 17:04 check_ircd
lrwxrwxrwx. 1 root   root        9 Dec 16 17:04 check_jabber -> check_tcp
-rwxr-xr-x. 1 nagios nagios 182354 Dec 16 17:04 check_load
-rwxr-xr-x. 1 nagios nagios   6595 Dec 16 17:04 check_log
-rwxr-xr-x. 1 nagios nagios  22730 Dec 16 17:04 check_mailq
-rwxr-xr-x. 1 nagios nagios 164295 Dec 16 17:04 check_mrtg
-rwxr-xr-x. 1 nagios nagios 165652 Dec 16 17:04 check_mrtgtraf
-rwxr-xr-x. 1 nagios nagios 181670 Dec 16 17:04 check_nagios
lrwxrwxrwx. 1 root   root        9 Dec 16 17:04 check_nntp -> check_tcp
lrwxrwxrwx. 1 root   root        9 Dec 16 17:04 check_nntps -> check_tcp
-rwxrwxr-x. 1 nagios nagios  81470 Nov 18 11:53 check_nrpe
-rwxr-xr-x. 1 nagios nagios 210836 Dec 16 17:04 check_nt
-rwxr-xr-x. 1 nagios nagios 214095 Dec 16 17:04 check_ntp
-rwxr-xr-x. 1 nagios nagios 203292 Dec 16 17:04 check_ntp_peer
-rwxr-xr-x. 1 nagios nagios 198457 Dec 16 17:04 check_ntp_time
-rwxr-xr-x. 1 nagios nagios 245373 Dec 16 17:04 check_nwstat
-rwxr-xr-x. 1 nagios nagios   8926 Dec 16 17:04 check_oracle
-rwxr-xr-x. 1 nagios nagios 183959 Dec 16 17:04 check_overcr
-rwxr-xr-x. 1 nagios nagios 213668 Dec 16 17:04 check_ping
lrwxrwxrwx. 1 root   root        9 Dec 16 17:04 check_pop -> check_tcp
-rwxr-xr-x. 1 nagios nagios 215298 Dec 16 17:04 check_procs
-rwxr-xr-x. 1 nagios nagios 180733 Dec 16 17:04 check_real
-rwxr-xr-x. 1 nagios nagios   9642 Dec 16 17:04 check_rpc
-rwxr-xr-x. 1 nagios nagios   1465 Dec 16 17:04 check_sensors
lrwxrwxrwx. 1 root   root        9 Dec 16 17:04 check_simap -> check_tcp
-rwxr-xr-x. 1 nagios nagios 271083 Dec 16 17:04 check_smtp
lrwxrwxrwx. 1 root   root        9 Dec 16 17:04 check_spop -> check_tcp
-rwxr-xr-x. 1 nagios nagios 180232 Dec 16 17:04 check_ssh
lrwxrwxrwx. 1 root   root        9 Dec 16 17:04 check_ssmtp -> check_tcp
-rwxr-xr-x. 1 nagios nagios 162031 Dec 16 17:04 check_swap
-rwxr-xr-x. 1 nagios nagios 257174 Dec 16 17:04 check_tcp
-rwxr-xr-x. 1 nagios nagios 182035 Dec 16 17:04 check_time
lrwxrwxrwx. 1 root   root        9 Dec 16 17:04 check_udp -> check_tcp
-rwxr-xr-x. 1 nagios nagios 194543 Dec 16 17:04 check_ups
-rwxr-xr-x. 1 nagios nagios 154573 Dec 16 17:04 check_uptime
-rwxr-xr-x. 1 nagios nagios 153263 Dec 16 17:04 check_users
-rwxr-xr-x. 1 nagios nagios   2995 Dec 16 17:04 check_wave
-rwxr-xr-x. 1 nagios nagios 148788 Dec 16 17:04 negate
-rwxr-xr-x. 1 nagios nagios 145944 Dec 16 17:04 urlize
-rwxr-xr-x. 1 nagios nagios   1931 Dec 16 17:04 utils.pm
-rwxr-xr-x. 1 nagios nagios   2791 Dec 16 17:04 utils.sh
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 »

I sent you a PM.
Former Nagios Employee.
me.
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 »

This one has been resolved. Things that needed to be fixed:

The commands were using arguments inside of the services.cfg file, but dont_blame_nrpe was set to 0 on the remote machine.
The remote machine was missing definitions for a couple of the commands that nagios was checking for.
Former Nagios Employee.
me.
Locked