System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

query temperature status (envd, envd.conf)

SOLVED
Go to solution
Franz P
Advisor

query temperature status (envd, envd.conf)

well I googled and searched this forum about how to monitor hp-ux server's temperature. I found out, there is no command but a daemon monitoring the temperature. How can I get the current status of this monitor? I mean, can I check by command the status is NORMAL or OVERTEMP_CRIT (propably not OVERTEMP_EMERG)?

ok, I may configure envd.conf like this...

OVERTEMP_CRIT:y
date | mailx -s "temperature is CRIT" admins@mydom.tld

but there is (afak) no event definded "back to normal" eg:

NORMAL:y
date | mailx -s "temperature is NORMAL" admins@mydom.tld
7 REPLIES
Franz P
Advisor

Re: query temperature status (envd, envd.conf)

sorry wrong board. can anybody move this to "general hp-ux" or any apropriet
rariasn
Honored Contributor

Re: query temperature status (envd, envd.conf)

He,

man envd

rgs,
Franz P
Advisor

Re: query temperature status (envd, envd.conf)

well, I read 'man envd' before I opened this thread
rariasn
Honored Contributor

Re: query temperature status (envd, envd.conf)

Hi Franz,


Whenever an environmental state changes from one level to another (such as from NORMAL to OVERTEMP_CRIT or from FANFAIL_CRIT to FANFAIL_EMERG), the warning message, if specified, is logged, and the corresponding action is executed once, and only once, per state change.

Regards,

rariasn
Franz P
Advisor

Re: query temperature status (envd, envd.conf)

# /sbin/init.d/envd start
aborted, no event line specified in /etc/envd.conf for line 32 "NORMAL:y"
ERROR CODE 22
rariasn
Honored Contributor
Solution

Re: query temperature status (envd, envd.conf)

Hi Franz,

Sample /etc/envd.conf file:


# to preserve data integrity.

OVERTEMP_CRIT:y
/system/script/envd_overtemp_critical.sh


OVERTEMP_EMERG:y
/usr/sbin/reboot -qh

NORMAL:y
/system/script/envd_overtemp_normal.sh

FANFAIL_CRIT:y

FANFAIL_EMERG:y
/usr/sbin/reboot -qh



# more /system/script/envd_overtemp_normal.sh

/usr/bin/logger -p local3.info -t envd "***** OVERTEMP_NORMAL NORMAL *****"

# /sbin/init.d/envd stop
# /sbin/init.d/envd start

# grep envd /var/adm/syslog/syslog.log

Mar 27 10:31:46 minerva /usr/sbin/envd[2578]: terminated by signal 15
Mar 27 10:31:50 minerva /usr/sbin/envd[16087]: restart, and read the configuration file

rgs,

Rariasn
Franz P
Advisor

Re: query temperature status (envd, envd.conf)

Thanks Rariasn,

I replaced my commands by a single line script, as it is in your sample. Now it works fine.

Thank you very much!

Franz