1829162 Members
2539 Online
109986 Solutions
New Discussion

Message from UPS

 
yc_2
Regular Advisor

Message from UPS

Hi,

The UPS that come with the K-class and N-class machine display a message on the console when it takes over from the AC power supply.

Is there a configuration file for the UPS so that it can be configured to send an SMTP mail out?


Thanks in advance,
YC
1 REPLY 1
Steven Sim Kok Leong
Honored Contributor

Re: Message from UPS

Hi,

It is flagged on the console due to the way the /etc/syslog.conf has been configured. Check your /etc/syslog.conf for the lines containing /dev/console. Usually, the level alert of all facilities are sent to /dev/console.

Unfortunately, there is no configuration setting available in /etc/syslog.conf for an email to be sent.

However, upsmond usually logs its alerts to both the console and /var/adm/syslog/syslog.log. You can configure it to log elsewhere by modifying /etc/syslog.conf (eg. in /etc/ups.log).

Write a cron script that checks the /etc/ups.log for any new entries (by comparing previous and current logs) and if so, send an email to the respective administrator (or you can configure it to send a different form of alert such as a page).

Hope this helps. Regards.

Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com