service alert email notification - data truncated
Posted: Tue Nov 15, 2016 1:26 pm
I get the below output when running a plugin from the nagios server, which is the correct output.
WARNING:
plmdb003.prod.cin.mp-emaxx.com
SPACE USAGE WARNING
COLOR...TABLESPACE.................WARN..ALERT...%FREE......TOTAL_MB...FREE_MB
-------|-------------------------|-----|------|-------|-------------|---------
yellow..LABREP_DATA..............60000G....30G....0.86..17,172,608...148,224
When I get the email notification, data in the additional info field is truncated. I thought it was because of the pipe symbol, so I removed the pipe symbol from illegal_macro_output_chars in nagios.cfg but that didn't resolve the issue.
Additional Info:
WARNING:p879jhuk
SPACE USAGE WARNING
COLOR...TABLESPACE.................WARN..ALERT...%FREE......TOTAL_MB...FREE_MB
-------
This is the notify-service-by-email command being used.
/usr/bin/printf "%b" "***** Nagios Monitor XI Alert *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$$LONGSERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
WARNING:
plmdb003.prod.cin.mp-emaxx.com
SPACE USAGE WARNING
COLOR...TABLESPACE.................WARN..ALERT...%FREE......TOTAL_MB...FREE_MB
-------|-------------------------|-----|------|-------|-------------|---------
yellow..LABREP_DATA..............60000G....30G....0.86..17,172,608...148,224
When I get the email notification, data in the additional info field is truncated. I thought it was because of the pipe symbol, so I removed the pipe symbol from illegal_macro_output_chars in nagios.cfg but that didn't resolve the issue.
Additional Info:
WARNING:p879jhuk
SPACE USAGE WARNING
COLOR...TABLESPACE.................WARN..ALERT...%FREE......TOTAL_MB...FREE_MB
-------
This is the notify-service-by-email command being used.
/usr/bin/printf "%b" "***** Nagios Monitor XI Alert *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$$LONGSERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$