Custom Nagios check works from command line, but not Nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
steved
Posts: 5
Joined: Tue Oct 08, 2013 9:33 am

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

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post by abrist »

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.
Locked