Host and Services update fonction called twice

Julien Mathis jmathis at merethis.com
Thu May 14 11:20:53 CEST 2009


Hi,

We have developped a debuging brocker and we have this two consecutive
events in debug :

213:
1=1202
2=0
3=0
4=1242204696.221542
53=Host-1
114=ping
95=OK
99=
27=0
51=1
115=1
25=1
76=3
61=1242204691
83=1242204751
12=0
63=1241016905
57=1241016905
56=0
66=1242204691
70=0
67=0
64=0
121=1
62=0
84=0
85=0
88=0
101=0
7=0
26=0
97=0
38=1
9=1
47=1
54=0
98=0.00000
71=0.10100
42=0.04398
113=0
45=1
103=1
93=1
80=0
37=
11=check_dummy!0!OK
86=1.000000
109=1.000000
209=24x7
999


213:
1=1202
2=0
3=0
4=1242204696.221595
53=Host-1
114=ping
95=OK
99=
27=0
51=1
115=1
25=1
76=3
61=1242204691
83=1242204751
12=0
63=1241016905
57=1241016905
56=0
66=1242204691
70=0
67=0
64=0
121=1
62=0
84=0
85=0
88=0
101=0
7=0
26=0
97=0
38=1
9=1
47=1
54=0
98=0.00000
71=0.10100
42=0.04398
113=0
45=1
103=1
93=1
80=0
37=
11=check_dummy!0!OK
86=1.000000
109=1.000000
209=24x7
999

=> last check, execution time, latency and next check are the same on each
update. If they are one call before and one call after, this data must be
differents.

I'm ok that DNX need this event. But the event
(NEBCALLBACK_SERVICE_CHECK_DATA I think) need to be different. Why not
creating NEBCALLBACK_SERVICE_START_CHECK event ?

For the host I think it's ok :

211:
1=1200
2=0
3=0
4=1242204702.316882
106=1242047294
102=27013
28=1
55=1242204702
60=1242165601
88=1
9=1
97=1
8=1
96=1
39=1
47=0
45=1
103=1
92=0
94=0
78=0
80=0
49=
50=
999


211:
1=1200
2=0
3=0
4=1242204703.317434
106=1242047294
102=27013
28=1
55=1242204703
60=1242165601
88=1
9=1
97=1
8=1
96=1
39=1
47=0
45=1
103=1
92=0
94=0
78=0
80=0
49=
50=
999

Regards,

--
Julien  MATHIS | CTO Merethis

jmathis at merethis.com
Tél : +33(0)1.78.12.00.23
Mobile  : +33(0)6.85.43.88.38

MERETHIS est éditeur du logiciel Centreon.


On Thu, May 14, 2009 at 10:35 AM, Andreas Ericsson <ae at op5.se> wrote:

> Julien Mathis wrote:
> > Hi,
> >
> > After every single host and service check, the update functions of the
> > broker is called twice. These functions are update_service_status and
> > update_host_status. So the status is also sent twice to ndo2db. This bug
> > increases network traffic and DB requests.
> >
> > I hope somebody can do something about it,
> >
>
> Are you sure this happens twice *after* the check is completed? It's
> supposed to happen twice, but once before and once after the check is
> actually executed. This is a very important feature, as modules such
> as DNX rely on it to highjack immediately pending checks to distribute
> to its poller nodes.
>
> So can you please verify that it happens twice *after* the check is
> actually completed? If so, that's a bug and I'll fix it.
>
> > Thanks for your help.
> >
>
> Thanks for the report.
>
> --
> Andreas Ericsson                   andreas.ericsson at op5.se
> OP5 AB                             www.op5.se
> Tel: +46 8-230225                  Fax: +46 8-230231
>
> Register now for Nordic Meet on Nagios, June 3-4 in Stockholm
>  http://nordicmeetonnagios.op5.org/
>
> Considering the successes of the wars on alcohol, poverty, drugs and
> terror, I think we should give some serious thought to declaring war
> on peace.
>
>
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK
> i700
> Series Scanner you'll get full speed at 300 dpi even with all image
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20090514/794862e4/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list