Hi,

I have a problemwith gpli_import_module in Shinken

On my GLPI server I tested this command and it responds well : php /var/www/html/glpi/plugins/webservices/scripts/testxmlrpc.php --username=glpi --password=password --host=localhost --uri=http://localhost/glpi/plugins/webservices/xmlrpc.php + Calling 'glpi.test' on http://localhost//glpi/plugins/webservices/xmlrpc.php
+ Response: Array
(
    [glpi] => 0.80.3
    [fusinvinventory] => 0.80+1.5
    [webservices] => 1.2.0
)



I configuredShinken with glpi


define module {
  uri http://serveur-glpi/glpi/plugins/webservices/xmlrpc.php
  tag
  module_type glpi
  login_password password
  module_name GLPI
  login_name glpi
}

define arbiter {
  modules Collectd,PickleRetentionArbiter,GLPI
  spare 0
  address localhost
  port 7770
  arbiter_name Arbiter-Master
}


I get errors in the logs arbiter.log :

Info : Trying to init module : GLPI
2012-07-18 18:10:49,676 [1342627849] Error : The instance GLPI raised an exception <Fault 1: u'Acc\xc3\xa8s refus\xc3\xa9'>, I remove it! 2012-07-18 18:10:49,676 [1342627849] Error : Back trace of this remove : Traceback (most recent call last): File "/usr/local/shinken/shinken/modulesmanager.py", line 139, in try_instance_init
    inst.init()
File "/usr/local/shinken/shinken/modules/glpi_arbiter.py", line 73, in init
    res = self.con.glpi.doLogin(arg)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1253, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1392, in _parse_response
    return u.close()
  File "/usr/lib64/python2.6/xmlrpclib.py", line 838, in close
    raise Fault(**self._stack[0])
Fault: <Fault 1: u'Acc\xc3\xa8s refus\xc3\xa9'>
2012-07-18 18:10:50,681 [1342627850] Info : Trying to init module : GLPI

did you have an idea?
regards

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Shinken-devel mailing list
Shinken-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shinken-devel

Reply via email to