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 2015-08-24 17:20:14

pyuesh
Member
Registered: 2015-08-24
Posts: 6

Assistance with GLPI 0.85 and WebServices 1.5.0

Hi Guys

I am trying to integrate GLPI 0.85 with Nagios using Webservices 1.5.0.

I have configure the Webservices module in GLPI with the correct address and username & password that is being used in Nagios script, but all i get is the xmlrpc error(1): Access denied error.  Below is the command i run.

php manage-host-tickets.php event="DOWN" state="HARD" eventhost="Myhost" hostattempts="4" maxhostattempts="4" hostproblemid="1" lasthostproblemid="1" + Calling 'glpi.test' on http://helpdesk085.b2e.co.za/plugins/we … xmlrpc.php
+ Calling glpi.test on http://helpdesk085.b2e.co.za/plugins/we … xmlrpc.php
xmlrpc error(1): Access denied

If i remove the username & password from the GLPI Webservices fields, i don't get the access denied error, but just land up on a blank line and nothing has been done in Nagios or GLPI.

Is anyone able to assist with this type of integrattion.

Regards

Offline

#2 2015-08-27 11:10:21

pyuesh
Member
Registered: 2015-08-24
Posts: 6

Re: Assistance with GLPI 0.85 and WebServices 1.5.0

Hi Guys

can anyone assist me with this query.  I changed the Local web services to allow the ip address of the nagios server, so i am not getting the access denied error anymore, but nothing is being logged into the GLPI helpdesk.

Is anyone able to assist who has got this to work.

Offline

#3 2015-08-27 15:49:01

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Assistance with GLPI 0.85 and WebServices 1.5.0

I don't know this file "manage-host-tickets.php" in webservices plugin


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#4 2015-08-27 20:39:38

pyuesh
Member
Registered: 2015-08-24
Posts: 6

Re: Assistance with GLPI 0.85 and WebServices 1.5.0

Hi

Thanks for the response.  I managed to get it working now from a single nagios host.  Are you able to let me know if i am able to allow multiple hosts to connect to the GLPI web services plugin to log tickets.  I have previously setup multiple instances which web services, but always received a "Access Denied" error.  Once i removed them, and changes the settings within Local, then it worked.

Are you able to assist ?

Regards

Offline

#5 2015-10-08 11:34:55

rv008
Member
From: Reims
Registered: 2008-09-17
Posts: 16
Website

Re: Assistance with GLPI 0.85 and WebServices 1.5.0

yllen wrote:

I don't know this file "manage-host-tickets.php" in webservices plugin

Hello ,
Isn't a plugin of glpi's webservice but plugin of nagios

you can see here

I try to make it work but it is not obvious to me, and I can not find the corespondant logs on my nagios server (OMD) or on my server GLPI
on command line nothing same to be wrong , but noting appear on GLPI
If someone can help me , it's greatly appreciate

Regards


Il est plus difficile de désagréger un préjugé qu'un atome.

Offline

#6 2015-10-09 10:49:28

rv008
Member
From: Reims
Registered: 2008-09-17
Posts: 16
Website

Re: Assistance with GLPI 0.85 and WebServices 1.5.0

rv008 wrote:

I try to make it work but it is not obvious to me, and I can not find the corespondant logs on my nagios server (OMD) or on my server GLPI

after search
the connection with the test script runs (local and remote), but not with the script below I think of a "problem" programming the script is old and glpi to evolve. alwais identify has anonymous
if someone had solved this help would be greatly appreciated, or if a programmer goes through here ..

Error from Console

php manage-host-tickets.php event="DOWN" state="HARD" eventhost="nas2" hostattempts="4" maxhostattempts="4" hostproblemid="1" lasthostproblemid="1"
+ Calling glpi.test on http://ocsinventory-ng/glpi/plugins/webservices/xmlrpc.php
xmlrpc error(1): Accés refusé (denied access)

error from webservices.log

2015-10-09 12:27:08 [@ocsinventory-ng]
(denied access)Accès refusé (anonymous, 10.121.78.13, glpi.test, xml-rpc)

Regards

Last edited by rv008 (2015-10-09 10:51:05)


Il est plus difficile de désagréger un préjugé qu'un atome.

Offline

#7 2015-10-09 11:28:20

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Assistance with GLPI 0.85 and WebServices 1.5.0

You can't create a ticket as anonymous, you must be authenticated.


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#8 2015-10-09 11:30:09

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Assistance with GLPI 0.85 and WebServices 1.5.0

pyuesh wrote:

...Once i removed them, and changes the settings within Local, then it worked.

Has you allow distant IP in webservices configuration?


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#9 2015-10-09 13:57:14

rv008
Member
From: Reims
Registered: 2008-09-17
Posts: 16
Website

Re: Assistance with GLPI 0.85 and WebServices 1.5.0

yllen wrote:

Has you allow distant IP in webservices configuration?

Hello,
yes IP are allowed in webservices , user are created (super-admin)  , user for webservice too
parameter put in client script
i read the comment on the developper website, it's appear to be the same problem for user.
apparently not the good programming for this version of plugins ?

Glpi 0.85.5 + webservices 1.6.0

Thanks for your reply
sorry for my poor English

Regards


Il est plus difficile de désagréger un préjugé qu'un atome.

Offline

#10 2015-10-09 15:32:43

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Assistance with GLPI 0.85 and WebServices 1.5.0

I think it's a problem of manage-host-tickets.php file of nagios plugin that doesn't authenticate the call


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#11 2015-10-09 15:47:57

rv008
Member
From: Reims
Registered: 2008-09-17
Posts: 16
Website

Re: Assistance with GLPI 0.85 and WebServices 1.5.0

i'm not programmer but i think soo
script not be long i try to resolve that (à temps perdu)
else is it normal  below in french

glpi.test semble attendre en paramétre     username:password et glpidoLogin login_password:login_name

Regards , Merci
ps: bravo pour le travail


Il est plus difficile de désagréger un préjugé qu'un atome.

Offline

#12 2017-04-01 23:50:56

derricksmith01
Member
Registered: 2012-10-22
Posts: 11
Website

Re: Assistance with GLPI 0.85 and WebServices 1.5.0

Hello,

I know this post is quite old but I am the author of this Nagios plugin and would be happy to answer any questions you have about its use.  I also just rewrote the plugin to work with GLPI 9.1+.  You can find the updated version of the plugin at http://derrick-smith.com/2017/04/01/upd … tegration/.  Please let me know if you have questions.  Thanks

Offline

Board footer

Powered by FluxBB