Nagios Alerts in DBCS

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
dhineshkumar
Posts: 22
Joined: Wed Jul 22, 2015 8:32 am

Nagios Alerts in DBCS

Post by dhineshkumar »

Hi,

I have installed Nagios core 4.x. Now i have a requirement to send alerts in DBCS format to alert integrator.
Is it possible to send the alerts in DBCS.


Thanks.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios Alerts in DBCS

Post by hsmith »

Can I please get some clarification on what DBCS is supposed to do? I'm not familiar with it. You can change your /usr/local/nagios/etc/objects/commands.cfg to whatever you like.

By default, core uses these commands to send out alerts:

Code: Select all

define command{
        command_name    notify-host-by-email
        command_line    /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$
        }

# 'notify-service-by-email' command definition
define command{
        command_name    notify-service-by-email
        command_line    /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
        }
 
Changing those to whatever you need in your situation seems like it would be the easiest fix.
Former Nagios Employee.
me.
dhineshkumar
Posts: 22
Joined: Wed Jul 22, 2015 8:32 am

Re: Nagios Alerts in DBCS

Post by dhineshkumar »

DBCS format is send out to alert integrator, so it can be converted in to Japanese or Chinese.
I have gone through these, but could not find a way to send the alert in DBCS or Japanese format.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios Alerts in DBCS

Post by hsmith »

Unfortunately, it is something you are most likely going to have to script.
Former Nagios Employee.
me.
Locked