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.
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?
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?
## 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
## 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 -
## 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.
## 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 -
## 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.