sysutils/apcupsd: Add log view (#3176)

This commit is contained in:
nan0 2022-10-28 16:23:27 +02:00 committed by GitHub
parent fe0392a9f3
commit d996dcc134
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 3 deletions

View file

@ -1,5 +1,5 @@
PLUGIN_NAME= apcupsd
PLUGIN_VERSION= 1.0
PLUGIN_VERSION= 1.1
PLUGIN_DEPENDS= apcupsd
PLUGIN_COMMENT= APCUPSD - APC UPS daemon
PLUGIN_MAINTAINER= xbb@xbblabs.com

View file

@ -12,6 +12,10 @@ WWW: http://www.apcupsd.org/
Plugin Changelog
================
1.1
* Add log view
1.0 (initial release)
* Apcupsd service control and configuration

View file

@ -1,8 +1,9 @@
<menu>
<Services>
<Apcupsd cssClass="fa fa-battery-full fa-fw">
<Settings url="/ui/apcupsd" />
<Status url="/ui/apcupsd/status" />
<Settings order="10" url="/ui/apcupsd" />
<Status order="20" url="/ui/apcupsd/status" />
<LogFile VisibleName="Log File" order="30" url="/ui/diagnostics/log/core/apcupsd"/>
</Apcupsd>
</Services>
</menu>

View file

@ -1,2 +1,3 @@
apcupsd:/etc/rc.conf.d/apcupsd
apcupsd.conf:/usr/local/etc/apcupsd/apcupsd.conf
syslog-filter.conf:/usr/local/opnsense/service/templates/OPNsense/Syslog/local/apcupsd.conf

View file

@ -0,0 +1,6 @@
###################################################################
# Local syslog-ng configuration filter definition [apcupsd].
###################################################################
filter f_local_apcupsd {
program("apcupsd");
};