VPN Logs query filter
VPN Logs query filter
I would like to know how to configure Nagios Log server in order to sent an email alert regarding any VPN Logs ( create a query on Nagios to filter VPN Logs ) , thanks
Re: VPN Logs query filter
This is somewhat contingent on the content of the log entry.
Step 1 would be figuring out what your query should look like. Say I have a really basic VPN log that looks like this:
If I wanted to capture all "VPN CONNECT" events, I could define a query like so from the main dashboard:
Which will return all VPN CONNECT events:
Once I have the query defined and it's returning the data I want to alert on, I can save the query:
Then from the "Alerting" menu, you would create a New Alert using the query you just defined. If you want to be notified on every VPN CONNECT entry, set both the thresholds to 0.
Step 1 would be figuring out what your query should look like. Say I have a really basic VPN log that looks like this:
Code: Select all
VPN CONNECT: Simone (10.10.10.2)
VPN DISCONNECT: Simone (10.10.10.2)
VPN FAILED: Simmons [Invalid Credentials] (56.76.33.12)
VPN FAILED: Simmons [Invalid Credentials] (56.76.33.12)
VPN FAILED: Simmons [Invalid Credentials] (56.76.33.12)
VPN FAILED: Simmons [Invalid Credentials] (56.76.33.12)
VPN FAILED: Simmons [Invalid Credentials] (56.76.33.12)
VPN FAILED: Simmons [Invalid Credentials] (56.76.33.12)
VPN CONNECT: Jerry (10.10.10.3)
VPN CONNECT: Tom (10.10.10.4)
VPN DISCONNECT: Tom (10.10.10.4)
VPN DISCONNECT: Jerry (10.10.10.3)
Which will return all VPN CONNECT events:
Once I have the query defined and it's returning the data I want to alert on, I can save the query:
Then from the "Alerting" menu, you would create a New Alert using the query you just defined. If you want to be notified on every VPN CONNECT entry, set both the thresholds to 0.
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: VPN Logs query filter
Thank you. Following the information that you posted i did the configuration of the query and i received the VPN alerts by email correctly.
Do you know how to configure the Email Template in order to include in the VPN alert email the complete text content of the message generated by the Log
Thanks
Do you know how to configure the Email Template in order to include in the VPN alert email the complete text content of the message generated by the Log
Thanks
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: VPN Logs query filter
%lastalertlog%
Alerting > Email Templates
Click the View Macros button for more information.
Alerting > Email Templates
Click the View Macros button for more information.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.