Page 3 of 3
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Thu Dec 17, 2015 4:35 pm
by al_orange
rkennedy wrote:After you ran
./configure --with-nagios-user=nagios --with-nagios-group=nagios, did you also run
It looks like your plugins haven't been compiled yet.
Wow, we're in business! It worked! Okay, I followed the instructions again, this time with the make and make install.
So I am not receiving the error for the Nagios Server anymore...only the client now.
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Thu Dec 17, 2015 4:44 pm
by rkennedy
Nice!
I believe the reason why the other one isn't working is because it does not have a DNS entry for ora_linux7_xen2. Can you post the configuration file that has the host entry for ora_linux7_xen2?
It should look similar to -
Code: Select all
define host {
use linux-server
host_name ora_linux7_xen2
alias aliashere
address iphere
max_check_attempts 5
check_period 24x7
notification_interval 30
notification_period 24x7
}
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Thu Dec 17, 2015 7:12 pm
by al_orange
rkennedy wrote:Nice!
I believe the reason why the other one isn't working is because it does not have a DNS entry for ora_linux7_xen2. Can you post the configuration file that has the host entry for ora_linux7_xen2?
It should look similar to -
Code: Select all
define host {
use linux-server
host_name ora_linux7_xen2
alias aliashere
address iphere
max_check_attempts 5
check_period 24x7
notification_interval 30
notification_period 24x7
}
Code: Select all
## Default Linux Host Template ##
define host{
name linux-box ; Name of this template
use generic-host ; Inherit default values
check_period 24x7
check_interval 5
retry_interval 1
max_check_attempts 10
check_command check-host-alive
notification_period 24x7
notification_interval 30
notification_options d,r
contact_groups admins
register 0 ; DONT REGISTER THIS - ITS A TEMPLATE
}
## Default
define host{
use linux-box ; Inherit default values from a template
host_name ora_linux7_xen2.xyz.local ; The name we're giving to this server
alias Oracle Linux 7 ; A longer name for the server address 172.17.40.152 ; IP address of Remote Linux host
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Fri Dec 18, 2015 10:36 am
by rkennedy
Is this your full definition for the ora_linux7 host?
Code: Select all
## Default
define host{
use linux-box ; Inherit default values from a template
host_name ora_linux7_xen2.xyz.local ; The name we're giving to this server
alias Oracle Linux 7 ; A longer name for the server address 172.17.40.152 ; IP address of Remote Linux host
It seems you're missing a couple things. It should look like -
Code: Select all
## Default
define host{
use linux-box ; Inherit default values from a template
host_name ora_linux7_xen2.xyz.local ; The name we're giving to this server
alias Oracle Linux 7 ; A longer name for the server address
address 172.17.40.152 ; IP address of Remote Linux host
}
Make the change, restart the nagios service, and it should be working.
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Fri Dec 18, 2015 11:52 am
by al_orange
rkennedy wrote:Is this your full definition for the ora_linux7 host?
Code: Select all
## Default
define host{
use linux-box ; Inherit default values from a template
host_name ora_linux7_xen2.xyz.local ; The name we're giving to this server
alias Oracle Linux 7 ; A longer name for the server address 172.17.40.152 ; IP address of Remote Linux host
It seems you're missing a couple things. It should look like -
Code: Select all
## Default
define host{
use linux-box ; Inherit default values from a template
host_name ora_linux7_xen2.xyz.local ; The name we're giving to this server
alias Oracle Linux 7 ; A longer name for the server address
address 172.17.40.152 ; IP address of Remote Linux host
}
Make the change, restart the nagios service, and it should be working.
Yes, it's working now. Added address at the bottom lime with the IP address.
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Fri Dec 18, 2015 12:06 pm
by bwallace
Glad to hear it is working now. Did you have any other questions, or may we lock this thread?
Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...
Posted: Fri Dec 18, 2015 12:23 pm
by al_orange
bwallace wrote:Glad to hear it is working now. Did you have any other questions, or may we lock this thread?
Yes, this issue has been resolved. Please lock this thread.