Operating System - HP-UX
1833776 Members
1969 Online
110063 Solutions
New Discussion

fan failed notification via envd.conf

 
YLTan
Frequent Advisor

fan failed notification via envd.conf


I have these set in /etc/envd.conf and restarted the envd daemon using kill -HUP but when i test it by pulling out one of the FAN it didn't send email to me. The server are cfg to be able to send email and test ok for that function. Does anyone know why it doesn't send email when one of the fan is pulled out. The GSP console shows one of the fan fail.

OVERTEMP_CRIT:y
/usr/bin/su - root -c /usr/local/m1/overtemp/svr_overtemp.sh

OVERTEMP_EMERG:y
/usr/sbin/reboot -qh

FANFAIL_CRIT:y
/usr/bin/su - root -c /usr/local/m1/overtemp/svr_fanfail.sh

FANFAIL_EMERG:y
/usr/sbin/reboot -qh
----------

#!/bin/ksh
#
ADMIN_LIST=`cat /usr/local/m1/ADMIN_LIST/admin_email_failfan.lst`
MSG_DIR=/usr/local/m1/overtemp/fanfail.msg

echo " " > $MSG_DIR
echo "The `hostname` server have one of its FAN failed and it is in CRITICAL range." >> $MSG_DIR
echo "" >> $MSG_DIR
echo "One or more chassis fans have failed, but the system has enough redundant fans" >> $MSG_DIR
echo "to allow continued operation while the failed fans are replaced." >> $MSG_DIR
echo "The server will go down when FAN failed level hit EMERGENCY level." >> $MSG_DIR
echo "" >> $MSG_DIR
echo "Please investigate immediately!" >> $MSG_DIR
echo "" >> $MSG_DIR
echo "1. Login to GSP console and check the last entries of the chassis logs." >> $MSG_DIR
echo "2. Use GSP console to check the FAN status." >> $MSG_DIR
echo "3. Check also envd entries in /var/adm/syslog/syslog.log" >> $MSG_DIR

/usr/bin/mailx -s "`hostname` server FAN failed (Critical)" $ADMIN_LIST < $MSG_DIR


tyl
5 REPLIES 5
Hoefnix
Honored Contributor

Re: fan failed notification via envd.conf

Did you also tried to stop and start the envd?
/sbin/init.d/envd stop
/sbin/init.d/envd start

Regards,

Peter
YLTan
Frequent Advisor

Re: fan failed notification via envd.conf


in the envd.conf file it said

# envd reads its configuration information when the envd daemon
# starts, and when it receives a SIGHUP signal to restart itself.
tyl
Hoefnix
Honored Contributor

Re: fan failed notification via envd.conf

I also saw this in the file, but if it's not working i always try a real restart when it can not do any harm.

Do you need to do a su - root in this file. The envd is running as root?


Regards,

Peter
YLTan
Frequent Advisor

Re: fan failed notification via envd.conf


i tried stop/start envd from /sbin but still doesn't work.
tyl
Hoefnix
Honored Contributor

Re: fan failed notification via envd.conf

To exclude all misstakes, you haved tried to run the string in the conf-file manual?

When the manual run sends the mail, then that part is OK.
You can also try to simply replace your string in the conf-file with an "echo fan-failed" >/dev/console to see if the envd is picking this up.

Regards,

Peter