FreeBSD Bugzilla – Attachment 193311 Details for
Bug 226435
sysutils/snmp_exporter: Update to 0.11.0 and log to syslog
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
sysutils/snmp_exporter: Update to 0.10.0 and add log file
snmp_exporter-0.10.0.diff (text/plain), 2.69 KB, created by
David O'Rourke
on 2018-05-12 00:48:50 UTC
(
hide
)
Description:
sysutils/snmp_exporter: Update to 0.10.0 and add log file
Filename:
MIME Type:
Creator:
David O'Rourke
Created:
2018-05-12 00:48:50 UTC
Size:
2.69 KB
patch
obsolete
>diff --git a/sysutils/snmp_exporter/Makefile b/sysutils/snmp_exporter/Makefile >index 3e4534e69d55..8ed6a1fff076 100644 >--- a/sysutils/snmp_exporter/Makefile >+++ b/sysutils/snmp_exporter/Makefile >@@ -1,7 +1,7 @@ > # $FreeBSD$ > > PORTNAME= snmp_exporter >-PORTVERSION= 0.9.0 >+PORTVERSION= 0.10.0 > DISTVERSIONPREFIX=v > CATEGORIES= sysutils > >diff --git a/sysutils/snmp_exporter/distinfo b/sysutils/snmp_exporter/distinfo >index 2d730e74d296..a8affbf25750 100644 >--- a/sysutils/snmp_exporter/distinfo >+++ b/sysutils/snmp_exporter/distinfo >@@ -1,3 +1,3 @@ >-TIMESTAMP = 1519669975 >-SHA256 (prometheus-snmp_exporter-v0.9.0_GH0.tar.gz) = ac508e8cda680cc46638c68fe71a91df012e3274fb99460fd2866637b51591fd >-SIZE (prometheus-snmp_exporter-v0.9.0_GH0.tar.gz) = 3257207 >+TIMESTAMP = 1526085919 >+SHA256 (prometheus-snmp_exporter-v0.10.0_GH0.tar.gz) = 2db25894a55e60b5eadca1b752ceaa42431d8f43c64a8a249b014055672e3435 >+SIZE (prometheus-snmp_exporter-v0.10.0_GH0.tar.gz) = 3507371 >diff --git a/sysutils/snmp_exporter/files/snmp_exporter.in b/sysutils/snmp_exporter/files/snmp_exporter.in >index be60a65630b8..c002f934521c 100644 >--- a/sysutils/snmp_exporter/files/snmp_exporter.in >+++ b/sysutils/snmp_exporter/files/snmp_exporter.in >@@ -22,6 +22,8 @@ > # snmp_exporter_config_file (string) Set the location of the snmp_exporter config > # configuration file. > # Default is "%%PREFIX%%/etc/snmp_exporter/snmp.yml" >+# snmp_exporter_log_file (string) Set file that snmp_exporter will log to. >+# Default is "/var/log/snmp_exporter.log" > > . /etc/rc.subr > >@@ -36,11 +38,13 @@ load_rc_config $name > : ${snmp_exporter_args:=""} > : ${snmp_exporter_listen_address:=":9116"} > : ${snmp_exporter_config_file:="%%PREFIX%%/etc/snmp_exporter/snmp.yml"} >+: ${snmp_exporter_log_file:="/var/log/snmp_exporter.log"} > > pidfile=/var/run/snmp_exporter.pid > command="/usr/sbin/daemon" > procname="%%PREFIX%%/bin/snmp_exporter" >-command_args="-p ${pidfile} /usr/bin/env ${procname} \ >+command_args="-p ${pidfile} -o ${snmp_exporter_log_file} \ >+ /usr/bin/env ${procname} \ > --web.listen-address=${snmp_exporter_listen_address} \ > --config.file=${snmp_exporter_config_file} \ > ${snmp_exporter_args}" >@@ -52,8 +56,8 @@ snmp_exporter_startprecmd() > if [ ! -e ${pidfile} ]; then > install -o ${snmp_exporter_user} -g ${snmp_exporter_group} /dev/null ${pidfile}; > fi >- if [ ! -d ${snmp_exporter_textfile_dir} ]; then >- install -d -o ${snmp_exporter_user} -g ${snmp_exporter_group} -m 1755 ${snmp_exporter_textfile_dir} >+ if [ ! -f ${snmp_exporter_log_file} ]; then >+ install -o ${snmp_exporter_user} -g ${snmp_exporter_group} -m 640 /dev/null ${snmp_exporter_log_file} > fi > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 226435
:
191290
|
193311
|
194282