Svein Skogen (listmail account)
2009-Jul-30 13:41 UTC
[Nut-upsuser] pebcak or something else?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I've set up my ups solution with a dedicated box (laptop with its own powersupply) connected to the ups, and have set up upsmon.conf to use a customized script (SHUTDOWNCMD "/usr/local/upsmonitor-files/shutdown.sh") that shuts down my ESXi boxes properly. However when ups power reaches the shutdown point, it seems that NUT promptly ignores the shutdown script and goes on to shut down the monitoring box instead. The laptop is running FreeBSD 7 stable (RELENG_7) with nut version 2.4.1 What have I done wrong? (in all respects except this, the NUT setup works) //Svein - -- - --------+-------------------+------------------------------- /"\ |Svein Skogen | svein at d80.iso100.no \ / |Solberg ?stli 9 | PGP Key: 0xE5E76831 X |2020 Skedsmokorset | svein at jernhuset.no / \ |Norway | PGP Key: 0xCE96CE13 | | svein at stillbilde.net ascii | | PGP Key: 0x58CD33B6 ribbon |System Admin | svein-listmail at stillbilde.net Campaign|stillbilde.net | PGP Key: 0x22D494A4 +-------------------+------------------------------- |msn messenger: | Mobile Phone: +47 907 03 575 |svein at jernhuset.no | RIPE handle: SS16503-RIPE - --------+-------------------+------------------------------- If you really are in a hurry, mail me at svein-mobile at stillbilde.net This mailbox goes directly to my cellphone and is checked even when I'm not in front of my computer. - ------------------------------------------------------------ Picture Gallery: https://gallery.stillbilde.net/v/svein/ - ------------------------------------------------------------ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkpxowgACgkQODUnwSLUlKTPJQCfS/3/ckS3R8BhVfGhDVVtSQ0t VSMAnRb2ZaA4obhNBk9/7TzfRJT/6Grp =FPz7 -----END PGP SIGNATURE-----
Citeren "Svein Skogen (listmail account)" <svein-listmail op stillbilde.net>:> I've set up my ups solution with a dedicated box (laptop with its own > powersupply) connected to the ups, and have set up upsmon.conf to use a > customized script (SHUTDOWNCMD > "/usr/local/upsmonitor-files/shutdown.sh") that shuts down my ESXi boxes > properly. > > However when ups power reaches the shutdown point, it seems that NUT > promptly ignores the shutdown script and goes on to shut down the > monitoring box instead. The laptop is running FreeBSD 7 stable > (RELENG_7) with nut version 2.4.1 > > What have I done wrong? (in all respects except this, the NUT setup works)Read the section on POWER VALUES in 'man 8 upsmon'. You probably should assign the UPS a 'power value' of 0 (zero) on the laptop that is monitoring it (but isn't powered by it). Best regards, Arjen -- Please keep list traffic on the list