You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2012-07-26 20:30:10

mathieu.md
Member
Registered: 2012-07-12
Posts: 20

Monitoring: Config from flat-files and from GLPI are not compatibles

By default, command names defined in flat-files (/etc/shinken) and in Monitoring (GLPI plugin) are in conflict.

To make both working together, I had to:

  • Edit nagios.cfg to comment "commands.cfg" and "packs", and add a new "commands-basic_for_glpi.cfg":

#GLPI#cfg_file=commands.cfg
cfg_file=commands-basic_for_glpi.cfg
[…]
#GLPI#cfg_dir=packs
  • Create commands-basic_for_glpi.cfg so that it simply contains a definition for "notify-service-by-email" (copied from "commands.cfg") because those shipped by Monitoring are named "notify-service-by-email-perl" and "notify-service-by-email-py" (as shown in "glpi_plugin_monitoring_notificationcommands" MySQL table; I don’t know if/where they are modifiable in GLPI)
    Note: It would be simpler to rename the "notify-service-by-email-perl" to "notify-service-by-email" in notificationcommands! After all, "notify-host-by-email" is already named properly and it's a Perl script.


Versions used:
- GLPI 0.83.3
- Monitoring plugin 0.83+1.0
- shinken-arbiter : 1.0.1 with pyro : 3.12

Last edited by mathieu.md (2012-07-26 20:45:17)

Offline

#2 2012-07-27 10:00:56

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Monitoring: Config from flat-files and from GLPI are not compatibles

You can change name in DB wink

I would like offer possibility to propose perl or python

Offline

#3 2012-07-27 22:13:22

mathieu.md
Member
Registered: 2012-07-12
Posts: 20

Re: Monitoring: Config from flat-files and from GLPI are not compatibles

ddurieux wrote:

You can change name in DB wink

Of course, but it's not my point wink

ddurieux wrote:

I would like offer possibility to propose perl or python

But you could still propose the perl as default (like Shinken does, ie. "notify-service-by-email") and offer the Python alternative through a custom command name ("notify-service-by-email-py").

That way, Shinken configuration from flat files is still compatible and usable with commands got from Monitoring.

Offline

#4 2012-07-28 10:15:23

ddurieux
Plugins Dev
From: Propières, France
Registered: 2005-06-17
Posts: 7,521

Re: Monitoring: Config from flat-files and from GLPI are not compatibles

You're right, I will fix that

Offline

#5 2012-07-28 10:19:00

mathieu.md
Member
Registered: 2012-07-12
Posts: 20

Re: Monitoring: Config from flat-files and from GLPI are not compatibles

Except if we prefer to have "glpi_" prefixed commands for those shipped by Monitoring ;-)

Offline

Board footer

Powered by FluxBB