Hello, I want to collect the same statistics that NUT can provide via SNMP. But, I don't have the special card, and would want to use the serial port to get the data. How does this work? I have tried, but so far no luck. Any ideas? Thank You.
On 9/12/06, Tim Cary <tdc@yesinc.com> wrote:> I want to collect the same statistics that NUT can provide via SNMP.Actually, in the previous email from ocg.ca, the UPS provides the information via SNMP, and NUT is the consumer. I do not believe there is a way for NUT to publish information to other SNMP monitoring stations.> But, I don't have the special card, and would want to use the serial > port to get the data. How does this work?Find your UPS in this table: http://www.networkupstools.org/compat/stable.html The NUT driver is listed in the right column, and NUT's upsd monitors that driver. You can then gather statistics from upsd with upsc. There are many more examples in the documentation. If you get stuck, please provide some more details of your setup (i.e. UPS brand and model, OS, etc.) -- - Charles Lepple
So what then, is the point of the snmp part? Perhaps a better way to explain is to compare it to a Windows setup with the Powerchute Software. When set up on a Windows box, connected via a serial cable, you can choose to have that APC agent on the Windows box expose all UPS parameters that it collects, to any external snmp collector. For example, if I do a snmpget against the Windows box, and know the correct OID (published by APC's MIB), I get values back on whatever I queried (voltage, battery, etc). I know this is not Windows, and not APC, but I was looking to understand what the SNMP part does. It appears that I can not do with nut the same thing I do with the APC agent on Windows.>>> "Charles Lepple" <clepple@gmail.com> 09/12/06 9:03 PM >>>On 9/12/06, Tim Cary <tdc@yesinc.com> wrote:> I want to collect the same statistics that NUT can provide via SNMP.Actually, in the previous email from ocg.ca, the UPS provides the information via SNMP, and NUT is the consumer. I do not believe there is a way for NUT to publish information to other SNMP monitoring stations.> But, I don't have the special card, and would want to use the serial > port to get the data. How does this work?Find your UPS in this table: http://www.networkupstools.org/compat/stable.html The NUT driver is listed in the right column, and NUT's upsd monitors that driver. You can then gather statistics from upsd with upsc. There are many more examples in the documentation. If you get stuck, please provide some more details of your setup (i.e. UPS brand and model, OS, etc.) -- - Charles Lepple
On 9/13/06, Tim Cary <tdc@yesinc.com> wrote:> So what then, is the point of the snmp part?To monitor an UPS with an SNMP card which is only accessible over the network (and not via a serial cable).> Perhaps a better way to explain is to compare it to a Windows setup with > the Powerchute Software. When set up on a Windows box, connected via a > serial cable, you can choose to have that APC agent on the Windows box > expose all UPS parameters that it collects, to any external snmp > collector. For example, if I do a snmpget against the Windows box, and > know the correct OID (published by APC's MIB), I get values back on > whatever I queried (voltage, battery, etc).Somebody was looking at writing an SNMP agent that would do that, but it has not made its way into the core NUT distribution. Arnaud, do you know the status of the agent? -- - Charles Lepple