Closed marcelfischer closed 10 years ago
See "HTML in output caused by --multiline" in readme. I have to rewrite the section because HTML is not only used in multiline. I have never seen HTML as an attachment. Normally the tags are only displayed in the code as strings and it looks a little bit ugly. But merging a little bit HTML is the only way to have a "more sophisticated" output to the overview window. Are you working with Thomas Widhalm from Netways? If yes - tell him that I have reworked the Login process and I am using session files now in a more sophisitcated. Any questions beside this issue here feel free to contact me by mail (martin.fuerstenau@oce.com) in German.
Hello, when the service Health Status (--select=runtime --subselect=health) gets to a warning or critical state, we get the mail notification as attachment. It only happens with this particular check. Inside the attachment is the original message.
Our Service Notification Command: /usr/bin/printf "%b" "Notification Type: $NOTIFICATIONTYPE$\n\n Service: $SERVICEDESC$\n Host: $HOSTALIAS$\n Address: $HOSTADDRESS$\n State: $SERVICESTATE$\n\n Date/Time: $LONGDATETIME$\n\n Additional Info:\n\n $SERVICEOUTPUT$\n" | /bin/mailx -s "\ $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
I have attached a screenshot.
This is the original messages inside the attachment: Notification Type: PROBLEM
Service: ESX health status Host: impesx01.emea.company.newyorker.de Address: 192.168.20.1 State: WARNING
Date/Time: Thu Mar 6 15:43:15 CET 2014
Additional Info:
Warning! 1 health issue(s) found in 296 checks: 1) [Unknown] [Type: system] [Name: VMware Rollup Health State] [Label: Unbekannt] [Summary: Über den aktuellen Zustand des Elements kann nicht berichtet werden]