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.
Before we get into that, what plugin are you using? Is this a standard Nagios plugin? Is it a third-party? Did you develop it yourself? Is there a link to it?
The problem is that the /bin/mail program sees any input containing windows line-endings as a .bin file and assumes it will have binary data, so it makes it an attachment. In this case, I simply had the "sed" program remove those line-endings before sendig it off to /bin/mail.
Now this is definitely a bit of a hack since Nagios should not be the culprit here, which is why I am asking about the plugin. There might be a better way, such as fixing the plugin itself.
Email doesn't have complete string.. Nagios web UI is showing the complete html string but email is having halt content, remaining half contents are missing in email. is there any size limit for alert emails.
In this case I think the web page you are checking is returning the windows-style line endings. Remove the sed portion from the notify-service-by-email command for now and we'll see what we can come up with for a solution.
Is this happening for all HTTP checks or just a certain few?