Page 4 of 8
Re: Error: Service check command...not defined anywhere!
Posted: Mon Nov 30, 2015 1:16 pm
by hsmith
It's just generally wherever you see $ARGx$ it wants some kind of information. Compare our check_users for example. Let me know if you want any help with specifics.
Re: Error: Service check command...not defined anywhere!
Posted: Mon Nov 30, 2015 7:40 pm
by al_orange
hsmith wrote:It's just generally wherever you see $ARGx$ it wants some kind of information. Compare our check_users for example. Let me know if you want any help with specifics.
Okay, well I got the check_users filled out. But, I don't know what to put for the rest of the arguments for the other service check_commands. Are there examples posted here somewhere?
Also, I'm getting an error in Nagios, in host status:
(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
Re: Error: Service check command...not defined anywhere!
Posted: Mon Nov 30, 2015 7:46 pm
by Box293
al_orange wrote:Okay, well I got the check_users filled out. But, I don't know what to put for the rest of the arguments for the other service check_commands. Are there examples posted here somewhere?
Can you provide the list of the other check_commands please.
al_orange wrote:Also, I'm getting an error in Nagios, in host status: (No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_ping, ...) failed. errno is 2: No such file or directory
Can you create a new thread for this question please along with your host object definition.
Re: Error: Service check command...not defined anywhere!
Posted: Mon Nov 30, 2015 7:59 pm
by al_orange
Here are my check_commands. I only have one with the arguments filled out (Check Swap).
Code: Select all
define service{
use generic-service
host_name ora_linux7_xen2.xyz.local
service_description CPU Load
check_command check_nrpe!check_load
}
define service{
use generic-service
host_name ora_linux7_xen2.xyz.local
service_description Total Processes
check_command check_nrpe!check_total_procs
}
define service{
use generic-service
host_name ora_linux7_xen2.xyz.local
service_description Current Users
check_command check_nrpe!check_users-a '-w 5 -c 10'
}
define service{
use generic-service
host_name ora_linux7_xen2.xyz.local
service_description SSH Monitoring
check_command check_nrpe!check_ssh
}
define service{
use generic-service
host_name ora_linux7_xen2.xyz.local
service_description FTP Monitoring
check_command check_nrpe!check_ftp
}
define service{
use generic-service
host_name ora_linux7_xen2.xyz.local
service_description Check Swap
check_command check_nrpe!check_swap -w 20 -c 10
}
define service{
use generic-service
host_name ora_linux7_xen2.vrcis.local
service_description Check Processes
check_command check_nrpe!check_procs
}
Re: Error: Service check command...not defined anywhere!
Posted: Mon Nov 30, 2015 8:06 pm
by Box293
This screenshot you provided shows the commands already defined with their argument in the nrpe.cfg file.
So you shouldn't need any additional arguments. If you client nrpe.cfg file is different post it here, or perhaps they are defined in /usr/local/nagios/etc/nrpe/common.cfg.
Your screenshot does not show a definition for check_ftp.
Re: Error: Service check command...not defined anywhere!
Posted: Tue Dec 15, 2015 1:06 pm
by al_orange
Box293 wrote:This screenshot you provided shows the commands already defined with their argument in the nrpe.cfg file.
So you shouldn't need any additional arguments. If you client nrpe.cfg file is different post it here, or perhaps they are defined in /usr/local/nagios/etc/nrpe/common.cfg.
Your screenshot does not show a definition for check_ftp.
I don't recall where I got the screenshot from. I couldn't find the nrpe.cfg file, even after doing a search
find / -name "nrpe" -print on the client. On the server, all I found was
Code: Select all
[root@nagios etc]# find / -name "nrpe" -print
/root/nagios/nrpe-2.15/package/solaris/pkg/nrpe
/root/nagios/nrpe-2.15/src/nrpe
/usr/local/nagios/bin/nrpe
Re: Error: Service check command...not defined anywhere!
Posted: Tue Dec 15, 2015 1:38 pm
by rkennedy
We would need to know where the screenshot came from. That is where check_ftp needs to be defined to work with NRPE.
Re: Error: Service check command...not defined anywhere!
Posted: Tue Dec 15, 2015 4:29 pm
by al_orange
rkennedy wrote:We would need to know where the screenshot came from. That is where check_ftp needs to be defined to work with NRPE.
I forgot where it came from. I don't know where to look. Ugh.
Re: Error: Service check command...not defined anywhere!
Posted: Tue Dec 15, 2015 4:38 pm
by hsmith
What's the output of ls /usr/lib?
Re: Error: Service check command...not defined anywhere!
Posted: Tue Dec 15, 2015 5:02 pm
by al_orange
hsmith wrote:What's the output of ls /usr/lib?
Code: Select all
[root@XEN1 t]# /usr/lib
-bash: /usr/lib: is a directory
[root@XEN1 t]#
Code: Select all
[root@nagios etc]# /usr/lib
-bash: /usr/lib: Is a directory
[root@nagios etc]#