Logscape Support

Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: Alert on lost agent.


Member

Status: Offline
Posts: 8
Date:
Alert on lost agent.
Permalink  
 


Hi Logscape :)

I’m trying to knock up an alert that will fire if an environment doesn't have the right number of agents running, (we run multiple environments from a single logscape server, separating environment using tags). 

Unfortunately, I’m struggling to define a search / alert combo that will alert if the number of agents drops!  I could search for the log entries used within the ‘Agent Joined Left’ search on the agent audit page. (By the way, it would be good if the series on this page was ‘<hostname>_<left/joined>’ as opposed to ‘Host_<hostname>’).  But this would mean the alert would only fire once per lost agent, and what I’d like to do is alert constantly while the agent count is lower than it should be. I’d also like a ‘per-environment’ alert, rather than one alert for all environments – this is preferable as we often have environments going down for maintenance, so a single alert would just be miss-firing so often as to be useless.

 I can easily enough set up a search that counts unique agents, (or rather hosts), e.g. ‘ | _host.countUnique(,agentCount) chart(line-zero)’, which can be run per-environment. What I'm struggling with is setting up an alert if this aggregate drops below a certain threshold.

Can you help please?

 

 

 



__________________


Senior Member

Status: Offline
Posts: 100
Date:
Permalink  
 

Hey Andy,

yes - 2.4 will include a post-aggregate filter allowing you to filter against an aggregate value. i.e. * | _host.countUnique(,HOSTS) HOSTS.lt(10)


Best,
Na

__________________
Anonymous

Date:
Permalink  
 

Thanks. What's the ETA of 2.4?  Once its out I'll give it a go and post results back here.



__________________


Member

Status: Offline
Posts: 6
Date:
Permalink  
 

2.4 is now available

__________________
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.



Create your own FREE Forum
Report Abuse
Powered by ActiveBoard