You are not logged in.
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
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
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
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
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
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
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
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
...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
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
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
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
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