check_cloudwatch_status plugin
Posted: Tue Jul 30, 2019 12:39 pm
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
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