|
@@ -250,3 +250,16 @@ resource "sensu_check" "check_salt-minion_service" {
|
|
|
publish = "true"
|
|
|
runtime_assets = [ "sensu-plugins-process-checks", "sensu-ruby-runtime", ]
|
|
|
}
|
|
|
+
|
|
|
+# Don't detect the Splunk Universal Forwarder running as root.
|
|
|
+# Only look for Splunk Enterprise running as splunk user.
|
|
|
+resource "sensu_check" "check_splunk_service" {
|
|
|
+ name = "splunk_service"
|
|
|
+ command = "check-process.rb -p 'splunkd -p' --user splunk -C 2"
|
|
|
+ namespace = "default"
|
|
|
+ subscriptions = [ "splunk_service", ]
|
|
|
+ handlers = [ "victorops", "logfile", ]
|
|
|
+ interval = 60
|
|
|
+ publish = "true"
|
|
|
+ runtime_assets = [ "sensu-plugins-process-checks", "sensu-ruby-runtime", ]
|
|
|
+}
|