I have two nodes which i think are pretty much identical, but one of them seems to be failing all checks.
When i do a tcpdump on Nagios i only see traffic leaving for one of the nodes, the working one obviously. So would lead me to believe its a config problem with creation of node. I likely just copied the other node, and just changed the obvious details, IP address, host name / address etc.
I can ping both hostnames, and it resolved correctly to the IP, which is also odd.
Could someone take a quick look at the below config and tell me if there is anything obvious i am missing, or any other checks you can recommend, thanks a mill guys
proxy1 is the problem one. proxy2 passes all checks...
Code: Select all
nagios@edirlinux:/usr/local/nagios/etc/objects> more proxy1.cfg
define host{
use generic-host ; Name of host template to use
host_name proxy1.domain
alias Websense V10000 - proxy1 (172.18.131.20 / 172.18.131.21)
address 172.18.131.21
check_command check-host-alive
process_perf_data 1
max_check_attempts 10
notification_interval 120
notification_period workhours
notification_options d,u,r
}
define service{
use generic-service
host_name proxy1.domain
service_description WWW.GOOGLE.IE
is_volatile 0
check_period workhours
max_check_attempts 5
process_perf_data 1
normal_check_interval 1
retry_check_interval 1
contact_groups admins
notification_interval 120
notification_period workhours
notification_options w,u,c,r
check_command check_proxy_google
}
define service{
use generic-service
host_name proxy1.domain
service_description WEBSENSE POLICY SERVER: BLOCK WEBEMAIL
is_volatile 0
check_period workhours
max_check_attempts 3
normal_check_interval 1
contact_groups admins
process_perf_data 1
notification_interval 30
notification_period workhours
nagios@edirlinux:/usr/local/nagios/etc/objects> more proxy2.cfg
define host{
use generic-host ; Name of host template to use
host_name proxy2.domain
alias Websense V10000 - proxy2 (172.18.131.22 / 172.18.131.23)
address 172.18.131.23
check_command check-host-alive
process_perf_data 1
max_check_attempts 10
notification_interval 120
notification_period workhours
notification_options d,u,r
}
define service{
use generic-service
host_name proxy2.domain
service_description WWW.GOOGLE.IE
is_volatile 0
check_period workhours
max_check_attempts 5
process_perf_data 1
normal_check_interval 1
retry_check_interval 1
contact_groups admins
notification_interval 120
notification_period workhours
notification_options w,u,c,r
check_command check_proxy_google
}
define service{
use generic-service
host_name proxy2.domain
service_description WEBSENSE POLICY SERVER: BLOCK WEBEMAIL
is_volatile 0
check_period workhours
max_check_attempts 3
normal_check_interval 1
contact_groups admins
process_perf_data 1
notification_interval 30
notification_period workhours
nagios@edirlinux:/usr/local/nagios/etc/objects> ping proxy1
PING proxy1 (172.18.131.21) 56(84) bytes of data.
64 bytes from 172.18.131.21: icmp_seq=1 ttl=54 time=359 ms
64 bytes from 172.18.131.21: icmp_seq=2 ttl=54 time=363 ms
nagios@edirlinux:/usr/local/nagios/etc/objects> ping proxy2
PING proxy2 (172.18.131.23) 56(84) bytes of data.
64 bytes from 172.18.131.23: icmp_seq=1 ttl=54 time=105 ms
64 bytes from 172.18.131.23: icmp_seq=2 ttl=54 time=149 ms