stderr: execvp(/usr/local/nagios/libexec/check_ping, ...) fa

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.
al_orange
Posts: 55
Joined: Mon Nov 23, 2015 7:27 pm

Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...

Post by al_orange »

rkennedy wrote:After you ran ./configure --with-nagios-user=nagios --with-nagios-group=nagios, did you also run

Code: Select all

make
make install 
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.
Attachments
wowitworks.png
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...

Post 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
}
Former Nagios Employee
al_orange
Posts: 55
Joined: Mon Nov 23, 2015 7:27 pm

Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...

Post 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.
Former Nagios Employee
al_orange
Posts: 55
Joined: Mon Nov 23, 2015 7:27 pm

Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...

Post 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.
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...

Post by bwallace »

Glad to hear it is working now. Did you have any other questions, or may we lock this thread?
Be sure to check out the Knowledgebase for helpful articles and solutions!
al_orange
Posts: 55
Joined: Mon Nov 23, 2015 7:27 pm

Re: stderr: execvp(/usr/local/nagios/libexec/check_ping, ...

Post 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.
Locked