alert character limitation

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
QS1
Posts: 195
Joined: Tue Sep 21, 2010 3:30 pm

alert character limitation

Post by QS1 »

Nagios XI 2011R1.7
CENTOS 5.7 32 BIT
VMWARE Image
KDE desktop

I have a passive Windows service event log check (xiwizard_windowseventlog_service) in place that alerts me when the Domain Controller adds a new machine onto the network. It works great but much of the information is being cut off in the additional information area in the body of the email (only 255 characters display). Is it possible to allow for more than 255 characters for this check? I've looked around in the Nagios Eventlog and do not see any areas within here to up the setting.. Can you please point me in the right direction or link to more info if possible?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: alert character limitation

Post by scottwilkerson »

This can be changed for email by modifying the following commands:
Configure -> Core Config Manager -> Commands -> xi_host_notification_handler -> Modify
Change

Code: Select all

--hostoutput="$HOSTOUTPUT$"
to

Code: Select all

--hostoutput="$HOSTLONGOUTPUT$"
And in
Configure -> Core Config Manager -> Commands -> xi_host_notification_handler -> Modify
Change

Code: Select all

--serviceoutput="$SERVICEOUTPUT$"
to

Code: Select all

--serviceoutput="$SERVICELONGOUTPUT$"
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
QS1
Posts: 195
Joined: Tue Sep 21, 2010 3:30 pm

Re: alert character limitation

Post by QS1 »

Very good. Thank you for this information. This thread can be marked complete.
Locked