Koozali.org: home of the SME Server

Live UPS monitoring, Sysmon?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Live UPS monitoring, Sysmon?
« Reply #15 on: July 17, 2008, 11:15:58 PM »
Bug added. Thanks heaps, Cactus. :grin:
Please post a link for future reference.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline NoTo

  • ****
  • 113
  • +0/-0
Re: Live UPS monitoring, Sysmon?
« Reply #16 on: July 17, 2008, 11:43:08 PM »

Offline okepc

  • ****
  • 118
  • +0/-0
    • http://www.okepc.nl
Re: Live UPS monitoring, Sysmon?
« Reply #17 on: July 18, 2008, 09:47:31 AM »
Cactus

later in tha code...

                else
                    {
                    if( -e '/sbin/apcaccess')
                        {
                        $linev = 'U';
                        $loadpct = 'U';
                        $bcharge = 'U';
                        $timeleft = 'U';
                        $outputv = 'U';
                        $itemp = 'U';
                        $battv = 'U';
                        @apcdata = `/sbin/apcaccess status 2> /dev/null`;
                        if ( $debug eq 'debug' )
                    {
                        foreach (@apcdata )
                            {   
                                print 'apcdata : ' . $_;

Quote
if( -e '/sbin/apcaccess')
--> apcupsd

Nut support and apcupsd support.

Dirk

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Live UPS monitoring, Sysmon?
« Reply #18 on: July 18, 2008, 03:43:11 PM »
Cactus

later in tha code...

                else
                    {
                    if( -e '/sbin/apcaccess')
                        {
                        $linev = 'U';
                        $loadpct = 'U';
                        $bcharge = 'U';
                        $timeleft = 'U';
                        $outputv = 'U';
                        $itemp = 'U';
                        $battv = 'U';
                        @apcdata = `/sbin/apcaccess status 2> /dev/null`;
                        if ( $debug eq 'debug' )
                    {
                        foreach (@apcdata )
                            {   
                                print 'apcdata : ' . $_;
 --> apcupsd

Nut support and apcupsd support.

Dirk
Nope that is not in the default contrib (from smecontribs, I believe) I have installed.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)