Thanks for your help but still i can't see my full output .
let me explain what i'm doing (Maybe i have mistakes)
1. Added this file nagios-4.0.7/include/nagios.h
2. Change this variable to this value : #define MAX_PLUGIN_OUTPUT_LENGTH 20192
After that Re-compile the nagios :
1
./configure --with-command-group=nagcmd
2
make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf
Start the nagios.
If i run the script using nagios user this is the output :
[nagios@nagios libexec]$ python check_cloud_watch_test.py
This is the output :
Code: Select all
CRITICAL - There is Alarms in Virginia & Europe Regions Please check and fix them => Fusionx_latency ,awselb-fusionx-convfunnel-High-Average-Latency ,
2014-06-18 14:13:08.465651
CRITICAL - There is Alarms in Virginia & Europe Regions Please check and fix them => awselb-fusionx-convfunnel-High-Average-Latency ,
2014-06-18 14:14:48.643213
CRITICAL - There is Alarms in Virginia & Europe Regions Please check and fix them => awselb-fusionx-convfunnel-High-Average-Latency ,
2014-06-18 14:16:28.835511
OK - No Alarms in Virginia & Europe Regions , Everything is Fine !! 2014-06-18 14:18:09.011817
OK - No Alarms in Virginia & Europe Regions , Everything is Fine !! 2014-06-18 14:19:48.174949
OK - No Alarms in Virginia & Europe Regions , Everything is Fine !! 2014-06-18 14:21:28.300730
OK - No Alarms in Virginia & Europe Regions , Everything is Fine !! 2014-06-18 14:23:08.486223
OK - No Alarms in Virginia & Europe Regions , Everything is Fine !! 2014-06-18 14:24:48.776008
OK - No Alarms in Virginia & Europe Regions , Everything is Fine !! 2014-06-18 14:26:29.093319
OK - No Alarms in Virginia & Europe Regions , Everything is Fine !! 2014-06-18 14:28:08.437110
OK - No Alarms in Virginia & Europe Regions , Everything is Fine !! 2014-06-18 14:29:48.694743
OK - No Alarms in Virginia & Europe Regions , Everything is Fine !! 2014-06-18 14:31:28.871091
But in the UI & Email this is what i'm getting :
2014-06-18 14:09:28.765395 (Only the first line)
Thanks for your amazing help like always !!!