Page 1 of 1

Issues with node

Posted: Fri Oct 10, 2014 9:31 am
by Dave-OD
Hi Folks,

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 :D

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

Re: Issues with node

Posted: Fri Oct 10, 2014 4:56 pm
by Box293
Your host and service definitions are missing:

Code: Select all

register                        1
What does the following output:

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Re: Issues with node

Posted: Mon Oct 13, 2014 3:52 am
by Dave-OD
Hi, thanks for reply... see output.. ive taken out all the host name details.. but seems to run OK!!

Can you elaborate on the "host and service" definition comments, and where they need to be specified??

Code: Select all

nagios@edirlinux:/usr/local/nagios/etc/objects> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 3.3.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 07-25-2011
License: GPL
        Checked 63 hosts.
Checking host groups...
        Checked 12 host groups.
Checking service groups...
        Checked 0 service groups.
Checking contacts...
        Checked 6 contacts.
Checking contact groups...
        Checked 4 contact groups.
Checking service escalations...
        Checked 0 service escalations.
Checking service dependencies...
        Checked 0 service dependencies.
Checking host escalations...
        Checked 0 host escalations.
Checking host dependencies...
        Checked 0 host dependencies.
Checking commands...
        Checked 66 commands.
Checking time periods...
        Checked 6 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 68
Total Errors:   0

Things look okay - No serious problems were detected during the pre-flight check
nagios@edirlinux:/usr/local/nagios/etc/objects>

Re: Issues with node

Posted: Mon Oct 13, 2014 1:47 pm
by Box293
Actually don't worry too much about the register comment, I was thinking about something else (FYI here is some info about it http://nagios.sourceforge.net/docs/3_0/ ... tance.html).

I would like to see your command definition for:

Code: Select all

check_proxy_google