LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Daily Status/Security/Info script.. email notification? (https://www.linuxquestions.org/questions/linux-software-2/daily-status-security-info-script-email-notification-459834/)

JakeX 06-30-2006 03:23 PM

Daily Status/Security/Info script.. email notification?
 
I've been looking for most of the day today, I'm trying to find something that will basically email me daily (a status email if you will) with info like so:
1. Bandwith used (on a specific interface) for the past 24h
2. Major temp changes (like 2-3 deg changes etc)
3. Users who logged in.. etc..

Or at least give something like:
TEMP: OK
PING: OK

I don't know if I've been searching wrong, but I can't find anything on the topic, like a status script? or daily information log.. etc..
I would just like to get it emailed to me, so I know of any outages etc..

Maybe a remote script too that I can have ping the specific machines. Anyone know of a tutorial for anything like this? I wanna test it on an internal test server I have to play with.

Just something I can cron, I'm very n00b with shell scripts and would love to learn more of how to make my own, maybe this will help (if there are tutorials..)

Thanks.. :scratch:

fedora4002 06-30-2006 09:19 PM

You need to have various logs for each category that you want to monitor. Then, have a utility like logcheck to send you email about interesting entry.

JakeX 07-04-2006 08:13 AM

Hmm so theres no tutorials or scripts anyone has that do this for you already?
I understand what needs to be done, I just don't know how to go about it :rolleyes: :study:

EDIT:
I've tried playing around with logwatch, it does what I want it to do in some aspects, hmmm maybe there are ways to include things like temp & bandwidth.

unSpawn 07-04-2006 09:50 AM

Not really a security question or issue: moved to Linux Software forum for better exposure.

JakeX 07-04-2006 03:00 PM

Hmm ok I guess nobody else knows anything better, so I've configured LogWatch currently on my servers and have it email me daily @ 0:01 hours with the last days stats. Seems to work well, I'll tinker with it some more.
Thanks anyways..

unSpawn 07-04-2006 03:27 PM

I guess nobody else knows anything better
Well, that or people are busy answering other questions or maybe you're causing it yourself saying "I understand what needs to be done, I just don't know how to go about it". I mean, for any of the requested bandwith measuring, lm_sensors, utmp/syslog monitoring you just install the daemons/modules/whatever. Configure them so they syslog or log to a logfile and then configure a logchecking & reporting app just like edora4002 said. Can't see what the actual problem is, then...


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