Page 2 of 2

Re: Custom Nagios check works from command line, but not Nag

Posted: Fri Oct 11, 2013 8:44 am
by steved
Figured out the issue, the ec2 api command wasn't picking up the environment.

After adding:

export PATH=$PATH:/opt/ec2-api-tools/bin
export EC2_HOME=/opt/ec2-api-tools/
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/
export AWS_ACCESS_KEY=**********************************
export AWS_SECRET_KEY=***********************************

The script works well.

Thanks for you help everyone.

Steve

Re: Custom Nagios check works from command line, but not Nag

Posted: Fri Oct 11, 2013 11:41 am
by abrist
No problem. Thanks for your perseverance. Those dang env vars strike again! Closing thread. Enjoy the weekend!