Operating System - HP-UX
1821805 Members
3234 Online
109637 Solutions
New Discussion юеВ

Re: EMS HW monitors misconfiguration?

 
Mihails Nikitins
Super Advisor

EMS HW monitors misconfiguration?

Hi,

I have
OnlineDiag B.11.11.11.08 HPUX 11.11 Support Tools Bundle, Jun 2003
with default configuration.

After restarts I don't get emails, also there are no events in /var/opt/resmon/event.log. monconfig shows everything is OK.
Daemon is listening on port 49336.
Logs /etc/opt/resmon/log/ are growing.

Output of monconfih is attached.

Points in advance!

BR,
Mihails
KISS - Keep It Simple Stupid
11 REPLIES 11
Bernhard Mueller
Honored Contributor

Re: EMS HW monitors misconfiguration?

Mihails,

I believe this is normal when you upgrade running OnlineDiagnostics (you just get one e-mail to root with subject "Hardware Monitoring by HP" or so.)

So you do not have to wait for the "Restart Mails" you get after reboot.

Use ps -ef | grep stm to see that the processes have been restarted at the time when you did the upgrade.

Regards,
Bernhard
Michael Steele_2
Honored Contributor

Re: EMS HW monitors misconfiguration?

EMS starts with :

/sbin/init.d/diagnostics start/stop

It runs every 15 minutes by default, collects and stops.

You can see its run history in /etc/opt/resmon/log/api.log.

Use 'top' to monitor. Check for 'diagmond'. Also refer to STM and the latest version of STM.

Keeping STM up to date I consider a primary responsibility. Since no reboot is usually needed to install the latest patches its easy to keep STM and EMS up to date.

I think A.42.00 is the latest version of STM.

To find your current version of STM enter STM from the command line and read the version on the first display:

# stm


Here's a EMS tutorial:


http://docs.hp.com/cgi-bin/otsearch/getfile?id=/hpux/onlinedocs/diag/stm/stt_ALLINTRO.htm&searchterms=STM&queryid=20020528-130624
Support Fatherhood - Stop Family Law
Mihails Nikitins
Super Advisor

Re: EMS HW monitors misconfiguration?

Hi,

I've checked my systems according

Document id: KBQA00000184
How do I verify Online Diagnostics and Hardware Monitoring is OK?
http://forums1.itrc.hp.com/service/forums/postanswer.do?threadid=230672&forumId=1

Everything is OK

Anyway, I can't find the reason why Monitor Restart Notifications are not generated (as it was after initial installation).

Command
/sbin/init.d/diagnostics start/stop
causes nasty errors in api.log.
***
The monitor cannot determine the port number of diaglogd to communicate for registration.
***
BTW, I see only rare registration events in api.log.


More comments will be apreciated!

BR,
Mihails



KISS - Keep It Simple Stupid
Michael Steele_2
Honored Contributor

Re: EMS HW monitors misconfiguration?

Regarding "...How do I verify Online Diagnostics and Hardware Monitoring is OK?..."

# swlist -l fileset -a state | grep -i -e diagnostic -e ems -e stm

############################################
Regarding "...I can't find the reason why Monitor Restart Notifications are not generated..."

The restart notification you get is automatic and the result of the daemons being started. So check 'monconfig':

# /etc/opt/resmon/lbin/monconfig

This brings up an interactive menu driven interface. Start with the 'S' option to give you a list of whats currently monitored, you will see some of them are set to EMAIL.

############################################


Also, verify sendmail:

# tail /var/adm/syslog/mail.log

# mailq

# echo 'test' | mailx -s "test subject" you @your_domain.com

Support Fatherhood - Stop Family Law
Mihails Nikitins
Super Advisor

Re: EMS HW monitors misconfiguration?

Hi,

thank you for your input.

# swlist -l fileset -a state | grep -i -e diagnostic -e ems -e stm
# EMS-Config
EMS-Config.EMS-GUI configured
# EMS-Core
EMS-Core.EMS-CORE configured
EMS-Core.EMS-MX configured
# EMS-KRMonitor
EMS-KRMonitor.KRMON-DRV-CMN configured
EMS-KRMonitor.KRMON-DRV-DRV configured
EMS-KRMonitor.KRMON-MAN configured
EMS-KRMonitor.KRMON-RUN configured
# EMS-MIBMonitor
EMS-MIBMonitor.MIBMON-RUN configured
Sup-Tool-Mgr.STM-CATALOGS configured
Sup-Tool-Mgr.STM-MAN configured
Sup-Tool-Mgr.STM-SHLIBS configured
Sup-Tool-Mgr.STM-UI-RUN configured
Sup-Tool-Mgr.STM-UUT-RUN configured
# tail /var/adm/syslog/mail.log

I can generate test alarms. I got e-mail about re-installation of EMS, mail.log is OK, mailq is empty. I see e-mail notifications are configured (see attachment in my first message).

It still looks strange...

BR,
Mihails
KISS - Keep It Simple Stupid
Bhuvaneswari Selvaraj
Valued Contributor

Re: EMS HW monitors misconfiguration?

Hi,

I think that this behaviour is normal.

Whenever STM is upgraded EMS will not send notifications about restarting, I guess this is fixed recently.. Earlier, when stm was upgraded, EMS will continue to send notifications. Sometimes, it so happens that, the monitor being upgraded is decided by EMS as down and the user gets notification for this. This has been recently fixed and hence whenever stm is upgraded the user (root) will not be getting any mails. EMS will not monitor the h/w resources. Once the upgrade is done, the monitoring will continue.. Hence you are not getting the mails..

If u still feel that you system has got a problem, check it by doing the following.
1. set a persistent request for the h/w resource monitored by psmmon and choose all (initial, repeat and return)
2. Kill the monitor.
You will surely get a mail in this case. Only in case of upgrades, you will not get this restart notifications.

Hope this helps....
castro_2
Regular Advisor

Re: EMS HW monitors misconfiguration?


Try /etc/opt/resmon/lbin/send_test_event disk_em

You can check. /var/opt/resmon/log/event.log
Regards
Michael Steele_2
Honored Contributor

Re: EMS HW monitors misconfiguration?

Review the email flags in monconfig:

# /etc/opt/resmon/lbin/monconfig

This brings up an interactive menu driven interface. Start with the 'S' option to give you a list of whats currently monitored, you will see some of them are set to EMAIL.
Support Fatherhood - Stop Family Law
Mihails Nikitins
Super Advisor

Re: EMS HW monitors misconfiguration?

Hi,

Once more. I can generate test event, monconfig shows good settings.

The problem is not in mails. I do not get any records about restarts in event.log. It worked after the first installation. I suspect something may be wrong with applying advanced network security settings.

BR,
Mihails








KISS - Keep It Simple Stupid
Michael Steele_2
Honored Contributor

Re: EMS HW monitors misconfiguration?