Alerting

Alert when service stopped using perf mon

matthewcanty
Communicator

source="Perfmon*" counter="% Processor Time" | chart last(Value) by _time, host

How can I develop this search into an alert, which detects when a host has stopped sending perfmon events.

I would like it to send an email to me stating which host is no longer working.

Tags (2)
0 Karma
1 Solution

cphair
Builder

If you have an index dedicated to perfmon, you might find metadata easier:


| metadata type=hosts index=perfmon | where lastTime<now()-900

This search returns the machines that haven't reported anything in 15 minutes; I'm assuming the actual counter is irrelevant to you. You can adjust the time as required, but I wouldn't go much shorter or you'll get a bunch of false positives during reboots. Once you have the search tuned the way you want it, you can set up the alert as described in http://docs.splunk.com/Documentation/Splunk/latest/User/SchedulingSavedSearches.

View solution in original post

0 Karma

cphair
Builder

If you have an index dedicated to perfmon, you might find metadata easier:


| metadata type=hosts index=perfmon | where lastTime<now()-900

This search returns the machines that haven't reported anything in 15 minutes; I'm assuming the actual counter is irrelevant to you. You can adjust the time as required, but I wouldn't go much shorter or you'll get a bunch of false positives during reboots. Once you have the search tuned the way you want it, you can set up the alert as described in http://docs.splunk.com/Documentation/Splunk/latest/User/SchedulingSavedSearches.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...