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
Custom Nagios check works from command line, but not Nagios
Re: Custom Nagios check works from command line, but not Nag
No problem. Thanks for your perseverance. Those dang env vars strike again! Closing thread. Enjoy the weekend!
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.