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

PHP ERROR : activation OnlyHardStates #3

Open
centreon opened this issue May 5, 2015 · 3 comments
Open

PHP ERROR : activation OnlyHardStates #3

centreon opened this issue May 5, 2015 · 3 comments
Labels
Milestone

Comments

@centreon
Copy link
Collaborator

centreon commented May 5, 2015

Julien Coerch Write :

Bonjour,

J'ai installé le connecteur Nagvis/Centreon broker comme précisé dans la procédure.
Tout fonctionne correctement sauf quand je passe mais hôtes en "Only hard state" (pour n'afficher que l'état consolidé).
Lorsque j'active cette option j'obtiens le message suivant :

Error: (0) Undefined index: last_hard_state (/usr/local/nagvis/share/server/core/classes/GlobalBackendcentreonbroker.php:266)#0 /usr/local/nagvis/share/server/core/classes/GlobalBackendcentreonbroker.php(266): nagvisExceptionErrorHandler(8, 'Undefined index...', '/usr/local/nagv...', 266, Array)
#1 /usr/local/nagvis/share/server/core/classes/CoreBackendMgmt.php(327): GlobalBackendcentreonbroker->getHostState(Array, 3, Array)
#2 /usr/local/nagvis/share/server/core/classes/CoreBackendMgmt.php(169): CoreBackendMgmt->fetchStateCounts('centreonbroker_...', 'hostState', 3, Array)
#3 /usr/local/nagvis/share/server/core/classes/GlobalIndexPage.php(161): CoreBackendMgmt->execute()
#4 /usr/local/nagvis/share/server/core/classes/CoreModOverview.php(52): GlobalIndexPage->parseMapsJson('map')
#5 /usr/local/nagvis/share/server/core/functions/index.php(120): CoreModOverview->handleAction()
#6 /usr/local/nagvis/share/server/core/ajax_handler.php(63): require('/usr/local/nagv...')
#7 {main}

Merci pour votre aide

@EChauve
Copy link

EChauve commented Jun 19, 2015

+1 Having the same issue.

@leoncx leoncx added the bug label Sep 3, 2015
@leoncx leoncx added this to the 1.1.0 milestone Sep 3, 2015
@ErrafayM
Copy link

ErrafayM commented Nov 8, 2016

I'm having same issue, someone got a fix ?

@emaintenance
Copy link

Forcer l'état courant permet de ne pas avoir de message d'erreur.

Remplacer la ligne :
$row['current_state'] = $row['last_hard_state'];
par :
$row['current_state'] = $row['current_state'];

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

No branches or pull requests

4 participants