check_cloudwatch_status plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
kadaw978
Posts: 27
Joined: Mon Feb 29, 2016 1:58 pm

check_cloudwatch_status plugin

Post by kadaw978 »

Hi,

I've been struggling through this for the past few days and unable to come up with a solution. I am trying to set the threshold value to trigger a warning and a critical alert for the following Amazon RDS metrics (freestoragespace and freeablememory). The metric return the value in bytes which is fine and I tried setting the following arguments, but it does not work as expected. Can anybody provide insight into what i'm doing wrong?

Expected outcome of the below example is that NagiosXI will trigger a critical alert since the average 1141714944 < $ARG5$ 1150326400, but it is green in the UI. I tried bytes, gb, mb, %, and none of them gives me the expected outcome.

EX:

CloudWatch Metric: FreeableMemory, Average: 1141714944.00, Maximum: 1142493184.00, Minimum: 1140936704.00

RUBYOPT=rubygems ruby /usr/local/nagios/libexec/check_cloudwatch_status.rb -a $HOSTADDRESS$ -i $ARG1$ -f $ARG2$ -D $ARG3$ -w $ARG4$ -c $ARG5$

$ARG4$ 1160326400
$ARG5$ 1150326400

Thanks
kadaw978
Posts: 27
Joined: Mon Feb 29, 2016 1:58 pm

Re: check_cloudwatch_status plugin

Post by kadaw978 »

Think I figured it out. I'll confirm tomorrow and thread can be resolved then.

Looks like i just needed a colon after the threshold value. This may be closed.

Thanks
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: check_cloudwatch_status plugin

Post by mbellerue »

Excellent, glad you got it sorted out!
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