Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Monitoring for Missing Process

infrastructure
integrations
rfb

#1

I think I know the answer, but, is there an out of the box way to monitor for a process not running? My gut says this would have to be a custom infra integration, but I have to hope :slight_smile:


#2

Hi, @tim.davis: Good news! :slight_smile:

https://docs.newrelic.com/docs/infrastructure/new-relic-infrastructure/infrastructure-alert-conditions/alert-infrastructure-processes


#3

But that only finds the processes that ARE running, right? I want to monitor for a process that is NOT running…


#4

It can tell you if 0 instances of a process are running on the selected hosts.


#5

Well, what do you know. If only I could do it for mutliple parameters and have it track each one individually and call the condition based on which process is at 0. :slight_smile:


#6

How about a NRQL alert condition?

SELECT count(*) 
FROM ProcessSample 
WHERE hostname IN ('host1', 'host2', 'host3') 
  AND processDisplayName IN ('processName1', 'processName2', 'processName3') 
FACET processDisplayName

#7

Actually, I don’t think a NRQL alert condition is necessary. When you create a Process Not Running alert condition in the UI, you can select multiple processes to monitor; the condition will violate if any of the selected processes is above or below the threshold.


#8

I was going to do NewRelic-Infra, but, that is kind of self defeating.


#9

Hey @tim.davis - Nice to see you again! I will confess that I am not sure if your last comment is a joke or serious (I am not up to speed on Infrastructure personally…) Are you all good or is there more to dig into?


#10

So, NR Infra monitoring itself is a bit self defeating. But, Host Not responding is what I think covers it. In the monitoring world, there is the ‘question’…

Who is watching the watcher?

So, it was tongue in cheek. I was actually going to put the NR Infra agent to be monitored, but, monitoring itself was just me not thinking clearly.


#11

Whew. Thanks Tim. I know explaining the joke really takes the fun out of it, but I appreciate it. :wink: