Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Erreur barre de status poller #1195

Closed
centreon opened this issue Mar 11, 2015 · 2 comments
Closed

Erreur barre de status poller #1195

centreon opened this issue Mar 11, 2015 · 2 comments

Comments

@centreon
Copy link
Collaborator


Author Name: eric coquard (eric coquard)
Original Redmine Issue: 6198, https://forge.centreon.com/issues/6198
Original Date: 2015-03-11


Bonjour,

Je viens de découvrir un disfonctionnement qui m'a fait perdre deux heures avant de comprendre le problème. J'ai une architecture distribuée sous Debian avec Engine 1.4.11, Broker 2.8.1 et Centreon UI 2.5.4. L'installation et la configuration d'un Central avec un Poller s'est passée nickel. J'ai voulu recommencer la configuration du poller en commande Clapi. Donc, suppression de l'instance et du module broker. Lors de la création de nouveau de l'instance avec le même nom, la barre de status des pollers m'indique que le poller ne fonctionne plus alors que les hôtes et services fonctionnent. voir copie d'écran.
En ragardant la base de données centreon_storage, table instances il y a deux enregistrements dont un avec un flag deleted.

SELECT *
    -> FROM `instances`
    -> WHERE `name` = 'Poller';
+-------------+--------+--------------------+-----------------------+---------+-----------------------+--------------------------+-------------+-------------+------------+-----------------+----------------+--------------------+----------------+---------------------------+------------------------------+------------+--------------------+-------------------+--------------------------+-----------------------------+---------------+-------------------+----------------------+---------------------+------------------------+------+------------------+---------+------------+---------+---------+----------+
| instance_id | name   | active_host_checks | active_service_checks | address | check_hosts_freshness | check_services_freshness | daemon_mode | description | end_time   | engine          | event_handlers | failure_prediction | flap_detection | global_host_event_handler | global_service_event_handler | last_alive | last_command_check | last_log_rotation | modified_host_attributes | modified_service_attributes | notifications | obsess_over_hosts | obsess_over_services | passive_host_checks | passive_service_checks | pid  | process_perfdata | running | start_time | version | deleted | outdated |
+-------------+--------+--------------------+-----------------------+---------+-----------------------+--------------------------+-------------+-------------+------------+-----------------+----------------+--------------------+----------------+---------------------------+------------------------------+------------+--------------------+-------------------+--------------------------+-----------------------------+---------------+-------------------+----------------------+---------------------+------------------------+------+------------------+---------+------------+---------+---------+----------+
|           5 | Poller |                  1 |                     1 |         |                     0 |                        0 |           0 |             | 1426087218 | Centreon Engine |              1 |                  1 |              0 |                           |                              | 1426087218 |         1426087218 |                 0 |                        0 |                           0 |             1 |                 0 |                    0 |                   1 |                      1 | 3382 |                0 |       0 | 1426086596 | 1.4.11  |       1 |        1 |
|           6 | Poller |                  1 |                     1 |         |                     0 |                        0 |           0 |             |          0 | Centreon Engine |              1 |                  1 |              0 |                           |                              | 1426093509 |         1426093508 |                 0 |                        0 |                           0 |             1 |                 0 |                    0 |                   1 |                      1 | 2141 |                0 |       1 | 1426092135 | 1.4.11  |       0 |        0 |
+-------------+--------+--------------------+-----------------------+---------+-----------------------+--------------------------+-------------+-------------+------------+-----------------+----------------+--------------------+----------------+---------------------------+------------------------------+------------+--------------------+-------------------+--------------------------+-----------------------------+---------------+-------------------+----------------------+---------------------+------------------------+------+------------------+---------+------------+---------+---------+----------+
2 rows in set (0.00 sec)


en supprimant l'enregistrement taggé deleted, la barre de status des pollers redevient OK.

@julienmathis
Copy link
Contributor

In Centreon, we have to add a filter in order to remove all instances for with deleted flag is = to 0

@kduret kduret self-assigned this Aug 10, 2015
kduret added a commit that referenced this issue Aug 10, 2015
@Tpo76
Copy link
Contributor

Tpo76 commented Aug 12, 2015

OK

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants