Start a Conversation

Unsolved

This post is more than 5 years old

D

4553

January 29th, 2008 05:00

escalation policy

Has anyone has done this
I want to include in our escalation policies a notification that lets me know when an alarm becomes cleared by email or SMS.

79 Posts

February 1st, 2008 03:00

mail-service.log

I think the
last command needs to be like this
opt/incharge6/SAM/smarts/local/conf/notifier/mail-service.conf in the sm_service command

79 Posts

February 1st, 2008 03:00

it is looking good

root@ojt-smarts-pri # more mail-service.log
InCharge Server INCHARGE-SA has connected.

89 Posts

February 1st, 2008 03:00

it looks to me like the adapter can not find the files ....

cheers

79 Posts

February 1st, 2008 03:00

mail-service.log

I think the
last command needs to be like this
opt/incharge6/SAM/smarts/local/conf/notifier/mail-service

54 Posts

February 1st, 2008 03:00

check your sm_service command:
sm_service show --cmdline mail-service

What file is specified in line --conf="file?"
This file must be found. Do a ls -la "file?"

Then it should work. If you don't want to change the sm_service command, you can also rename mail-service.conf to mail-service. It should work as well.

79 Posts

February 1st, 2008 05:00

ada, nando ,

There was a router that went down and it is now up i could see it in my filtered notification console but i did not recieve any email .
Please what is wrong any log to check

79 Posts

February 1st, 2008 06:00

this is the mail-service file
root@ojt-smarts-pri # more mail-service
# mail-service-notify.conf - Configuration for the mail notification adapter
#
# Copyright (C) 1999-2000 System Management ARTS (SMARTS)
# All Rights Reserved
#
# $Id: mail-notify.conf,v 1.6 2003/06/25 21:08:49 katkin Exp $
#

GNA_Notifier::mail-Notifier
{
#
# Name of the SAM Server from which to receive notifications.
#
serverName = "INCHARGE-SA"

ConfiguredBy = MailConfiguration::Mail-Configuration
{
#
# Name of mail server host.
#
MailServer = "localhost"

#
# Sender identity.
# Must be a valid email address, recognized by the mail server.
#
SenderId = "daemon@localhost"

#
# Comma-separated list of users to whom notifications should
# be sent to.
#
Recipients = "root@localhost"
}

ReadsInputFrom = GA_SubscriberFE::mail-Subscriber-FrontEnd
{
#
# How long, in seconds, an event must remain active before the
# adapter sends a notification.
#
eventSmoothingInterval = 0

#
# Notification threshold; discard notifications with a certainty
# below this value, which should be between 0.0 and 1.0.
#
minimumCertainty = 0.01

#

# Subscriptions.
#
SubscribesTo =
{
#
# Choice subscription.
#
# GA_ChoiceSubscription::mail-All-Problems-Subscriptions
# {
# className = ".*"
# instanceName = ".*"
# eventName = ".*"
# problems = TRUE
# aggregates = FALSE
# symptoms = FALSE
# }

#
# NL subscription.
#
GA_NLSubscription::mail-Default-NL-Subscriptions
{
NLName = "Cleared_state"
}

# #
# # Profile subscription.
# #
# GA_ProfileSubscription::mail-Default-Profile-Subscriptions
# {
# profileName = "default"
# }
}
}

#
# How long, in seconds, to ignore notifications from the server after it
# connects. Use this parameter to avoid receiving the initial flood of
# notifications when the server (re)connects.
#
initialEventDelay = 60
}


#
# Local Variables:
# mode: Makefile
# comment-column: 32
# fill-column: 79
# End:

89 Posts

February 1st, 2008 06:00

ok,

you must configure


# Name of mail server host.
#
MailServer = "localhost"

#
# Sender identity.
# Must be a valid email address, recognized by the mail server.
#
SenderId = "daemon@localhost"

#
# Comma-separated list of users to whom notifications should
# be sent to.
#
Recipients = "root@localhost"
}

MailServer is your company mail server
SenderId is a valid account on your company mail server
Recipients people emails who should receive the notifications, you can use commans in order to separate different accounts
Examples:

MailServer = "mail.acme.com"
SenderId = "dele@acme.com"
Recipients = "dele@acme.com,ada@acme.com,nando@acme.com"

cheeeeeeeeerio

nando

Message was edited by:
nandomad

89 Posts

February 4th, 2008 02:00

but root is your login on the UNIX (smarts) server ... nothing to do

I advise you to check with your email administrator if the following is correct

MailServer = "ojt-smarts-pri.mtn.com.ng"

SenderId = "root@localhost"

Recipients = "bamideok@mtnnigeria.net"

if you are sure that your email server is ojt-smarts-pri.mtn.com.ng just try setting your email account as SenderId too ... In case it works you can request a new account for your smarts later on ...

cheers

89 Posts

February 4th, 2008 02:00

dele,


is SenderId = "root@localhost" a valid email address recognized by the server?

i advised you to use bamideok@mtnnigeria.net as senderid to

cheers

79 Posts

February 4th, 2008 02:00

it is still not working after changing the mail-service file

root@ojt-smarts-pri # more mail-service
# mail-service-notify.conf - Configuration for the mail notification adapter
#
# Copyright (C) 1999-2000 System Management ARTS (SMARTS)
# All Rights Reserved
#
# $Id: mail-notify.conf,v 1.6 2003/06/25 21:08:49 katkin Exp $
#

GNA_Notifier::mail-Notifier
{
#
# Name of the SAM Server from which to receive notifications.
#
serverName = "INCHARGE-SA"

ConfiguredBy = MailConfiguration::Mail-Configuration
{
#
# Name of mail server host.
#
MailServer = "ojt-smarts-pri.mtn.com.ng"

#
# Sender identity.
# Must be a valid email address, recognized by the mail server.
#
SenderId = "root@localhost"

#
# Comma-separated list of users to whom notifications should
# be sent to.
#
Recipients = "bamideok@mtnnigeria.net"
}

ReadsInputFrom = GA_SubscriberFE::mail-Subscriber-FrontEnd
{
#
# How long, in seconds, an event must remain active before the
# adapter sends a notification.
#
eventSmoothingInterval = 0

#
# Notification threshold; discard notifications with a certainty
# below this value, which should be between 0.0 and 1.0.
#
minimumCertainty = 0.01

#
# Subscriptions.
#
SubscribesTo =
{
#
# Choice subscription.
#
# GA_ChoiceSubscription::mail-All-Problems-Subscriptions
# {
# className = ".*"
# instanceName = ".*"
# eventName = ".*"
# problems = TRUE
# aggregates = FALSE
# symptoms = FALSE
# }

#
# NL subscription.
#
GA_NLSubscription::mail-Default-NL-Subscriptions
{
NLName = "Cleared_state"
}

# #
# # Profile subscription.
# #
# GA_ProfileSubscription::mail-Default-Profile-Subscriptions
# {
# profileName = "default"
# }
}
}

#
# How long, in seconds, to ignore notifications from the server after it
# connects. Use this parameter to avoid receiving the initial flood of
# notifications when the server (re)connects.
#
initialEventDelay = 60
}


#
# Local Variables:
# mode: Makefile
# comment-column: 32
# fill-column: 79
# End:

79 Posts

February 4th, 2008 02:00

bamideok@mtnnigeria.net is my outlook account and root@localhost is my account login as root
I am not sure of this

54 Posts

February 5th, 2008 04:00

hi dele,
Is it working now?

79 Posts

February 7th, 2008 00:00

not yet but it is put on the backburner as sendmail on the box has been flooding our mailbox with hundreds of mails . i am not sure if it is what has been configured by myself.
Thanks

89 Posts

February 7th, 2008 03:00

so, your SMARTS box is spamming, he he he, not funny ... i know
it might be the notification list not being to restrictive or maybe you are monitoring a huge or a very unstable network. Or, are you restarting the smarts services veruy often?
No Events found!

Top