#710238 nut-snmp: continously logging "dstate_setflags: base variable (xxxx...) is immutable"

Package:
nut-snmp
Source:
nut
Description:
network UPS tools - SNMP driver
Submitter:
Zdenek Herman
Date:
2015-10-09 12:30:04 UTC
Severity:
minor
#710238#5
Date:
2013-04-04 10:01:28 UTC
From:
To:
Hello
I have installed nut with snmp driver.
After setting "ignorelb" and "override.battery.runtime.low = 600" in ups.conf
my logs are filled:

May 29 11:11:34 host snmp-ups[35762]: dstate_setflags: base variable (battery.ru
ntime.low) is immutable
May 29 11:11:50 host snmp-ups[35762]: dstate_setflags: base variable (battery.ru
ntime.low) is immutable
May 29 11:12:06 host snmp-ups[35762]: dstate_setflags: base variable (battery.ru
ntime.low) is immutable
May 29 11:12:22 host snmp-ups[35762]: dstate_setflags: base variable (battery.ru
ntime.low) is immutable
May 29 11:12:38 host snmp-ups[35762]: dstate_setflags: base variable (battery.ru
ntime.low) is immutable


I think that is sufficient once after start daemon.

Thanks a lot

Zdenek

#710238#10
Date:
2014-05-19 21:07:05 UTC
From:
To:
2013-04-04 12:01 GMT+02:00 Zdenek Herman <zdenek@ille.cz>:

have you provided a community (or v3 credentials) that allows to write in
your MIB?

Arno

#710238#15
Date:
2014-05-19 21:10:53 UTC
From:
To:
2014-05-19 23:07 GMT+02:00 Arnaud Quette <aquette.dev@gmail.com>:

I forgot to add that, after check, only the APC MIB can export this setting.
Others simply report it, but don't allow changes (this may be mixed, if
possible, and with some users help!).
do you know which MIB you're using?

Arno

#710238#20
Date:
2014-05-20 06:31:41 UTC
From:
To:

#710238#25
Date:
2015-10-07 10:12:40 UTC
From:
To:
I'm running a set of dummy-ups repeaters, each with a different
battery.charge.low override.
Each of those emits an "immutable" message every 2 seconds.

This way, not UPS reliability but filesystem capacity becomes a concern.
Is there really no way to silence the driver?

Thanks,
 Steffen

#710238#30
Date:
2015-10-09 12:27:30 UTC
From:
To:
Answering myself:

There's a trick to drop those messages: In /etc/rsyslog.conf, right
before the "message distribution rules", add a single line

:msg, contains, "base variable (battery.charge.low) is immutable" ~

and restart rsyslog. Enjoy the silence.

- S