Re: [Users] Failure to connect to engine with Nagios

Dotan Paz , Engineering Operations Red Hat Israel, LTD ----- Original Message -----
On 04/09/2014 09:55 AM, Dotan Paz wrote:
Dotan Paz , Engineering Operations Red Hat Israel, LTD
----- Original Message -----
On 04/07/2014 07:49 PM, René Koch wrote:
Hi Juan,
On 04/07/2014 07:27 PM, Juan Hernandez wrote:
Hello,
We are having some trouble with the Nagios plugin for oVirt. From time to time it stops working and it isn't able to connect to the engine. The error that we get apparently indicates a failure to read the file where the session cookie is stored:
RHEV CRITICAL: Can't connect to RHEVM-API. Unsuccessful stat on filename containing newline at /usr/lib/nagios/plugins/check_rhev3 line 1411.
Any suggestion on how to diagnose/solve this issue?
Can you tell me which version of check_rhev3 you're using? Hi Rene,
Name: check_rhev3 Version: 1.2.1 Created: 2012-08-13
Hi Daton,
Can you please try check_rhev3 1.3? https://github.com/ovido/check_rhev3/releases
Sure , I'll keep you posted .
Thanks, René
Regards,
Dotan, can you answer this question?
-- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L. _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Dotan Paz , Engineering Operations Red Hat Israel, LTD ----- Original Message -----
Dotan Paz , Engineering Operations Red Hat Israel, LTD
----- Original Message -----
On 04/09/2014 09:55 AM, Dotan Paz wrote:
Dotan Paz , Engineering Operations Red Hat Israel, LTD
----- Original Message -----
On 04/07/2014 07:49 PM, René Koch wrote:
Hi Juan,
On 04/07/2014 07:27 PM, Juan Hernandez wrote:
Hello,
We are having some trouble with the Nagios plugin for oVirt. From time to time it stops working and it isn't able to connect to the engine. The error that we get apparently indicates a failure to read the file where the session cookie is stored:
RHEV CRITICAL: Can't connect to RHEVM-API. Unsuccessful stat on filename containing newline at /usr/lib/nagios/plugins/check_rhev3 line 1411.
Any suggestion on how to diagnose/solve this issue?
Can you tell me which version of check_rhev3 you're using? Hi Rene,
Name: check_rhev3 Version: 1.2.1 Created: 2012-08-13
Hi Daton,
Can you please try check_rhev3 1.3? https://github.com/ovido/check_rhev3/releases
Sure , I'll keep you posted .
Still not working , different error though [root@dpaz ~]# /usr/lib64/nagios/plugins/check_rhev3 -H <server> -a <host>:<password> -D PRODUCTION -l storage -s status cat: /var/tmp/bm90dDA0LmVuZy5sYWIudGx2LnJlZGhhdC5jb20tdmlld2VyQE5PVFQwNC5FTkcuTEFCLlRMVi5S: No such file or directory RHEV UNKNOWN: Failed to connect to RHEVM-API or received invalid response. Should it be working out of the box , or does it require any configurations ?
Thanks, René
Regards,
Dotan, can you answer this question?
-- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L. _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On 04/09/2014 04:20 PM, Dotan Paz wrote:
Dotan Paz , Engineering Operations Red Hat Israel, LTD
----- Original Message -----
Dotan Paz , Engineering Operations Red Hat Israel, LTD
----- Original Message -----
On 04/09/2014 09:55 AM, Dotan Paz wrote:
Dotan Paz , Engineering Operations Red Hat Israel, LTD
----- Original Message -----
On 04/07/2014 07:49 PM, René Koch wrote:
Hi Juan,
On 04/07/2014 07:27 PM, Juan Hernandez wrote: > Hello, > > We are having some trouble with the Nagios plugin for oVirt. From time > to time it stops working and it isn't able to connect to the engine. > The > error that we get apparently indicates a failure to read the file > where > the session cookie is stored: > > RHEV CRITICAL: Can't connect to RHEVM-API. > Unsuccessful stat on filename containing newline at > /usr/lib/nagios/plugins/check_rhev3 line 1411. > > Any suggestion on how to diagnose/solve this issue? >
Can you tell me which version of check_rhev3 you're using? Hi Rene,
Name: check_rhev3 Version: 1.2.1 Created: 2012-08-13
Hi Daton,
Can you please try check_rhev3 1.3? https://github.com/ovido/check_rhev3/releases
Sure , I'll keep you posted .
Still not working , different error though [root@dpaz ~]# /usr/lib64/nagios/plugins/check_rhev3 -H <server> -a <host>:<password> -D PRODUCTION -l storage -s status cat: /var/tmp/bm90dDA0LmVuZy5sYWIudGx2LnJlZGhhdC5jb20tdmlld2VyQE5PVFQwNC5FTkcuTEFCLlRMVi5S: No such file or directory RHEV UNKNOWN: Failed to connect to RHEVM-API or received invalid response.
Should it be working out of the box , or does it require any configurations ?
Yes, it should work out of the box. Can please send me the debug output (can be off list as well if you're concerned of security: # /usr/lib64/nagios/plugins/check_rhev3 -H <server> -a <host>:<password> -D PRODUCTION -l storage -s status -vvv | grep -v 'RHEVM-API Password' Thanks, René
Thanks, René
Regards,
Dotan, can you answer this question?
-- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L. _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Hi list, I use Perl (LWP::UserAgent, HTTP:::Request) to connect to oVirt REST-API and fetch data with my Nagios plugin. 2 users complained now that my plugin stops working for their monitoring user (IPA backend). It worked fine with their monitoring@ipa user a few weeks and suddenly it stopped working. If using another user (another IPA user or admin@internal) it's fine. Here's the response from oVirt engine (JBoss) for this user: * Header: Content-Type: text/plain Client-Date: Mon, 21 Apr 2014 14:19:31 GMT Client-Warning: Internal response * Content (the default timeout is 15 seconds): 500 SSL read timeout: User permissions are fine, btw. Does anyone know if there's a connection limit to REST-API on a user base? Or can anyone give me a hint how to troubleshoot this issue (I can't reproduce this behavior in my environment btw). Thanks a lot, René On 04/09/2014 11:48 AM, Dotan Paz wrote:
Dotan Paz , Engineering Operations Red Hat Israel, LTD
----- Original Message -----
On 04/09/2014 09:55 AM, Dotan Paz wrote:
Dotan Paz , Engineering Operations Red Hat Israel, LTD
----- Original Message -----
On 04/07/2014 07:49 PM, René Koch wrote:
Hi Juan,
On 04/07/2014 07:27 PM, Juan Hernandez wrote:
Hello,
We are having some trouble with the Nagios plugin for oVirt. From time to time it stops working and it isn't able to connect to the engine. The error that we get apparently indicates a failure to read the file where the session cookie is stored:
RHEV CRITICAL: Can't connect to RHEVM-API. Unsuccessful stat on filename containing newline at /usr/lib/nagios/plugins/check_rhev3 line 1411.
Any suggestion on how to diagnose/solve this issue?
Can you tell me which version of check_rhev3 you're using? Hi Rene,
Name: check_rhev3 Version: 1.2.1 Created: 2012-08-13
Hi Daton,
Can you please try check_rhev3 1.3? https://github.com/ovido/check_rhev3/releases
Sure , I'll keep you posted .
Thanks, René
Regards,
Dotan, can you answer this question?
-- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L. _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On 04/28/2014 02:01 PM, René Koch wrote:
Hi list,
I use Perl (LWP::UserAgent, HTTP:::Request) to connect to oVirt REST-API and fetch data with my Nagios plugin. 2 users complained now that my plugin stops working for their monitoring user (IPA backend).
It worked fine with their monitoring@ipa user a few weeks and suddenly it stopped working. If using another user (another IPA user or admin@internal) it's fine.
There isn't any explicit per user limit in the RESTAPI: all users are created equal from the RESTAPI point of view. However, there are differences from the backend point of view, specially from @internal users and any other users. The main difference is that login of a user from a domain other than @internal requires a request to the LDAP server, which requires a connection and a network round-trip. There may be issues with that, specially if the LDAP server is slow. If a request to the LDAP server blocks, the backend will block waiting for the response, the RESTAPI will block waiting for the backend, and finally the webserver will block waiting for the application server response. I would suggest to analyze the backend logs looking for errors related to connections to the LDAP servers.
Here's the response from oVirt engine (JBoss) for this user:
* Header: Content-Type: text/plain Client-Date: Mon, 21 Apr 2014 14:19:31 GMT Client-Warning: Internal response
* Content (the default timeout is 15 seconds): 500 SSL read timeout:
User permissions are fine, btw.
Does anyone know if there's a connection limit to REST-API on a user base? Or can anyone give me a hint how to troubleshoot this issue (I can't reproduce this behavior in my environment btw).
Thanks a lot, René
On 04/09/2014 11:48 AM, Dotan Paz wrote:
Dotan Paz , Engineering Operations Red Hat Israel, LTD
----- Original Message -----
On 04/09/2014 09:55 AM, Dotan Paz wrote:
Dotan Paz , Engineering Operations Red Hat Israel, LTD
----- Original Message -----
On 04/07/2014 07:49 PM, René Koch wrote:
Hi Juan,
On 04/07/2014 07:27 PM, Juan Hernandez wrote: > Hello, > > We are having some trouble with the Nagios plugin for oVirt. From time > to time it stops working and it isn't able to connect to the engine. The > error that we get apparently indicates a failure to read the file where > the session cookie is stored: > > RHEV CRITICAL: Can't connect to RHEVM-API. > Unsuccessful stat on filename containing newline at > /usr/lib/nagios/plugins/check_rhev3 line 1411. > > Any suggestion on how to diagnose/solve this issue? >
Can you tell me which version of check_rhev3 you're using? Hi Rene,
Name: check_rhev3 Version: 1.2.1 Created: 2012-08-13
Hi Daton,
Can you please try check_rhev3 1.3? https://github.com/ovido/check_rhev3/releases
Sure , I'll keep you posted .
Thanks, René
Regards,
Dotan, can you answer this question?
-- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
participants (3)
-
Dotan Paz
-
Juan Hernandez
-
René Koch