Results 1 to 5 of 5

Thread: Notification when a power outage

  1. #1
    Join Date
    Nov 2009
    Posts
    518

    Notification when a power outage

    Hi,
    I put up on our servers Nut (Debian Lenny) equipped with APC Smart UPS 1000 through the tutorial which I found on internet. Everything works perfectly, but I wonder if it is possible to be notified when a power outage occurs. In our current configuration, a mail is sent only when the server goes down if extended outage. This would allow us to monitor on a site, the frequency of blackouts. Thank you in advance.
    Last edited by GlassFish; 21-12-2009 at 01:54 PM.

  2. #2
    Join Date
    May 2008
    Posts
    4,085

    Re: Notification when a power outage

    Hi
    I never implemented this solution, but why not use a custom script as proposed
    Code:
    root / upsalert
    Code:
    / bin / sh
    This will send mail to administrator
    Code:
    echo "Power is lost." | Mail-s "ALERT UPS" admin@myserver.com
    Hope this will help you.
    Last edited by Solomon; 21-12-2009 at 01:46 PM.

  3. #3
    Join Date
    Nov 2009
    Posts
    518

    Re: Notification when a power outage

    Hi
    So here is my file upsmon.conf:
    Code:
    MONITOR myups @ localhost 1 admin admin master
    SHUTDOWN "/ sbin / shutdown-h now"
    NOTIFYCMD / sbin / upssched
    NOTIFYFL ONBATT SYSLOG + WALL + EXEC
    NOTIFYFL ONLINE SYSLOG + WALL + EXEC
    Can I add a second directive NOTIFYCMD in the same file?
    Can the two NOTIFYCMD then be taken into account?

  4. #4
    Join Date
    Apr 2008
    Posts
    3,295

    Re: Notification when a power outage

    Hi
    One small blunder for me (but I do not know if this is true for everyone), the driver hidup has obviously been replaced by the driver usbhid-ups, which does not simplify Research why the server does not properly serve. I used the RPM delivered with Mandriva 2008.1. Any advice on this.

  5. #5
    Join Date
    May 2008
    Posts
    2,680

    Re: Notification when a power outage

    Hi
    One small blunder for me (but I do not know if this is true for everyone), the driver hidup has obviously been replaced by the driver usbhid-ups, which does not simplify Research why the server does not properly serve.
    During my setup hidup was not working, I then replaced by usbhid-ups / etc / nut / ups.conf! and now everything works fine. I think even you can try this. If you occur with any more problem, please do post back because I am very much interest in such topics.

Similar Threads

  1. Replies: 5
    Last Post: 07-08-2011, 09:29 AM
  2. UPS battery drains out very fast after a power outage
    By Nellie in forum Hardware Peripherals
    Replies: 4
    Last Post: 28-05-2011, 10:29 PM
  3. Does my MSN Messenger is crashing due to power outage
    By Jamal22 in forum Windows Software
    Replies: 5
    Last Post: 09-04-2011, 10:11 AM
  4. Auto restart after power outage
    By aneeqa in forum Windows Software
    Replies: 9
    Last Post: 18-10-2010, 04:51 PM
  5. XP will not start in normal mode after power outage
    By acarson1 in forum Operating Systems
    Replies: 8
    Last Post: 31-07-2009, 10:39 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,514,279.04082 seconds with 17 queries