Nagios + NSCLIENT = text as attachment in notification email

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.
Locked
gilfalko
Posts: 10
Joined: Sat Oct 26, 2013 8:00 am

Nagios + NSCLIENT = text as attachment in notification email

Post by gilfalko »

Hi,

I use NSCLIENT to run a custom powershell script that echos a few lines of text. From what I noticed, after echoing more than 2 lines, the alerts received via email from Nagios have the body empty and the body's text included as an attachment file by the name of AT000001.BIN.
The weird thing is, when I look in the Nagios control panel I see the text being received just fine.
This somehow gets altered when being emailed out.

Can anyone help?

Thanks!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios + NSCLIENT = text as attachment in notification e

Post by tmcdonald »

We've seen this sort of thing before: http://support.nagios.com/forum/viewtop ... =7&t=25449

Are you echoing any non-printable characters or non-Unix newlines?
Former Nagios employee
Locked