Attention! Nagios 出错问题 Because of the Environment settings.

We have all LAMP APPs migrated to EC2 instance successfully. APPs work fine. but I was always getting Warning messages from Nagios, saying: PHPlive supporter Offline.

In fact, we had already have accessed to the phplive support. so strange…I was wondering.
I tried check_phplive on localhost server. It gave me the correct response: OK- ….online

but at my end (my monitoring server) I was always getting the warning:
Warning- Supporter Offline.

I checked everything I could do, finally I found that a simple mistake in my checking-code that missing Environment Variable settings of Mysql.

so just added this MYSQL=location/bin/mysql and using variable ‘MYSQL’ instead the ‘mysql’

It is now working fine!cool.