HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Server Management - Systems Insight Manager
cancel
Showing results for 
Search instead for 
Did you mean: 

Email Alerts with Insight Manager

 
scottyp55
Advisor

Email Alerts with Insight Manager

I'm trying to set it up to send email alerts to me when any event happens, but I can't find any options for this. I've read that you go to "options - events - automatic event handling - new task", but I don't even see Options. I've attached a picture of what it looks like when I log into Insight Manager.
19 REPLIES
scottyp55
Advisor

Re: Email Alerts with Insight Manager

Actually I think I just have the system management homepage. Can you set up email alerts with this?
Martin Smoral
Trusted Contributor

Re: Email Alerts with Insight Manager

IM Agents on the Server can send SNMP Traps to a Management Station. If you set up SIM as your Central Management Server, you can set up the email notification there....
scottyp55
Advisor

Re: Email Alerts with Insight Manager

Thanks for your response. I've set up the SIM and I'm monitoring one of our ESX hosts. I disabled a NIC and in the Management Homepage, I see the NIC is in alarm, but nothing in the SIM. Not only am I not getting an email alert, it's not even registering as an event. Am I missing something?

Thanks,
Scott
Martin Smoral
Trusted Contributor

Re: Email Alerts with Insight Manager

first is SNMP Installed and configured on the ESX host? Make sure the SNMP Comm strings are correct and the Trap Dest is set to your SIM Server. Optionally install the HP PSP for ESX. You can also use the Configure/Repair Agents within SIM to update the Agents and SNMP on the ESX host. Once you get the traps working from the ESX host to the SIM server. then you can work on getting the traps to send out a email notification.
scottyp55
Advisor

Re: Email Alerts with Insight Manager

Thanks again.
I don't know if this will conflict, but SNMP is set up on the ESX host, but we are monitoring drive space, ping, etc. with IPmonitor. Is it possible to use SNMP to also go to the SIM? I'm not sure how that would need to be configured.
If I use the configure/repair option will that overwrite my existing SNMP settings?

Thanks,
Scott
Martin Smoral
Trusted Contributor

Re: Email Alerts with Insight Manager

Config/repair will overwrite i believe but all you need to do is add the SIM Server IP as a Trap Destination. You could just edit the snmpd.conf file yourself and add the SIM Server as a Trap Dest (Maybe your IPMonitor station is set as a Trap Dest already) and check what comm strings your using and make sure they are used by SIM.

An example snmpd.conf should look somewhat like the following:

dlmod cmaX /usr/lib/libcmaX.so
rwcommunity [somestring] 127.0.0.1
rocommunity [someotherstring] xxx.xxx.xxx.xxx
trapcommunity public
trapsink xxx.xxx.xxx.xxx
syscontact root@localhost
syslocation [where it is]

Expample for setting Trapsink Destinations:
# Trap destinations
# Multiple trapsinks can be configured;each # must appear on a separate configuration # line
# e.g.
# trapsink mercury.solar.com
# trapsink venus.solar.com
trapsink localhost
scottyp55
Advisor

Re: Email Alerts with Insight Manager

Here's a copy of our snmpd.conf file on the ESX server.

# Following entries were added by HP Insight Management Agents at
# Mon Dec 28 11:21:16 CST 2009
dlmod cmaX /usr/lib64/libcmaX64.so
rwcommunity doorbell 127.0.0.1
rocommunity public localhost
rwcommunity doorbell 10.150.12.251
rocommunity doorbell 10.150.12.251
rwcommunity public 10.150.12.119
rocommunity public 10.150.12.119
trapcommunity doorbell
trapcommunity public
trapsink localhost
syscontact root@localhost (edit snmpd.conf)
syslocation room1 (edit snmpd.conf)


The doorbell community is our IPmonitor.
I just added the entries with 10.150.12.119 for the public community on the SIM server. I restarted snmpd on the ESX host, but I'm still not getting the alarms. Do I need to add something for the trapsink? I'm not even sure what that is?

Thanks,
Scott
Martin Smoral
Trusted Contributor

Re: Email Alerts with Insight Manager

yes add another trapsink entry and point it to your sim server
scottyp55
Advisor

Re: Email Alerts with Insight Manager

Hey that worked! Thanks a lot!

I'm seeing the NIC alarm now when I go to System Properties of the server in SIM. I have an Automatic Event Handling task set up to send me an email for All Events, but I'm noticing that the NIC alarm is not in Events, so I assume that means I won't get the email. Is it possible to set up email notifications for alarms like this?

Thanks again,
Scott
Martin Smoral
Trusted Contributor

Re: Email Alerts with Insight Manager

you can get very refined in the event handling email notification. Start by creating a task to email you for all Critical, Major and Minor Events for all systems.

As for the Nic, Maybe it only sends a trap when the link goes down ? Try connecting the NIC to make a good link and then disconnect it and see if it sends a trap to the SIM and then see if SIM send you a email notification

Also please assign points to the answers that have helped.
scottyp55
Advisor

Re: Email Alerts with Insight Manager

I tried setting up a new task. Below are the settings.

Events:
Event category is Proliant NIC Events
Event category is Proliant NIC Events and subcategory is Ethernet team lost redundancy
Event category is Proliant NIC Events and subcategory is Ethernet team redundancy increased
Event category is Proliant NIC Events and subcategory is Network connectivity restored
Event category is Proliant NIC Events and subcategory is Network interface lost connectivity
severity is Critical
severity is Major
severity is Minor

System collection: All Systems
All Systems


I re-enabled, then disabled the NIC and for some reason I'm still not getting anything. I see that it's in alarm, but for some reason no email is sent. I'll fiddle with it, but can you see any reason why these wouldn't send?

Thanks,
Scott
Martin Smoral
Trusted Contributor

Re: Email Alerts with Insight Manager

Are you getting any email notifications ?
if not, did you try a test email from the Events>Automatic Event Handling>Email Settings Page ? to make sure your email settings are correct and working.
scottyp55
Advisor

Re: Email Alerts with Insight Manager

I did set up a sign in/out alert and I'm receiving those when I log in or out of the SIM server. For some reason I can't get anything for the ESX alerts.
BPE
Esteemed Contributor

Re: Email Alerts with Insight Manager

Try the test trap inside the system management home page https://youresxserver:2381 first to be sure that your esx is able to sen a trap. Don't forget to read the footnote on the SMH -> Setting ->snmp setting page.
scottyp55
Advisor

Re: Email Alerts with Insight Manager

Thanks bpe.
I tried sending a trap, but I'm still not getting an email. I read the notice at the bottom of the SMH page and I believe I have everything set up correctly. I'm getting the emails if a virtual machine on that server goes down, but nothing for monitoring the hardware. Do you know what I could be missing?

Thanks,
Scott
BPE
Esteemed Contributor

Re: Email Alerts with Insight Manager

Hi Scott

Did you check the ESX firewall and the SIM Server firewall?

BPE
BPE
Esteemed Contributor

Re: Email Alerts with Insight Manager

Hi Scott
Check also the /etc/sudoers file if you do not get the test trap from the esx SMH to the SIM server. If you have ESX 4.0 check for a
line

Defaults requiretty

Add the following line below

Defaults:hpsmh !requiretty

and your test trap should work

I guess you have ESX not ESXi is this correct?
scottyp55
Advisor

Re: Email Alerts with Insight Manager

Do you know what ports need to be open from the ESX host?
I added the line - Defaults:hpsmh !requiretty - to the sudoers.esx4 file (the sudoers file did not have defaults requiretty). I tried to send a trap, but still nothing. Below is a copy of my sudoers.esx4 file. And yes, I am running esx4. Thanks.


## Sudoers allows particular users to run various commands as
## the root user, without needing the root password.
##
## Examples are provided at the bottom of the file for collections
## of related commands, which can then be delegated out to particular
## users or groups.
##
## This file must be edited with the 'visudo' command.

## Host Aliases
## Groups of machines. You may prefer to use hostnames (perhap using
## wildcards for entire domains) or IP addresses instead.
# Host_Alias FILESERVERS = fs1, fs2
# Host_Alias MAILSERVERS = smtp, smtp2

## User Aliases
## These aren't often necessary, as you can use regular groups
## (ie, from files, LDAP, NIS, etc) in this file - just use %groupname
## rather than USERALIAS
# User_Alias ADMINS = jsmith, mikem


## Command Aliases
## These are groups of related commands...

## Networking
Cmnd_Alias NETWORKING = /sbin/route, /sbin/ifconfig, /bin/ping, /sbin/dhclient, /usr/bin/net, /sbin/iptables, /usr/bin/rfcomm, /usr/bin/wvdial, /sbin/iwconfig, /sbin/mii-tool

## Installation and management of software
Cmnd_Alias SOFTWARE = /bin/rpm, /usr/bin/up2date, /usr/bin/yum

## Services
Cmnd_Alias SERVICES = /sbin/service, /sbin/chkconfig

## Updating the locate database
Cmnd_Alias LOCATE = /usr/bin/updatedb

## Storage
Cmnd_Alias STORAGE = /sbin/fdisk, /sbin/sfdisk, /sbin/parted, /sbin/partprobe, /bin/mount, /bin/umount

## Delegating permissions
Cmnd_Alias DELEGATING = /usr/sbin/visudo, /bin/chown, /bin/chmod, /bin/chgrp

## Processes
Cmnd_Alias PROCESSES = /bin/nice, /bin/kill, /usr/bin/kill, /usr/bin/killall

## Drivers
Cmnd_Alias DRIVERS = /sbin/modprobe

# Defaults specification

#
# Disable "ssh hostname sudo ", because it will show the password in clear.
# You have to run "ssh -t hostname sudo ".
#
# Defaults requiretty
Defaults:hpsmh !requiretty


Defaults env_reset
Defaults env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE INPUTRC KDEDIR \
LS_COLORS MAIL PS1 PS2 QTDIR USERNAME \
LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION \
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC \
LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS \
_XKB_CHARSET XAUTHORITY"

## Next comes the main part: which users can run what software on
## which machines (the sudoers file can be shared between multiple
## systems).
## Syntax:
##
## user MACHINE=COMMANDS
##
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL

## Allows members of the 'sys' group to run networking, software,
## service management apps and more.
# %sys ALL = NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOCATE, DRIVERS

## Allows people in group wheel to run all commands
# %wheel ALL=(ALL) ALL

## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL

## Allows members of the users group to mount and unmount the
## cdrom as root
# %users ALL=/sbin/mount /mnt/cdrom, /sbin/umount /mnt/cdrom

## Allows members of the users group to shutdown this system
# %users localhost=/sbin/shutdown -h now

BPE
Esteemed Contributor

Re: Email Alerts with Insight Manager

Check your /etc/sudoers for the following lines at the end of the file. Otherwise run /sbin/hpsnmpconfig

# The following entries were added by hp-smh-templates at
# Sun Apr 25 19:17:57 CEST 2010
# WARNING! Any changes between here and the END marker are managed by hp-health
# and maybe automatically removed.
%hpsmh ALL=NOPASSWD:/etc/init.d/snmpd
%hpsmh ALL=NOPASSWD:/usr/bin/snmptrap
# ---------------------- END --------------------