Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
eth-log-alerting
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Server Tools
eth-log-alerting
Commits
9fff9225
There was a problem fetching the pipeline summary.
Commit
9fff9225
authored
7 years ago
by
Erick Hitter
Browse files
Options
Downloads
Patches
Plain Diff
Fixes from testing
parent
42f1e881
No related branches found
No related tags found
1 merge request
!1
Convert to Golang
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+4
-1
4 additions, 1 deletion
README.md
init.sh
+1
-1
1 addition, 1 deletion
init.sh
with
5 additions
and
2 deletions
README.md
+
4
−
1
View file @
9fff9225
...
@@ -11,12 +11,15 @@ Pipe logs to Mattermost (or Slack) webhooks
...
@@ -11,12 +11,15 @@ Pipe logs to Mattermost (or Slack) webhooks
1.
`git clone https://git.ethitter.com/debian/eth-log-alerting.git /usr/local/bin/eth-log-alerting`
1.
`git clone https://git.ethitter.com/debian/eth-log-alerting.git /usr/local/bin/eth-log-alerting`
1.
`cd /usr/local/bin/eth-log-alerting`
1.
`cd /usr/local/bin/eth-log-alerting`
1.
`go get github.com/42wim/matterbridge/matterhook`
1.
`go get github.com/asaskevich/govalidator`
1.
`go get github.com/hpcloud/tail`
1.
`go build eth-log-alerting.go`
1.
`go build eth-log-alerting.go`
1.
`cp /usr/local/bin/eth-log-alerting/init.sh /etc/init.d/eth-log-alerting`
1.
`cp /usr/local/bin/eth-log-alerting/init.sh /etc/init.d/eth-log-alerting`
1.
`chmod +x /etc/init.d/eth-log-alerting`
1.
`chmod +x /etc/init.d/eth-log-alerting`
1.
`cp /usr/local/bin/eth-log-alerting/config-sample.json /usr/local/bin/eth-log-alerting/config.json`
1.
`cp /usr/local/bin/eth-log-alerting/config-sample.json /usr/local/bin/eth-log-alerting/config.json`
1.
Edit
`/usr/local/bin/eth-log-alerting/config.json`
1.
Edit
`/usr/local/bin/eth-log-alerting/config.json`
1.
`cp /usr/local/bin/eth-log-alerting/defaults /etc/default/eth
_
log
_
alerting`
1.
`cp /usr/local/bin/eth-log-alerting/defaults /etc/default/eth
-
log
-
alerting`
1.
Edit
`/etc/default/eth_log_alerting`
1.
Edit
`/etc/default/eth_log_alerting`
1.
`update-rc.d eth-log-alerting defaults`
1.
`update-rc.d eth-log-alerting defaults`
1.
`/etc/init.d/eth-log-alerting start`
1.
`/etc/init.d/eth-log-alerting start`
This diff is collapsed.
Click to expand it.
init.sh
+
1
−
1
View file @
9fff9225
...
@@ -37,7 +37,7 @@ case $1 in
...
@@ -37,7 +37,7 @@ case $1 in
log_daemon_msg
"Starting the process"
"
$NAME
"
log_daemon_msg
"Starting the process"
"
$NAME
"
# Start the daemon with the help of start-stop-daemon
# Start the daemon with the help of start-stop-daemon
# Log the message appropriately
# Log the message appropriately
if
start-stop-daemon
--start
--chuid
$USER
--background
--oknodo
--pidfile
$PIDFILE
--make-pidfile
--exec
$DAEMON
--
"
$DAEMON_ARGS
"
;
then
if
start-stop-daemon
--start
--chuid
$USER
--background
--oknodo
--pidfile
$PIDFILE
--make-pidfile
--exec
$DAEMON
--
$DAEMON_ARGS
;
then
log_end_msg 0
log_end_msg 0
else
else
log_end_msg 1
log_end_msg 1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment