Skip to content

Commit

Permalink
Fixed alert manager scheduler to work on windows (added windows-style…
Browse files Browse the repository at this point in the history
… scripted input; fixes in alert_manager_scheduler.py). This resolves #9
  • Loading branch information
simcen committed Dec 21, 2014
1 parent d41f79e commit 2bd124d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- Added possibility to remove incident settings (right click to table -> remove row)
- Renamed splunk web controllers
- Fixed alert_handler.py to work on windows
- Fixed alert manager scheduler to work on windows (added windows-style scripted input; fixes in alert_manager_scheduler.py)
- **2014-12-19** simon@balz.me
- Added single value trends, improved incident posture dashboard
- **2014-12-19** mika.borner@gmail.com
Expand Down
1 change: 1 addition & 0 deletions bin/alert_manager_scheduler.path
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"$SPLUNK_HOME\bin\splunk.exe" cmd python $SPLUNK_HOME\etc\apps\alert_manager\bin\alert_manager_scheduler.py
4 changes: 2 additions & 2 deletions bin/alert_manager_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
import datetime
import socket

sys.stdout = open('/tmp/stdout', 'w')
sys.stderr = open('/tmp/stderr', 'w')
#sys.stdout = open('/tmp/stdout', 'w')
#sys.stderr = open('/tmp/stderr', 'w')

start = time.time()

Expand Down
7 changes: 7 additions & 0 deletions default/inputs.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,11 @@
interval = 30
passAuth = splunk-system-user
index = main
sourcetype = alert_auto_ttl_resolve


[script://.\bin\alert_manager_scheduler.path]
interval = 30
passAuth = splunk-system-user
index = main
sourcetype = alert_auto_ttl_resolve

0 comments on commit 2bd124d

Please sign in to comment.