Hello, I have set up a notebook as a linux server for my backup in an outbuilding. I wan't to monitor its power status with zabbix. I already have my zabbix server configured to monitor another ups with nut on another server. So I would like a nut driver for my notebook battery, and after some search I can't find one. It seems so obvious to do this :) Is there a technical reason why it doesn't exists yet ? Best regards, Frédéric
On 23.11.20 20:13, Frédéric Leroy wrote:>I have set up a notebook as a linux server for my backup in an outbuilding. > >I wan't to monitor its power status with zabbix. I already have my >zabbix server >configured to monitor another ups with nut on another server. > >So I would like a nut driver for my notebook battery, and after some >search I can't find one. > >It seems so obvious to do this :) Is there a technical reason why it >doesn't exists yet ?monitoring-plugins contain check_ups binary that is able to check status of UPS on remote on local host, running the ups daemon. I don't know if zabbix supports this, but nagios/icinga do. -- Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. It's now safe to throw off your computer.
On 11/23/20 9:13 PM, Frédéric Leroy wrote:> Hello, > > > I have set up a notebook as a linux server for my backup in an > outbuilding. > > I wan't to monitor its power status with zabbix. I already have my > zabbix server > configured to monitor another ups with nut on another server. > > So I would like a nut driver for my notebook battery, and after some > search I can't find one. > > It seems so obvious to do this :) Is there a technical reason why it > doesn't exists yet ?maybe because nut was designed to monitor UPSes, not laptops ' batteries which report their status via completely different mechanisms ?
On Mon, 23 Nov 2020, Frédéric Leroy wrote:> It seems so obvious to do this :) Is there a technical reason why it doesn't > exists yet ?No technical reason, you can write one. However, a notebook battery only supports that notebook, so there is no real reason for another device to need to shutdown when the notebook battery goes low. If your purpose is simply to monitor the status of the notebook-server, then you want a zabbix driver. There is no point in converting to NUT just to use an existing zabbix driver for NUT. I have never used zabbix, but I assume that drivers are as easy to write as with nagios. I'll email you my CLI notebook battery monitor, which you can use to create a nagios/zabbix/NUT driver.