Hello I would like to send the recent events via mail but i cant see any option to send eventlog.message
can anyone help?
i would like also to add any detail on alert template if possible
Thank you for help
Hello I would like to send the recent events via mail but i cant see any option to send eventlog.message
can anyone help?
i would like also to add any detail on alert template if possible
Thank you for help
you would have to configure an alert rule to send a specific message.
Thanks for reply,
Is not possible the messages that appears in “Recent Events” to be sent by mail?
Also for each rule i have to create one alert template for the body as i see.
No, you should use the api to get this data: https://docs.librenms.org/#API/Logs/#list_eventlog
Hello,
How can i use API of Librenms to send logs?
Sorry for not being well informed, can anyone help to have a guide for it?
Thank you
Ernest
You’ll have to write something completely custom to connect to the api, get the data then email it. It’s out of scope for the project though.
OK thanks.
I need then to match every message, and send notification for that.
I have made, but if making the Max alerts: to 1 it doesnt match the alert/recent events.
If making -1 it matches and send forever the alert. I need to match 1 time and send 1 time.
eventlog.message contains ifOperStatus: down -> up
max alerts -1
delay 5min
interval 0
recovery alert none
can anyone help?
Thank you
Can anyone help please?
Thank you
Ernest
post a screen shot of the alert rule
Can you help me please?
Thank you
Why are you trying to use Event log to alert on port up/down?
Just use the from the alerts collection “port up/down” and map to it that device 192.168.2.3
Because it doesnt work, see the event log below please:
2018-04-09 23:55:17 | lo1 | 192.168.2.3 | ifOperStatus: down -> up | System |
---|---|---|---|---|
2018-04-09 23:55:17 | lo1 | 192.168.2.3 | ifAdminStatus: down -> up | S |
![3 | 690x420](upload://5DCLuLWnhJN9OdHjaNP5mRKvpyY.jpg)![3 | 690x420](upload://5DCLuLWnhJN9OdHjaNP5mRKvpyY.jpg) |
Thank you.
How can i insert any detail about which port has gone down?
Please i would like to know how to create alert template that inserts the details of the port gone down/up
You can set that in the alerts template see the docs about alert templates.
https://docs.librenms.org/#Alerting/Templates/#examples
Thank you
What do you have interval set to on the alert rule?
You may have to make one to fit your needs.
The same as template, 5min. But it should not send the alert since the port down has recovered. For this reason i need to use in alert template what it catches.