LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-05-2017, 10:25 AM   #1
uihdff
LQ Newbie
 
Registered: Mar 2017
Posts: 5

Rep: Reputation: Disabled
Question Recommended watch tool


Platform: Asus RT-AC88U running Asuswrt-Rmerlin 380.65

I'm looking for a recommendation on a tool that can ...
  1. Scan log files and send an e-mail based on criteria. For example, errors / warnings, port scans, etc.
  2. Check the network connections on the router and send an e-mail when one of them isn't working.
I thought about using a cron job running grep and sendmail, but if there was one tool that could do all of the above, that would be preferable.

Last edited by uihdff; 03-05-2017 at 10:27 AM.
 
Old 03-05-2017, 12:56 PM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 5,615
Blog Entries: 3

Rep: Reputation: 2871Reputation: 2871Reputation: 2871Reputation: 2871Reputation: 2871Reputation: 2871Reputation: 2871Reputation: 2871Reputation: 2871Reputation: 2871Reputation: 2871
Welcome.

That one tool would be called a shell script. You can have it use grep, awk, ping, traceroute, dig, and other utilities. It's easy enough and you'll get exactly the functions you need and the messages formatted exactly the way you want.
 
Old 03-05-2017, 02:21 PM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
snmp?
 
Old 03-05-2017, 03:40 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,826

Rep: Reputation: 6981Reputation: 6981Reputation: 6981Reputation: 6981Reputation: 6981Reputation: 6981Reputation: 6981Reputation: 6981Reputation: 6981Reputation: 6981Reputation: 6981
Quote:
Originally Posted by uihdff View Post
Platform: Asus RT-AC88U running Asuswrt-Rmerlin 380.65
I'm looking for a recommendation on a tool that can ...
  1. Scan log files and send an e-mail based on criteria. For example, errors / warnings, port scans, etc.
Logwatch
Quote:
  1. Check the network connections on the router and send an e-mail when one of them isn't working.
I thought about using a cron job running grep and sendmail, but if there was one tool that could do all of the above, that would be preferable.
You don't define what you mean by "check the network connections on the router", so it's hard to say. If you mean a basic ping, a shell script is the way to go. If you mean check something more detailed, then SNMP (as Habitual suggested) would be good; scriptable along with snmpwalk too. Otherwise, if you want to check specific routes/traffic/ports/CPU and memory, etc., then who knows?
 
Old 03-05-2017, 05:37 PM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
logwatch! Of course.

I am not worthy.
 
Old 03-06-2017, 06:52 AM   #6
uihdff
LQ Newbie
 
Registered: Mar 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
How would you install Logwatch on a platform like Asuswrt ?

So far I've only installed Entware-NG packages.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Recommended way to watch videos with new Firefox ESR? Gustavo AzDbn Linux - Software 11 12-15-2016 04:01 PM
Recommended tool to remaster live distro? littlebigman Linux - Software 8 03-23-2012 11:50 AM
Recommended CMS for a Web Configuration tool elazarik Linux - Software 1 05-19-2011 06:01 PM
Recommended Diagnostics Tool? mitchell7man Linux - Hardware 1 11-13-2009 02:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration