[op5-users] Réf. : Re: Réf. : Re: Réf. : Re: Réf. : Re: Nagios start time delay with Merlin

nicolas.raspail at bnpparibas.com nicolas.raspail at bnpparibas.com
Thu Aug 27 09:32:24 CEST 2009


op5-users-bounces at lists.op5.com wrote on 26/08/2009 14:53:40:

> 
> Please test the beta5 of Merlin. The release-tag will be set where
> the beta5 tag is now, unless our testing uncover some truly amazing
> deficiency that we have so far been completely unable to spot (not
> very likely). In all likelihood, 0.6.2 will therefore be the same
> code as is in 0.6.2-beta5.
> 
> > Right now, with NDO, my latencies seems to be stable with theses 
values
> > 
> > Service Check Execution Time:   0.04 / 30.02 / 0.372 sec
> > Service Check Latency:  0.00 / 1299.86 / 46.321 sec
> > Host Check Execution Time:      2.54 / 2.62 / 2.563 sec
> > Host Check Latency:     0.00 / 3.45 / 1.179 sec
> > 
> 
> That's a fairly high service check latency though. Hopefully Merlin
> will cope better than that.

Hello,

I have compiled and installed the new merlin 0.6.2-beta5 and it is
running for 30 minutes now.

Nagios start checking hosts/services immediately, but I see a strange
behaviour of Merlin in the log file. Every 30/40s, the php importer is
run. In Ninja, I can see the number of services changing from 0 to
14669, and the number of hosts from 0 to 1984. Does it mean that there
is no history of past events in Merlin ?

Here is some log extract.

* When Merlind starts, looks normal
[1251354937] 6: Initializing IPC socket '/bnp/apps/nagios/merlin/ipc.sock' 
for daemon
[1251354937] 6: Primed object states for 0 hosts and 0 services
[1251354937] 6: Merlin daemon  successfully initialized
[1251354937] 7: sel_val: 6; ipc_listen_sock: 5; ipc_sock: -1; net_sock: 6
[1251355099] 7: select() returned 1 (errno = 0: Success)

[1251355099] 7: Accepting inbound connection on ipc socket
[1251355099] 7: sel_val: 7; ipc_listen_sock: 5; ipc_sock: 7; net_sock: 6
[1251355099] 7: select() returned 1 (errno = 0: Success)

[1251355099] 6: inbound data available on ipc socket

[1251355099] 7: Successfully read 1 (null) event (131 bytes; 67 bytes 
body) from socket 7


* When nagios with the module starts
[1251355099] 7: nagios_paths[0]: /bnp/apps/nagios/etc/nagios.cfg
[1251355099] 7: nagios_paths[1]: /bnp/apps/nagios/var/objects.cache
[1251355099] 7: Executing import command 'php 
/bnp/apps/nagios/merlin/import.php 
--nagios-cfg=/bnp/apps/nagios/etc/nagios.cfg 
--cache=/bnp/apps/nagios/var/objects.cache --db-name=merlindb 
--db-user=merlin --db-pass=xxx --db-host=eqd-nagios-sql'
[1251355132] 7: Successfully read 1 NEBCALLBACK_DOWNTIME_DATA event (408 
bytes; 344 bytes body) from socket 7

[1251355132] 7: Successfully read 1 NEBCALLBACK_HOST_STATUS_DATA event 
(748 bytes; 684 bytes body) from socket 7

[1251355132] 7: Updating status for host 'cg37-014'
[1251355132] 7: Successfully read 1 NEBCALLBACK_PROGRAM_STATUS_DATA event 
(352 bytes; 288 bytes body) from socket 7

[1251355132] 7: Successfully read 1 NEBCALLBACK_HOST_STATUS_DATA event 
(795 bytes; 731 bytes body) from socket 7

[1251355132] 7: Updating status for host 'cg73-022'
[1251355132] 7: Successfully read 1 NEBCALLBACK_HOST_STATUS_DATA event 
(795 bytes; 731 bytes body) from socket 7

[1251355132] 7: Updating status for host 'cg73-022'
[1251355132] 7: Successfully read 1 NEBCALLBACK_HOST_STATUS_DATA event 
(795 bytes; 731 bytes body) from socket 7

[1251355132] 7: Updating status for host 'cg74-002'
[1251355133] 7: Successfully read 1 NEBCALLBACK_HOST_STATUS_DATA event 
(795 bytes; 731 bytes body) from socket 7

* when the php importer is ran
[1251355138] 7: Updating status for service 'CHECK-DISKS' on host 
'orasrv-dev24'
[1251355138] 6: Handled 63 ipc events in 39.262 seconds
[1251355138] 7: sel_val: 7; ipc_listen_sock: 5; ipc_sock: 7; net_sock: 6
[1251355147] 7: select() returned 1 (errno = 0: Success)

[1251355147] 6: inbound data available on ipc socket

[1251355147] 7: Successfully read 1 NEBCALLBACK_SERVICE_STATUS_DATA event 
(716 bytes; 652 bytes body) from socket 7

[1251355147] 7: Updating status for service 'CHECK-DISKS' on host 
'parss1112432'
[1251355147] 7: Successfully read 1 (null) event (131 bytes; 67 bytes 
body) from socket 7

[1251355147] 7: nagios_paths[0]: /bnp/apps/nagios/etc/nagios.cfg
[1251355147] 7: nagios_paths[1]: /bnp/apps/nagios/var/objects.cache
[1251355147] 7: Executing import command 'php 
/bnp/apps/nagios/merlin/import.php 
--nagios-cfg=/bnp/apps/nagios/etc/nagios.cfg 
--cache=/bnp/apps/nagios/var/objects.cache --db-name=merlindb 
--db-user=merlin --db-pass=xxx --db-host=eqd-nagios-sql'
[1251355180] 7: Successfully read 1 NEBCALLBACK_SERVICE_STATUS_DATA event 
(845 bytes; 781 bytes body) from socket 7

[1251355180] 7: Updating status for service 
'bnp-check-disk-free-home-snmp' on host 'cg35-052'
[1251355180] 7: Successfully read 1 (null) event (131 bytes; 67 bytes 
body) from socket 7

[1251355180] 7: nagios_paths[0]: /bnp/apps/nagios/etc/nagios.cfg
[1251355180] 7: nagios_paths[1]: /bnp/apps/nagios/var/objects.cache
[1251355180] 7: Executing import command 'php 
/bnp/apps/nagios/merlin/import.php 
--nagios-cfg=/bnp/apps/nagios/etc/nagios.cfg 
--cache=/bnp/apps/nagios/var/objects.cache --db-name=merlindb 
--db-user=merlin --db-pass=xxx --db-host=eqd-nagios-sql'
[1251355214] 7: Successfully read 1 NEBCALLBACK_SERVICE_STATUS_DATA event 
(840 bytes; 776 bytes body) from socket 7

[1251355214] 7: Updating status for service 
'bnp-check-disk-free-home-snmp' on host 'cg37-001'
[1251355214] 7: Successfully read 1 (null) event (131 bytes; 67 bytes 
body) from socket 7

[1251355214] 7: nagios_paths[0]: /bnp/apps/nagios/etc/nagios.cfg
[1251355214] 7: nagios_paths[1]: /bnp/apps/nagios/var/objects.cache
[1251355214] 7: Executing import command 'php 
/bnp/apps/nagios/merlin/import.php 
--nagios-cfg=/bnp/apps/nagios/etc/nagios.cfg 
--cache=/bnp/apps/nagios/var/objects.cache --db-name=merlindb 
--db-user=merlin --db-pass=xxx --db-host=eqd-nagios-sql'
[1251355248] 7: Successfully read 1 NEBCALLBACK_PROGRAM_STATUS_DATA event 
(352 bytes; 288 bytes body) from socket 7

And since that, the log file is fill of lines like

[1251356792] 7: Updating status for service 'CHECK-CLUSTER' on host 
'orasrv-dev20'
[1251356792] 7: Successfully read 1 (null) event (131 bytes; 67 bytes 
body) from socket 7

[1251356792] 7: nagios_paths[0]: /bnp/apps/nagios/etc/nagios.cfg
[1251356792] 7: nagios_paths[1]: /bnp/apps/nagios/var/objects.cache
[1251356792] 7: Executing import command 'php 
/bnp/apps/nagios/merlin/import.php 
--nagios-cfg=/bnp/apps/nagios/etc/nagios.cfg 
--cache=/bnp/apps/nagios/var/objects.cache --db-name=merlindb 
--db-user=merlin --db-pass=xxx --db-host=eqd-nagios-sql'
[1251356826] 7: Successfully read 1 NEBCALLBACK_PROGRAM_STATUS_DATA event 
(352 bytes; 288 bytes body) from socket 7

[1251356826] 7: Successfully read 1 (null) event (131 bytes; 67 bytes 
body) from socket 7

[1251356826] 7: nagios_paths[0]: /bnp/apps/nagios/etc/nagios.cfg
[1251356826] 7: nagios_paths[1]: /bnp/apps/nagios/var/objects.cache
[1251356826] 7: Executing import command 'php 
/bnp/apps/nagios/merlin/import.php 
--nagios-cfg=/bnp/apps/nagios/etc/nagios.cfg 
--cache=/bnp/apps/nagios/var/objects.cache --db-name=merlindb 
--db-user=merlin --db-pass=xxx --db-host=eqd-nagios-sql'

It seems that merlind receive an update in the IPC socket and run the
php importer soon ater. Is a normal behaviour in the beta5 version ?

Regards

Nicolas




This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 
Do not print this message unless it is necessary,
consider the environment.

                ---------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.
N'imprimez ce message que si necessaire,
pensez a l'environnement.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.op5.com/pipermail/op5-users/attachments/20090827/9e83fd35/attachment.html 


More information about the op5-users mailing list