Page 1 of 1

Getting error while setup the cloudwatch plugin

Posted: Tue Jul 23, 2019 9:10 am
by CentricIT
Hi Team,

we are trying to monitor the AWS cloudwatch with nagios-cloudwatch-metrics-master

we downloaded the plugin and extracted into the nagios server. While trying to run the plugin, we are getting an error as below.

./check_cloudwatch.sh --timeout=30 --region="us-east-2" --namespace="CWAgent" --metric="disk_used_percent" --statistics="Average" --mins="15" --dimensions="Name=InstanceId,Value=i-0b0dc3b61a0304265" --warning=50 --critical=100

/root/.local/lib/python2.6/site-packages/urllib3/util/ssl_.py:369: SNIMissingWarning: An HTTPS request has been made, but the SNI (Server Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/lates ... l-warnings
SNIMissingWarning
UNKNOWN - Name=InstanceId,Value=i-0b0dc3b61a0304265 disk_used_percent (15 min Average): null null - No metric value known. | perf=nullnull;50;100;0.000000

[root@monitoring nagios-cloudwatch-metrics-master]# ls
check_cloudwatch.sh get-pip.py LICENSE README.md
[root@monitoring nagios-cloudwatch-metrics-master]# python --version
Python 2.6.6
[root@monitoring nagios-cloudwatch-metrics-master]# pip



Please give us solutions to fix this issue, its very critical


Regards
CentricIT

Re: Getting error while setup the cloudwatch plugin

Posted: Tue Jul 23, 2019 1:54 pm
by benjaminsmith
Hello @CentricIT,

The plugin requires jq, awscli and bc. However, urlib3 being used within this plugin and requires python 2.7.

What distribution and version of Linux are you currently using?

Re: Getting error while setup the cloudwatch plugin

Posted: Wed Jul 24, 2019 12:05 am
by CentricIT
Hi benjaminsmith,

Thank you for your quick response.

We are using Centos 6.9 on our Nagiosxi server.


Regards
CentricIT

Re: Getting error while setup the cloudwatch plugin

Posted: Wed Jul 24, 2019 9:40 am
by benjaminsmith
Helllo @CentricIT,
We are using Centos 6.9 on our Nagiosxi server.
It looks like CentOS 6.9 base repositories only support python up to version 2.6.6. If possible, I would recommend setting up a Nagios XI test server and migrate the server to CentOS 7 which supports python 2.7.x.

Your Nagios XI license is valid for 3 installs.

Nagios XI - License Entitlements