Email messages getting truncated.

Pulyankote, Gopinath Gopinath_Pulyankote at affymetrix.com
Tue Nov 19 02:39:10 CET 2002


Thanks that worked. But still the complete messages doesn't show up. I
recall seeing some earlier posts about a buffer that needs to be tweaked to
increase the size of the $OUTPUT$ field. Can someone post that for me, since
I couldn't find it. 
BTW, is the archives on sourceforge down? 

-Gopinath
-----Original Message-----
From: Bishop, Dean [mailto:dean.bishop at tcdsb.org] 
Sent: Monday, November 18, 2002 11:51 AM
To: 'Pulyankote, Gopinath'; 'Carroll, Jim P [Contractor]';
'nagios-users at lists.sourceforge.net'
Subject: RE: [Nagios-users] Email messages getting truncated.


Good morning,

	No, NSClient cannot grok the event logs.  i use BackLogNT as
Gopinath uses NTsyslog.  The author of NSClient has had a project going for
months now to get this info but i have seen no updates and am unsure if he
will complete it.

	Additionally, for the truncated messages try replacing the sprintf
(at least i think that is what is used) commands and single-quotes in
misccommands with echo -e and double-quotes ala:

	command_line	/bin/echo -e "***** Nagios *****\n\nNotification
Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress:
$HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n" | /bin/mail -s
'Host $HOSTSTATE$ alert for $HOSTNAME$!' $CONTACTEMAIL$
	}


hope this helps,
dean
-----Original Message-----
From: Pulyankote, Gopinath [mailto:Gopinath_Pulyankote at affymetrix.com]
Sent: Monday, November 18, 2002 2:28 PM
To: 'Carroll, Jim P [Contractor]'; 'nagios-users at lists.sourceforge.net'
Subject: RE: [Nagios-users] Email messages getting truncated.


I am not sure if NSClient could do that. That's why we are using the
NTSyslog to send in the alerts to a syslog server. If NSClient could do this
it would be great, no need to duplicate the logs on 2 servers!
-Gopinath

-----Original Message-----
From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] 
Sent: Monday, November 18, 2002 11:05 AM
To: 'Pulyankote, Gopinath'; 'nagios-users at lists.sourceforge.net'
Subject: RE: [Nagios-users] Email messages getting truncated.


Interesting.  Always great to have options.

Does NSClient have a way to grok the NT alerts and report on them?

jc

> -----Original Message-----
> From: Pulyankote, Gopinath [mailto:Gopinath_Pulyankote at affymetrix.com]
> Sent: Monday, November 18, 2002 11:43 AM
> To: Carroll, Jim P [Contractor]; 'nagios-users at lists.sourceforge.net'
> Subject: RE: [Nagios-users] Email messages getting truncated.
> 
> 
> Yes. We are using Ntsyslog. 
> -Gopinath
> 
> -----Original Message-----
> From: Carroll, Jim P [Contractor] 
> [mailto:jcarro10 at sprintspectrum.com] 
> Sent: Monday, November 18, 2002 7:48 AM
> To: 'Pulyankote, Gopinath'; 'nagios-users at lists.sourceforge.net'
> Subject: RE: [Nagios-users] Email messages getting truncated.
> 
> 
> I'm curious.  Do you have your Windows server logging (via syslog) to
> another host?
> 
> jc
> 
> > -----Original Message-----
> > From: Pulyankote, Gopinath 
> [mailto:Gopinath_Pulyankote at affymetrix.com]
> > Sent: Sunday, November 17, 2002 1:27 PM
> > To: 'nagios-users at lists.sourceforge.net'
> > Subject: [Nagios-users] Email messages getting truncated.
> > 
> > 
> > I searched the archives but couldn't find a solution for my 
> > problem. I have
> > a check_log2.pl script looking for messages in a log file, 
> > when it sends out
> > an alert, the complete message is not received.  The alert 
> > logs show the
> > complete message. 
> > How do I fix this?
> > Thanks in advance
> > 
> > 
> > Here's the email alert received:...........
> > ***** Nagios 1.0b6 *****
> > 
> > Notification Type: PROBLEM
> > 
> > Service: Antivirus Alerts
> > Host: Antivirus Log Server in Sacramento
> > Address: 10.83.5.23
> > State: WARNING
> > 
> > Date/Time: Sat Nov 16 22:43:13 PST 2002
> > 
> > Additional Info:
> > 
> > (3): Nov 16 22:42:24 msbs30 alertmanager[error] 257 Alert 
> > Manager Event Log
> > Alert:   The file D:
> > 
> > ***********************
> > 
> > The actual message as logged in netsaint's alert 
> > logs:..................
> > 
> > (3): Nov 16 22:42:24 msbs30 alertmanager[error] 257 Alert 
> > Manager Event Log
> > Alert: The file D:\Stata\wstata.exe was infected with 
> > W32/Elkern.cav.c Known
> > Virus. The file was successfully cleaned with Scan engine 
> > version 4.1.60 DAT
> > version 4.0.4233.(from NTWKC2M9J01 IP 10.60.101.137 user 
> > XXXXXXXXXX\itops
> > running VirusScan 4.5.1 SP1 OAS) 
> > 
> > 
> > 
> > 
> > -------------------------------------------------------
> > This sf.net email is sponsored by: To learn the basics of securing 
> > your web site with SSL, click here to get a FREE TRIAL of a Thawte 
> > Server Certificate: http://www.gothawte.com/rd524.html
> > _______________________________________________
> > Nagios-users mailing list
> > Nagios-users at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagios-users
> > 
> 


-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users


-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing 
your web site with SSL, click here to get a FREE TRIAL of a Thawte 
Server Certificate: http://www.gothawte.com/rd524.html




More information about the Users mailing list