Email messages getting truncated.
Scott
lists.scott at themagicbox.net
Mon Nov 18 06:15:47 CET 2002
I might suggest trying to enclose your messages in quotes inside your
misccommands.cfg. This will lock all the extra characters with a slight
side effect.. any quotes you have in the messages will screw with you
somewhat.. Its a pay off and unfornutely doesnt always work.. remember
that ' ' or " " work the same way in this instant (If I remember
correctly) So you can figure out which one is nicer to use.
heres an example
# 'host-notify-by-epager' command definition
define command{
command_name host-notify-by-epager
command_line /home/sites/home/nagios/libexec/smsclient.pl
$CONTACTPAGER$ '$HOSTALIAS$ : $NOTIFICATIONTYPE$ : $HOSTSTATE$'
}
I know this is a paging definition but they are both the same overall.
Just take note of the quotes around the actual message.
Hope this helps just a little.
Scott
Jamie said:
> Hi,
>
> I'm guessing, but maybe it doesn't like the \ ?
>
> I had a similar problem with ping additional info not liking the %.....
>
> Hope this helps.
>
> Jamie
>
> ----- Original Message -----
> From: "Pulyankote, Gopinath" <Gopinath_Pulyankote at affymetrix.com>
> To: <nagios-users at lists.sourceforge.net>
> Sent: Monday, November 18, 2002 8:27 AM
> 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