[naemon-dev] Submit passive check with the ip address instead of the hostname failed
arnaud.esnault-prestataire at labanquepostale.fr
arnaud.esnault-prestataire at labanquepostale.fr
Tue Mar 7 09:06:50 CET 2017
Hi,
With nagios, it is possible to submit passive check with ip address
instead of the hostname (for process_passive_host_check or
process_passive_service_check). If I do the same thing with naemon, I have
an error (Ex. : Failed validation of service as type service (argument
0)).
I read the naemon source and I see that :
In the function process_passive_host_check (or
process_passive_service_check) called to process the command
CMD_PROCESS_HOST_CHECK_RESULT (or CMD_PROCESS_SERVICE_CHECK_RESULT), the
host is found by the function find_host_by_name_or_address.
But, before this process, the function command_parse is called to validate
the arguments of the commands, and during this validation, the host is
found only by the function find_host (see function resolve_object) and not
by the function find_host_by_name_or_address. So if I have an ip address
into a command CMD_PROCESS_HOST_CHECK_RESULT, the command parse failed.
The same problem exists for the command CMD_PROCESS_SERVICE_CHECK_RESULT.
So I believe, there is an anomaly in the command parse function to
validate arguments of the the commands CMD_PROCESS_HOST_CHECK_RESULT and
CMD_PROCESS_SERVICE_CHECK_RESULT with ip address instead of the hostname.
Unless it is the new way chosen by naemon.
Best regards,
C0 - Public
C2 - Restreint
X
C1 - Interne
C3 - Confidentiel
C4 - Secret : indisponible
Arnaud Esnault
Service Intégration, recette technique et services
Département Intégration et gestion des changements
Direction de la production informatique
Société prestataire AKKA Technologies
DIRECTION DES SYSTÈMES D’INFORMATION DE LA BANQUE ET DU RÉSEAU
10 BOULEVARD AUGUSTE PAGEOT – NANTES
Tél : +33 (0) 2 40 16 40 12
arnaud.esnault-prestataire at labanquepostale.fr
Si vous recevez ce courriel en dehors de vos heures de travail ou pendant
vos congés,
vous n’avez pas à y répondre immédiatement, sauf en cas d'urgence
exceptionnelle.
Afin de contribuer au respect de l'environnement, merci de n'imprimer ce
mail qu'en cas de nécessité
Le papier est un bien precieux, ne le gaspillez pas. N'imprimez ce document que si vous en avez vraiment besoin !
Ce message est confidentiel.
Sous reserve de tout accord conclu par ecrit entre vous et La Banque Postale, son contenu ne represente en aucun cas un engagement de la part de La Banque Postale.
Toute publication, utilisation ou diffusion, meme partielle, doit etre autorisee prealablement.
Si vous n'etes pas destinataire de ce message, merci d'en avertir immediatement l'expediteur.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/naemon-dev/attachments/20170307/2c7da9c1/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 33066 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/naemon-dev/attachments/20170307/2c7da9c1/attachment-0001.jpe>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 941 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/naemon-dev/attachments/20170307/2c7da9c1/attachment-0001.gif>
More information about the Naemon-dev
mailing list