librenms icon indicating copy to clipboard operation
librenms copied to clipboard

Alerting overhaul - looking for feedback on what needs fixing

Open laf opened this issue 8 years ago • 21 comments

Hi Folks,

We are currently going through doing an overhaul on various aspects of the alerting system. This includes:

  • [x] The rule builder (#8293)
  • [x] Update the device / group mapping for alert rules (#8293)
  • [x] Update the templating system to use something more solid (#8803)
  • [x] Provide the ability to map specific transports to alert rules + provide custom configuration to those transports per alert rule (i.e multiple email addresses for mail transport). (#8660)
  • [x] Allow transports to be configured multiple times / multiple 'destinations' (#8660)
  • [ ] Attach / embed graphs
  • [x] Ability to not send recovery emails (#8430)
  • [x] Record the user who acknowledged an alert + message (#8433)
  • [x] Add support for grouping rules based on MySQL AVG, MIN, MAX, etc (#9094)
  • [ ] Track faults individually (for example each port or bgp session)

If you like the above but have nothing to add, simply use the 👍 against this post. Do not reply with comments.

If you would like to have additional functionality / changes done during this time please reply with the answers to these questions:

  1. What do you require to be added or changed?
  2. Will this benefit other users?
  3. Would you class this as a nice to have or a requirement for an alerting system.
  4. Are you willing to be involved in helping test? If so, please do not commit to this unless you have the time to spare. We will be looking for feedback within days of writing code and cannot wait weeks for responses.

Anything comments not appropriate to this or that don't provide the correct info will be deleted.

laf avatar Mar 09 '18 19:03 laf

Would ultimately like per device the ability to assign specific A) Contacts (multiple) B) Contact Methods (API, Groups, SMS, Email C) Contact /Alert thresholds D) Notification order.

A lot to do but the more granular it is, the more awesomeness this will be.

Lonecrowe avatar Mar 26 '18 13:03 Lonecrowe

Hi laf, here's a bit from a somewhat-new user that needs to replace a prtg setup, so alerting is somehow high on the prio list.

Alerting systems that can be used in production are complex, rule- and hierarchy-dependent, and their functionality and features are absolutely crucial to running a 24/7 NOC team.

So here come my first two wishes...

== Escalation of alerts ==

  1. Escalation procedures (from warning --x triggers/time--> error --y triggers/time--> escalated (using a different contact list), this could escalate through multiple levels

  2. I believe every organisation that wants to use LibreNMS really needs this.

  3. Definitely a requirement.

  4. can't guarantee

== Dependencies and hierarchies ==

  1. Have alerts themselves - with filtering (devices, ports, etc.) - in the alert rules, so that groups can be built, e.g. for redundant links.

  2. If you want to organize your stuff redundantly and/or need to be alerted at certain threshholds of redundant links failing, you need this.

  3. Given the complexity of a potential implementation, this is somewhere between a nth and a requirement.

  4. can't guarantee

===========================================

Why can I not guarantee testing? We have not changed monitoring syetems yet, we're evaluating LibreNMS, and I believe without proper alerting functionality we will not switch, so there's no time being allocated for research in that field. I'd only be able to allot personal time.

Yours, Elmar.

eb0815 avatar Apr 05 '18 12:04 eb0815

@eb0815 we already have device dependencies. Alert escalation could be added to the list, but I wouldn't say every organization needs this. Several transports we support do the escalation themselves (like pagerduty).

murrant avatar Apr 06 '18 03:04 murrant

Good morning Tony,

device dependencies is not the same as alert-upon-alert dependencies; some alerts might be connected to redundant setups, some not, and that also always depends on the devices/locations assigned.

eb0815 avatar Apr 06 '18 07:04 eb0815

device dependencies supports multiple parents, so it covers redundant setups. It doesn't have anything to do with locations, but it does require manual setup right now. The ui hopefully makes it possible to do bulk assignments easily.

murrant avatar Apr 09 '18 06:04 murrant

Re Tony,

let's just say, this is not unproblematic in a production environment - you do need automatic grouping and automatic dependencies here.

2nd topic - what about alert escalation? (This would also be made easier by alert-upon-alert dependencies)

eb0815 avatar Apr 09 '18 08:04 eb0815

Sorry a bit late to the issue, alerting time periods were mentioned a few times in the forum, but I'd like to add it here. Please delete this comment if it is redundant.

What do you require to be added or changed?

I'd like to have the ability to add time periods to the alert rules. In that way sysadmins won't get an alert for a printer in the middle of the night.

Will this benefit other users? Totally. Not every organisation has a 1st level support or a noc. Most of the places I work with has a small team of sys/net admins who bare the load of the infrastructure and it's not fair to alert them for everything 24x7

Would you class this as a nice to have or a requirement for an alerting system. In most cases this is a requirement

Are you willing to be involved in helping test? If so, please do not commit to this unless you have the time to spare. We will be looking for feedback within days of writing code and cannot wait weeks for responses.

Yup, I'll help testing, or if you want I can help the coding effort too.

aldemira avatar Apr 09 '18 19:04 aldemira

@aldemira While maybe not ideal, you can handle that currently with recurring maintenance windows.

network-guy avatar Apr 10 '18 02:04 network-guy

  1. The ability to show different data regarding the alert when viewing the alert in the webgui. Currently if i have a port down and click the expand button it just shows the interface port number. It would be nice to be able to show any data I want, description, vlans, port speed, etc. Like maybe even extend the templates to the actual webgui alerts somehow.

  2. Yes, the defaults are not very user friendly.

  3. I would class it as the default alerting descriptions are not that good.

  4. Yes

djamp42 avatar Apr 16 '18 02:04 djamp42

Hi,

A quick thought:

What do you require to be added or changed?

Linked to closed issue 5973 and closed collective issues 6807.

I currently have a user that is assigned the permission Global Read. It would appear this user has the ability to acknowledge alerts which I do not think should be possible (Or maybe should be available as an option).

Will this benefit other users?

I think so, to be honest it was unexpected by myself that someone assigned a role labelled "read" had the ability to effect changes on the system.

Would you class this as a nice to have or a requirement for an alerting system.

Requirement.

Are you willing to be involved in helping test? If so, please do not commit to this unless you have the time to spare. We will be looking for feedback within days of writing code and cannot wait weeks for responses.

Yes.

LozBrosTacos avatar Apr 17 '18 12:04 LozBrosTacos

Having an option to un-acknowledge an alert if the number of faults associated with the alert increases or the ports/sensors involved changes would be very useful.

Furthermore, making the API transport slightly more flexible would be nice. Specifically, functionality such as allowing custom HTTP headers to be sent in API requests would be useful.

gs-kamnas avatar Apr 25 '18 20:04 gs-kamnas

Escalations to work on timeperiods, for example xx minutes after the node going down. Different configurable escalation contacts would be useful. Hierarchy - Maybe the ability to see and alert to show multiple nodes down and report a list of them with the option of immediate escalation.

If you would like to have additional functionality / changes done during this time please reply with the answers to these questions:

What do you require to be added or changed?

Escalations to work on timeperiods, for example 20 minutes after the node going down, an escalation could be sent. Different configurable escalation contacts would be useful.

Will this benefit other users?

Yes, it will make LibreNMS more scalable - It will remove overhead for users using other monitoring tools to rely on the notifications.

Would you class this as a nice to have or a requirement for an alerting system?

I think this is a fundamental requirement for any monitoring system.

Are you willing to be involved in helping test? If so, please do not commit to this unless you have the time to spare. We will be looking for feedback within days of writing code and cannot wait weeks for responses.

Yes, I'm available.

sarlacpit avatar May 02 '18 12:05 sarlacpit

Pretty minor request, but I think that it would be nice to have.

1. What do you require to be added or changed? Allow usage of acknowledgement notes in alerting templates.

2. Will this benefit other users? Yes.

3. Would you class this as a nice to have or a requirement for an alerting system. Nice to have.

4. Are you willing to be involved in helping test? Can't guarantee.

dsgagi avatar May 11 '18 12:05 dsgagi

@dsgagi #8713

laf avatar May 14 '18 21:05 laf

transport changes are very anticipated! Thanks for your hard work!

fallenfuzz avatar Jun 11 '18 18:06 fallenfuzz

Hi, Can we have recovery alerts available in webui? For example, if a device status is down and show alert, web ui will also show alert when it goes back to UP status. This is important to detect intermittent cases. Lastly we can set the alert lifetime on the device normal state (UP) for example 1 hour before Librenms automatically purge the alert.

amirher avatar Jun 21 '18 01:06 amirher

@amirher You can use the alert log to see that.

murrant avatar Jun 25 '18 14:06 murrant

Hi :)

I'm new to LibreNMS, but in the short time I've been working with it, I find I need the aggregate CPU alert - as per here: https://sindrelindstad.com/projects/librenms-part3/ ... apologies if this is already included now, I couldn't find any references.

Why this? I seem to be getting false positives for CPU utilisation; when I believe what is happening is that one core is hitting the threshold all on it's lonesome. (Windows 2012 subject, SNMP, no traps.)

Thanks! :) You're doing a great job.

(Oh, and +1 to transports per alert)

misterHippo avatar Jun 25 '18 23:06 misterHippo

What do you require to be added or changed?

When host dependencies were merged in here, there was some discussion regarding polling order:

@murrant said:

Do we need to use device dependencies to determine poller order? I could see a situation where we poll a child (especially a distant child) and the parent hasn't been polled yet. Alerts will not behave as expected here.

@laf replied:

It would be helpful but can we easily work that out, how many levels down do you go before saying enough. I.e child device has 4 parents, one of those parents has 4 parents and so on. Also if someone accidentally sets the last parent to have a parent which is the first child.

I had thought that maybe in alerts we do an icmp check against the parents but would that slow it down too much. What about a daemon that ran doing icmp status checks all the time? We may be able to leverage fping for this.

For now I'm not sure this matters, the alerts will be suppressed once the parent host is down. Might just be worth a warning in the doc.

Correct me if I'm wrong, but this means that there may be times when a parent is polled, is determined to be up/fine, but moments later, it dies and when the children are determined to be down, they will all be alerted upon.

This can lead to unnecessary alert spam and should probably be addressed. I cannot find an open issue for this.

Tangentially, it should probably also handle packet loss and high latency dependencies. For instance, if I have high packet loss to a remote switch, I shouldn't get alerts for high packet loss on all devices behind (children of) that switch.

Will this benefit other users?

This will benefit anyone using host dependencies.

Would you class this as a nice to have or a requirement for an alerting system.

I would classify this as a nice-to-have as the person implementing alerting. However, others on my team who consume the alerts consider this a requirement.

Are you willing to be involved in helping test? If so, please do not commit to this unless you have the time to spare. We will be looking for feedback within days of writing code and cannot wait weeks for responses.

I am currently evaluating a replacement monitoring system (since Zabbix doesn't handle this scenario well, either) and haven't tried LibreNMS because of this issue. If this issue gets traction, I would be willing to set up a test environment to test.

toddjames avatar Jul 30 '18 22:07 toddjames

@toddjames #8821 is some experimental work towards that.

murrant avatar Jul 31 '18 13:07 murrant