Nagios Alert in Japanese

 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Infrastructure Monitoring Nagios Alert in Japanese
# 1  
Old 11-25-2011
Nagios Alert in Japanese

I have googled for weeks now and all I am getting is the same results from frank4dd's notes on setting up perl script to produce alerts in Japanese. On the contrary I wish to ensure all my alerts come in English as primary language. What I am getting from Japanese-language-Windows-machine added into Nagios are garbled tickets in English and characters. So how do I ensure that all the alerts will be produced in English?

I have Nagios installed on Suse and this is my distro level:

Code:
my-mnag1:/usr/local/nagios/libexec # cat /proc/version
Linux version 2.6.32.12-0.7-default (geeko@buildhost) (gcc version 4.3.4 [gcc-4_3-branch revision 152973] (SUSE Linux) ) #1 SMP 2010-05-20 11:14:20 +0200

whenever i execute the script i get this alert, i am not sure what to do! I am at my wits end trying to get this sorted out right

Code:
my-mnag0:/tmp # ./nagios_send_service_mail.pl
Can't locate Mail/Sendmail.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i586-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl .) at ./nagios_send_service_mail.pl line 29.
BEGIN failed--compilation aborted at ./nagios_send_service_mail.pl line 29.

Code:
my-mnag0:/tmp # more nagios_send_service_mail.pl
#!/usr/bin/perl -w 
#
# First we explicitly switch off the Nagios embbeded Perl Interpreter
# nagios: -epn
# ######################### nagios_send_service_mail.pl ############### #
# Date    : Dec 31 2010                                                 #
# Purpose : Script to send out Nagios service e-mails.\n";              #
# Author  : Frank Migge (support at frank4dd dot com)                   #
# Help    : http://nagios.frank4dd.com/howto                            #
# Licence : GPL - http://www.fsf.org/licenses/gpl.txt                   #
#           Written for and verified with Nagios version 3.2.3          #
# Help    : ./nagios_send_service_mail.pl -h                            #
#                                                                       #
# Version : 1.0 initial release                                         #
# Version : 1.1 add multipart MIME and logo                             #
# Version : 1.2 cleanup mail body generation code                       #
# Version : 1.3 use environment variables for Nagios data handoff       #
# Version : 1.4 add the performance graph image if available            #
#           this has been implemented for Nagiosgraph v0.9.1            #
#                                                                       #
# Depends : perl-Mail-Sendmail                                          #
#           perl-MIME-tools                                             #
#           rrdtool-devel                                               #
#           libnetpbm (if image conversion from PNG to JPG is required) #
#           netpbm (if image conversion from PNG to JPG is required)    #
# ##################################################################### #
#!/usr/bin/perl -w
use Getopt::Long;
use Mail::Sendmail;
use Digest::MD5 qw(md5_hex);
use MIME::Base64;
use RRDs;
use File::Temp;
use strict;
use warnings;

Finally, here's the alert in garbled language:

Code:
Date/Time       : Fri Nov 25 08:33:52 MYT 2011
Hostname        : S99A160
Hostadress      : 10.17.16X.XXX
Hostgroup       : OkiData ODC
Type            : OKIdata JP1


Checkobject     : OS:Windows:Eventlog:ApplicationJP1:Health:-
State           : CRITICAL
Alert-Text      : CRITICAL - (4 errors) - 2011-11-25T09:33:25 SRC:JP1/AJS2 ID:30262 MSG:KAVS0262-E ?W???u?l?b?g(AJSROOT1:/sap888/irreg/schc8_111125:@A1325)???ُ?I?????܂???  ...
Alert-Text(ext.): tag evnt_app CRITICAL


Last edited by pludi; 11-25-2011 at 11:42 AM..
# 2  
Old 12-02-2011
I have a feeling I will be answering my own question soon enough
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Infrastructure Monitoring

Nagios check dependent on second nagios server

We have a dual Nagios server setup. One is setup for internal server monitoring on our LAN, while the second Nagios server is hosted externally and is used for external checks only such as URL and ping checks form the WAN side. I was wondering if there is any way to setup cross dependencies... (1 Reply)
Discussion started by: eugenes18t
1 Replies

2. UNIX for Dummies Questions & Answers

Nagios alert on HTTP

Getting below alert from Nagios server. How to resolve this issue. Notification Type: PROBLEM Service: HTTPHost: localhostAddress: 127.0.0.1State: WARNINGDate/Time: Fri Mar 2 08:45:21 EST 2012 Additional Info:HTTP WARNING: HTTP/1.1 403 Forbidden - 4183 bytes in 0.001 second response time... (1 Reply)
Discussion started by: lramsb4u
1 Replies

3. Red Hat

Nagios is sending "Service Alert: CentOS 5/HTTP is WARNING"

Hello All, I have setup Nagios 3.2.3 on CentOS release 5.7 (Final) with the default config files and added 1 host to it and it is sending "Service Alert: CentOS 5/HTTP is WARNING" frequently, how do you fix this one? what are the additional files that need to be added so that I can monitor the... (0 Replies)
Discussion started by: lovesaikrishna
0 Replies

4. SuSE

Japanese Language in Suse

I had just added Japanese language as my secondary language with yast and I am still not able to view Japanese characters (they appear mangled) I've copied two text files from windows to the SUSE Linux Enterprise Server 10 (i586), one with UTF and the other with ANSI. When viewed with cat and... (4 Replies)
Discussion started by: hedkandi
4 Replies

5. Infrastructure Monitoring

Nagios - alert during business hours

Is there a way for certain nagios alerts to only alert during business hours? (1 Reply)
Discussion started by: streetfighter2
1 Replies

6. UNIX and Linux Applications

Japanese Language support (Montavista)

Hi, I am working on Montavista linux. Japanese language is not getting rendered. I executed fc-list command and found that japanese fonts were not installed. But adding sazanami-gothic.ttf from the web is also not working, fc-list does not display japanese fonts yet. How can i add... (0 Replies)
Discussion started by: teluser123
0 Replies

7. AIX

Japanese in Unix

Hi, I have a PPD(Postscript printer description) file which is in Japanese. I want to use the PPD file in AIX. Is it possible where should i set the Lang. and is it possible to type in Japanese language. Please help. (3 Replies)
Discussion started by: meeraramanathan
3 Replies

8. UNIX for Dummies Questions & Answers

Typing in Japanese language

Hi. I am running Solaris 10,HPUX 11.31 and AIX 6.1. I am trying to get my system to write in Japanese. I can choose the Japanese language for the system to display, but I cannot figure out how to write in Japanese. I have set up my system, and Mozilla (including the menu and web pages) to display... (1 Reply)
Discussion started by: meeraramanathan
1 Replies

9. UNIX for Advanced & Expert Users

Telnet in Japanese

I'm not sure which forum to post this on but ...... I'm currently using Putty as my Telnet tool which is great BUT Only when using European Character sets. IMO the standard Japanes windows 2000 and Japanese Windows XP telnet is rubbish .... Does anyone use a Telnet tool that will... (3 Replies)
Discussion started by: Ralf
3 Replies
Login or Register to Ask a Question