Getting error while setup the cloudwatch plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
CentricIT
Posts: 16
Joined: Wed Dec 12, 2018 7:41 am

Getting error while setup the cloudwatch plugin

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Getting error while setup the cloudwatch plugin

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
CentricIT
Posts: 16
Joined: Wed Dec 12, 2018 7:41 am

Re: Getting error while setup the cloudwatch plugin

Post by CentricIT »

Hi benjaminsmith,

Thank you for your quick response.

We are using Centos 6.9 on our Nagiosxi server.


Regards
CentricIT
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Getting error while setup the cloudwatch plugin

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked