glpi_monitoring icon indicating copy to clipboard operation
glpi_monitoring copied to clipboard

Compatibility with GLPI 9.1

Open Sismic opened this issue 8 years ago • 38 comments

we can't update GLPI 0.90 to 9.1. Because of an incompatibility with the plugin, migration is impossible and it is a shame.

Sismic avatar Jan 25 '17 09:01 Sismic

It can work in 9.1.2 with little modifications in setup.php for both plugins monitoring and webservices. In file setup.php, just modify test in fonction "plugin_<PLUGIN>_check_prerequisites()" : if (version_compare(GLPI_VERSION,'0.85','lt') || version_compare(GLPI_VERSION,'9.2','ge')) {

keyser75000 avatar Mar 02 '17 13:03 keyser75000

could you please upgrade your plugin to be compatible with GLPI 9.1.

voileux avatar Aug 09 '17 14:08 voileux

Yes, will do it quickly

ddurieux avatar Aug 09 '17 14:08 ddurieux

Could you provide an update on this issue ?

voileux avatar Sep 29 '17 12:09 voileux

I will do this this week end ;)

ddurieux avatar Sep 29 '17 12:09 ddurieux

I'm looking forward to Monday ;) Have a good week-end

voileux avatar Sep 29 '17 12:09 voileux

Hi,

I'm testing GLPI 9.2 and I still need monitoring. I managed to make monitoring work. Some method are removed since 9.1 others are deprecated (still work but will be removed).

I found only these methods that break compatibilty :

  • in componentscatalog.class.php:191, edit static hosts in components catalog.
//      Dropdown::showAllItems('items_id');
      Dropdown::showSelectItemFromItemTypes(['items_id']);
  • in componentscatalog.class.php:1047, synthesis in components catalog. For "Start Date field" :
//Html::showDateFormItem("date_start", date('Y-m-d H:i:s', date('U') - (24 * 3600 * 7)));
Html::showDateTimeField("date_start",
                              array('value'      => date('Y-m-d H:i:s', date('U') - (24 * 3600 * 7)),
                                    'timestep'   => 1,
                                    'maybeempty' => true
));

and for "End date field" :

//Html::showDateFormItem("date_end", date('Y-m-d'));
Html::showDateTimeField("date_end",
                              array('value'      => date('Y-m-d H:i:s'),
                                    'timestep'   => 1,
                                    'maybeempty' => true
));

Others methods are deprecated ("openArrowMassives()" and "closeArrowMassives") but still work. I didn't find others but I didn't check everything. For my use (managed Shinken config, computers state, resources state, alerts) it still works perfectly. It allows me to wait for an future update (and probably migrate to Alignak ?).

keyser75000 avatar Oct 23 '17 14:10 keyser75000

Find another used in notification templates.

  • in servicenotificationtemplate.form.php:196 :
//$this->showTabs($options);
$this->defineAllTabs($options);

keyser75000 avatar Oct 23 '17 15:10 keyser75000

Bonjour,

Est ce qu'il y a du nouveau vis à vis du Plugin Monitoring ?

Je dois rendre un rapport lundi et cela ne marche toujours pas :+1: image

Une piste ? Un nouveau plugin ?

Merci d'avance !

FrichardF avatar Nov 08 '17 01:11 FrichardF

Hello and sorry to rewrite this post (better in english isn't it ?

On GLPI 9.1.6, I try to install : Injection de fichiers | 2.4.2 | GPLv2+ | Activé | W. Nouh, R. Collet, N. Mahu-Lasson, X. Caillaud Monitoring | 0.90+1.0 | AGPLv3+ | Activé | D. DURIEUX OCS Inventory NG | 1.3.3 | GPLv2+ | Activé | G. Dubois, R. Collet, N. Mahu-Lasson, D. Durieux, X. Caillaud, W. Nouh, A. Jaouen Services Web | 1.7. | GPLv2+ | Activé | Remi Collet, Nelly Mahu-Lasson

I experience some problemes withthe Monitoring Problem which are not well displayed on GLPI. (Please have a look on the screenshot below)

Is there some update of this plugin, or something to do for make that working ?

Is there someone working on that ?

Thanks by advance

Richard

image

FrichardF avatar Nov 08 '17 07:11 FrichardF

Check the profiles

ddurieux avatar Nov 08 '17 08:11 ddurieux

Could you explain me how to do as I am a beginner ? Perhaps you have an exemple ?

Thanks by advance Richard

FrichardF avatar Nov 08 '17 08:11 FrichardF

Check in "Administration > Profils > YOUR_PROFILE". image

keyser75000 avatar Nov 08 '17 08:11 keyser75000

Ok, so that's not normal :(

ddurieux avatar Nov 08 '17 08:11 ddurieux

@ddurieux it's an example for @FrichardF :)

keyser75000 avatar Nov 08 '17 08:11 keyser75000

Ah ok sorry :p

ddurieux avatar Nov 08 '17 08:11 ddurieux

Hello,

I have the same than you : Another Idea ?

Is there an update ?

Thanks by advance image

FrichardF avatar Nov 08 '17 08:11 FrichardF

Is there any error in debug mode ? Are you in 9.2 version or 9.1.x ? in php-error.log ?

keyser75000 avatar Nov 08 '17 08:11 keyser75000

Debug mode ? Sorry, as I am a real beginner. I am on 9.1.6. Thanks for your time.

FrichardF avatar Nov 08 '17 08:11 FrichardF

Is it this one ?

image

FrichardF avatar Nov 08 '17 09:11 FrichardF

Do you have Shinken installed ? Does it communicate with GLPI, through webservices plugin (arbiter log) ?

keyser75000 avatar Nov 08 '17 09:11 keyser75000

3 points below :

1 - Shinken 2.4.3 installed but pending on host : image

2 - Could you explain how to do : "Does it communicate with GLPI, through webservices plugin (arbiter log)"

3 - Here are the log files in debug mode from /opt/glpi/file/_log/ sql-errors.log remove.txt php-errors.log event.log cron.log webservices.log

FrichardF avatar Nov 08 '17 09:11 FrichardF

pas d'erreurs dans les .log Shinken a priori

Others logs image

FrichardF avatar Nov 08 '17 10:11 FrichardF

/var/log/shinken/arbiterd.log

image

FrichardF avatar Nov 08 '17 10:11 FrichardF

/var/log/shinken/arbiterd.log.2017-11-07

image

FrichardF avatar Nov 08 '17 10:11 FrichardF

autres log shinken schedulerd.log receiverd.log reactionnerd.log pollerd.log Uploading brokerd.log…

FrichardF avatar Nov 08 '17 10:11 FrichardF

log apache2

FrichardF avatar Nov 08 '17 10:11 FrichardF

autre log apache2 (log.1)

error.log access.log

FrichardF avatar Nov 08 '17 10:11 FrichardF