On Aug 1, 2013, at 8:15 AM, Charles Lepple wrote:> On Jul 29, 2013, at 7:12 AM, James HORLEY wrote: > >> There?s a software advised by the constructor that work on linux (http://www.power-software-download.com/viewpower.html), unfortunately it?s heavy (tomcat and java) and I don?t find it as flexible as NUT. > > We have a development branch called "voltronic-driver" which might work better than the blazer* for UPS models which are meant to work with ViewPower. > > Have you rebuilt a .deb package before?Oops, just noticed the new thread where /dan replied: http://thread.gmane.org/gmane.comp.monitoring.nut.user/8023 -- Charles Lepple clepple at gmail
I compile nut with the voltronic-driver on my computer then I've copy the driver "/lib/nut/voltronic_ser" on the server. I can now shutdown the ups using "upscmd -u admin myups shutdown.return". My first question is, is it really ok to only take the driver whithout taking the whole package? I'm using upssched to shutdown server after 15mn on battery, the "shutdown -h +0" isn't enough to shutdown ups. Do I need to use upscmd in order to shutdown ups, or is there another way? Best regards, -----Message d'origine----- From: Charles Lepple Sent: Thursday, August 01, 2013 2:19 AM To: James HORLEY Cc: nut-upsuser at lists.alioth.debian.org Subject: Re: [Nut-upsuser] infosec e4 On Aug 1, 2013, at 8:15 AM, Charles Lepple wrote:> On Jul 29, 2013, at 7:12 AM, James HORLEY wrote: > >> There?s a software advised by the constructor that work on linux >> (http://www.power-software-download.com/viewpower.html), unfortunately it?s >> heavy (tomcat and java) and I don?t find it as flexible as NUT. > > We have a development branch called "voltronic-driver" which might work > better than the blazer* for UPS models which are meant to work with > ViewPower. > > Have you rebuilt a .deb package before?Oops, just noticed the new thread where /dan replied: http://thread.gmane.org/gmane.comp.monitoring.nut.user/8023 -- Charles Lepple clepple at gmail
On Aug 1, 2013, at 8:21 PM, James HORLEY wrote:> I compile nut with the voltronic-driver on my computer then I've copy the driver "/lib/nut/voltronic_ser" on the server. > I can now shutdown the ups using "upscmd -u admin myups shutdown.return".Good to know.> My first question is, is it really ok to only take the driver whithout taking the whole package?It's not a long-term solution. In your case, since it's a new driver, it won't get overwritten. However, as mentioned in another email, the structures that are used to communicate between upsd and the drivers haven't changed much recently, and happen to be the same for the two versions you are using. If you really wanted to, you could recompile the entire .deb package.> I'm using upssched to shutdown server after 15mn on battery, the "shutdown -h +0" isn't enough to shutdown ups.It used to work in stock Debian. I haven't tried it myself recently - I think the only system that was up during our last power outage here was a FreeBSD system.> Do I need to use upscmd in order to shutdown ups, or is there another way?The system shutdown scripts should call "upsdrvctl shutdown" for you. If not, I would file a bug against the distribution package. -- Charles Lepple clepple at gmail