R: R: strange passive host behaviour

Marco Borsani m.borsani at it.net
Tue Apr 23 14:58:47 CEST 2013


The problem could be caused by retention.dat file.

 

All the passive host have this line : “active_checks_enabled=1” 

 

Why ? Is it a bug ?

 

Marco

 

Da: Marco Borsani [mailto:m.borsani at it.net] 
Inviato: martedì 23 aprile 2013 14:23
A: 'Nagios Users List'
Oggetto: [Nagios-users] R: strange passive host behaviour

 

The two templates are:

 

define host{

        name
generic-active-host    

        check_command                                    check-host-alive

        active_checks_enabled                       1

        passive_checks_enabled                    0

        check_period                                           24x7

        event_handler_enabled                     0               

        flap_detection_enabled                     1               

        process_perf_data                                0               

        retain_status_information                 1               

        retain_nonstatus_information         1               

        register                                                       0


        }

 

define host{

        name
generic-passive-host    

        active_checks_enabled                       0

        passive_checks_enabled                    1

        check_period                                           24x7

        event_handler_enabled                     0               

        flap_detection_enabled                     0               

        process_perf_data                                0              

        retain_status_information                 1               

        retain_nonstatus_information         1               

        register                                                       0


        check_command                                    check_dummy!0

        check_freshness                                    1


        freshness_threshold                            1800          

        max_check_attempts                          1

        notification_options                             n

        notifications_enabled                          0

        contact_groups
CG_No_Contact_Group

        }

 

The two host configurations are:

define host{

        use
generic-active-host

        host_name                               192.xxx.xxx.3

        alias                                              host_active_3

        address                                       192.xxx.xxx.3

        max_check_attempts          10

        notification_interval              360

        notification_period                24x7

        notification_options              d,u,r

        notifications_enabled          1

        contact_groups                       Mine_CGs

        parents

        }

 

define host{

        use
generic-passive-host

        host_name                               192.xxx.xxx.4

        alias                                              host_passive_4

        address                                       192.xxx.xxx.4

        max_check_attempts          10

        notification_interval              360

        notification_period                24x7

        notification_options              d,u,r

        notifications_enabled          1

        contact_groups                       Mine_CGs

        parents

        }

 

The same for the host_1 and host_2 (mentioned bevore).

 

Regards

Marco

 

Da: Sunil Sankar [mailto:sunil at sunil.cc] 
Inviato: martedì 23 aprile 2013 12:43
A: Nagios Users List
Oggetto: Re: [Nagios-users] strange passive host behaviour

 

Can you paste your config

 

On Tue, Apr 23, 2013 at 2:48 PM, Marco Borsani <m.borsani at it.net> wrote:

Hi all

 

I have 2 HG, both with active and passive hosts.

They use same templates and same parameters.

 

First HG behaviour is OK : in the panel we have active and passive hosts 


Host
<http://nagios03-mi.it.net/nagios/cgi-bin/status.cgi?hostgroup=bv000004_03&s
tyle=hostdetail&hoststatustypes=2&sorttype=1&sortoption=1> Sort by host name
(ascending)
<http://nagios03-mi.it.net/nagios/cgi-bin/status.cgi?hostgroup=bv000004_03&s
tyle=hostdetail&hoststatustypes=2&sorttype=2&sortoption=1> Sort by host name
(descending)

Status
<http://nagios03-mi.it.net/nagios/cgi-bin/status.cgi?hostgroup=bv000004_03&s
tyle=hostdetail&hoststatustypes=2&sorttype=1&sortoption=8> Sort by host
status (ascending)
<http://nagios03-mi.it.net/nagios/cgi-bin/status.cgi?hostgroup=bv000004_03&s
tyle=hostdetail&hoststatustypes=2&sorttype=2&sortoption=8> Sort by host
status (descending)

Last Check
<http://nagios03-mi.it.net/nagios/cgi-bin/status.cgi?hostgroup=bv000004_03&s
tyle=hostdetail&hoststatustypes=2&sorttype=1&sortoption=4> Sort by last
check time (ascending)
<http://nagios03-mi.it.net/nagios/cgi-bin/status.cgi?hostgroup=bv000004_03&s
tyle=hostdetail&hoststatustypes=2&sorttype=2&sortoption=4> Sort by last
check time (descending)

Duration
<http://nagios03-mi.it.net/nagios/cgi-bin/status.cgi?hostgroup=bv000004_03&s
tyle=hostdetail&hoststatustypes=2&sorttype=1&sortoption=6> Sort by state
duration (ascending)
<http://nagios03-mi.it.net/nagios/cgi-bin/status.cgi?hostgroup=bv000004_03&s
tyle=hostdetail&hoststatustypes=2&sorttype=2&sortoption=6> Sort by state
duration time (descending)

Status Information




192.xxx.xxx.1 


webmailstatic-be7

View Service Details For This Host

UP

23-04-2013 11 <tel:23-04-2013%2011> :08:29

14d 7h 33m 59s

PING OK - Packet loss = 0%, RTA = 0.10 ms 




192.xxx.xxx.2 


Checks of this host have been disabled

View Service Details For This Host

UP

23-04-2013 10 <tel:23-04-2013%2010> :42:44

151d 22h 56m 56s

OK 

 

Second HG behaviour is wrong : in the panel ALL the hosts are active, none
is passive


Host
<http://nagios03-mi.it.net/nagios/cgi-bin/status.cgi?hostgroup=bv000004_04&s
tyle=hostdetail&hoststatustypes=2&sorttype=1&sortoption=1> Sort by host name
(ascending)
<http://nagios03-mi.it.net/nagios/cgi-bin/status.cgi?hostgroup=bv000004_04&s
tyle=hostdetail&hoststatustypes=2&sorttype=2&sortoption=1> Sort by host name
(descending)

Status
<http://nagios03-mi.it.net/nagios/cgi-bin/status.cgi?hostgroup=bv000004_04&s
tyle=hostdetail&hoststatustypes=2&sorttype=1&sortoption=8> Sort by host
status (ascending)
<http://nagios03-mi.it.net/nagios/cgi-bin/status.cgi?hostgroup=bv000004_04&s
tyle=hostdetail&hoststatustypes=2&sorttype=2&sortoption=8> Sort by host
status (descending)

Last Check
<http://nagios03-mi.it.net/nagios/cgi-bin/status.cgi?hostgroup=bv000004_04&s
tyle=hostdetail&hoststatustypes=2&sorttype=1&sortoption=4> Sort by last
check time (ascending)
<http://nagios03-mi.it.net/nagios/cgi-bin/status.cgi?hostgroup=bv000004_04&s
tyle=hostdetail&hoststatustypes=2&sorttype=2&sortoption=4> Sort by last
check time (descending)

Duration
<http://nagios03-mi.it.net/nagios/cgi-bin/status.cgi?hostgroup=bv000004_04&s
tyle=hostdetail&hoststatustypes=2&sorttype=1&sortoption=6> Sort by state
duration (ascending)
<http://nagios03-mi.it.net/nagios/cgi-bin/status.cgi?hostgroup=bv000004_04&s
tyle=hostdetail&hoststatustypes=2&sorttype=2&sortoption=6> Sort by state
duration time (descending)

Status Information




192.xxx.xxx.3 


webmail-be8

View Service Details For This Host

UP

23-04-2013 11 <tel:23-04-2013%2011> :06:16

14d 7h 47m 40s

PING OK - Packet loss = 0%, RTA = 0.12 ms 




192.xxx.xxx.4 


View Service Details For This Host

UP

23-04-2013 11 <tel:23-04-2013%2011> :07:31

193d 20h 14m 12s

OK 

 

The “Status Informartion” is “OK” (due to the check_dummy service configured
on it) , but If you go inside the passive host 192.xxx.xxx.4 you see:


Active Checks:

  ENABLED  


Passive Checks:

  ENABLED  


Obsessing:

  ENABLED  


Notifications:

  ENABLED  


Event Handler:

  DISABLED  


Flap Detection:

  DISABLED  

 

I can’t udersand why and how to solve this
.

 

regards

 

Marco Borsani

Unix and Monitoring Sysadmin

Business Unit Internet Solutions - Operations

tel: +39 010 4310115 <tel:%2B39%20010%204310115> 

fax: +39 02 30130311 <tel:%2B39%2002%2030130311> 

cell: +39 329 5953944 <tel:%2B39%20329%205953944> 

ITnet S.r.l.

Società con socio unico

Soggetta a direzione e coordinamento di Italiaonline S.r.l.

 


----------------------------------------------------------------------------
--
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null




-- 
Regards
Sunil Sankar 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130423/69702c0f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 50 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130423/69702c0f/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 50 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130423/69702c0f/attachment-0001.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 971 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130423/69702c0f/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.gif
Type: image/gif
Size: 173 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130423/69702c0f/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 810 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20130423/69702c0f/attachment-0001.png>
-------------- next part --------------
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list