{"action":"created","issue":{"url":"https://api.github.com/repos/centreon/centreon-plugins/issues/78","labels_url":"https://api.github.com/repos/centreon/centreon-plugins/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/centreon/centreon-plugins/issues/78/comments","events_url":"https://api.github.com/repos/centreon/centreon-plugins/issues/78/events","html_url":"https://github.com/centreon/centreon-plugins/issues/78","id":90047923,"number":78,"title":"Question : how should the perl connector be used with a centreon_plugins.pl command?","user":{"login":"EChauve","id":12727441,"avatar_url":"https://avatars.githubusercontent.com/u/12727441?v=3","gravatar_id":"","url":"https://api.github.com/users/EChauve","html_url":"https://github.com/EChauve","followers_url":"https://api.github.com/users/EChauve/followers","following_url":"https://api.github.com/users/EChauve/following{/other_user}","gists_url":"https://api.github.com/users/EChauve/gists{/gist_id}","starred_url":"https://api.github.com/users/EChauve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EChauve/subscriptions","organizations_url":"https://api.github.com/users/EChauve/orgs","repos_url":"https://api.github.com/users/EChauve/repos","events_url":"https://api.github.com/users/EChauve/events{/privacy}","received_events_url":"https://api.github.com/users/EChauve/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-22T08:59:24Z","updated_at":"2015-06-22T13:51:39Z","closed_at":null,"body":"As centreon_plugins.pl has become the core of Centreon's plugins, most of my commands use it. To increase performances, I would like to use the perl connector which is very likely to have been designed to this purpose (in my opinion).\r\nAccording to the Centreon documentation, the perl connector does not need to be configured and should be used just by selecting it when creating a command.\r\n\r\nWhen doing exactly so, the services asociated to the said command all go to unknown and latency is created.\r\n\r\nHere is the definition of a command : \r\n\r\ndefine command{\r\ncommand_name LOCAL_RAM\r\ncommand_line perl $USER1$/centreon-plugins/centreon_plugins.pl --plugin=os::linux::local::plugin --mode=memory --warning=$_SERVICEWARNING$ --critical=$_SERVICECRITICAL$\r\nconnector centreon_connector_perl\r\n}\r\n\r\nThe command works very well without the connector, I am just trying to anticipate a need for performance optimisation.\r\n\r\nAm i doing it wrong? Do I understand the purpose of the connector properly? Is it compatible? Should I ask my question here?"},"comment":{"url":"https://api.github.com/repos/centreon/centreon-plugins/issues/comments/114110936","html_url":"https://github.com/centreon/centreon-plugins/issues/78#issuecomment-114110936","issue_url":"https://api.github.com/repos/centreon/centreon-plugins/issues/78","id":114110936,"user":{"login":"EChauve","id":12727441,"avatar_url":"https://avatars.githubusercontent.com/u/12727441?v=3","gravatar_id":"","url":"https://api.github.com/users/EChauve","html_url":"https://github.com/EChauve","followers_url":"https://api.github.com/users/EChauve/followers","following_url":"https://api.github.com/users/EChauve/following{/other_user}","gists_url":"https://api.github.com/users/EChauve/gists{/gist_id}","starred_url":"https://api.github.com/users/EChauve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EChauve/subscriptions","organizations_url":"https://api.github.com/users/EChauve/orgs","repos_url":"https://api.github.com/users/EChauve/repos","events_url":"https://api.github.com/users/EChauve/events{/privacy}","received_events_url":"https://api.github.com/users/EChauve/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T13:51:39Z","updated_at":"2015-06-22T13:51:39Z","body":"In \"Configuration\"-->\"Commands\"-->\"Connectors\"-->\"Perl Connector\" , I replaced : centreon_connector_perl \r\nby : \r\ncentreon_connector_perl --code \"use '/usr/lib/nagios/plugins/'\\;\" \r\nbut I am still getting the \"(Execute command failed)\" message\r\n\r\nI will try the first method now"}}