LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
[stats]
From: Andrew Pullin <andrew@hotspurbgc.com.au>
To : Darryl Ross <dross@syc.asn.au>
Linux SA <linuxsa@linuxsa.org.au>
Date: Sat, 19 May 2001 04:59:27 +1000
Re: Remote event messaging
Hi All,
I know how to trawl through the logs and grepping etc, what I want is a
quick painless monitoring method that gives me an indication if I NEED to
trawl the logs. i.e.. if I get 3 reboots a day and a dozen ppp0 dropouts
then I need to trawl the logs and see what's up. Also if the messages have a
time stamp on them I can see if there is any clustering of events that may
be external to what is happening, i.e. at exactly 6:40 every evening the
cleaner unplugs the modem to vacuum the floors, or the coffee machine goes
into autoclean mode.
What I am mainly looking for is that I monitor my E-Mail most of the
day, and so if I get a message that the system keeps kicking dialin users
off the system, then I can ssh in and monitor it directly and see what is
going on. At present there doesn't seem to be any indications in the logs
that there is a problem, other than a few manual reboots. I am suspecting
user error, but I want to check the server end out before I mention it to
the client.
Cheers!
Andrew
----- Original Message -----
From: Darryl Ross <dross@syc.asn.au>
To: Andrew Pullin <andrew@hotspurbgc.com.au>; Linux SA
<linuxsa@linuxsa.org.au>
Sent: Friday, May 18, 2001 3:08 PM
Subject: Re: Remote event messaging
> Andrew,
>
> Have a look at the 'last' command. It trawls through your wtmp file (or is
> that the utmp file... one of the two) and gives you a summary of the login
> history of the machine. Using 'grep' makes it easy to cut down to the
> information you want. One possible problem: if your logs are rotated
> monthly, the wtmp log probably will be as well, so it will only show the
> history for the current month.
>
> To view the entire login history in the wtmp file:
>
> `last`
>
> To view who is currently logged in:
>
> `last | grep "still"`
>
> To see when the machine is shut down:
>
> `last | grep "hutdown"`
>
> To see when the machine was rebooted:
>
> `last | grep "eboot"`
>
>
>
> DR
>
>
>
> ----- Original Message -----
> From: Andrew Pullin <andrew@hotspurbgc.com.au>
> To: Linux SA <linuxsa@linuxsa.org.au>
> Sent: Saturday, May 19, 2001 2:11 AM
> Subject: Remote event messaging
>
>
> > Hi All,
> > I am long distance administering a site in Melbourne and apparently
> they
> > are having trouble with instability, but I can't find any evidence.
> > Apparently they have to reboot the system regularly and this mythical
> > instability disappears. What I want to do is monitor how often they
reboot
> > without going to the logs and trawling through them. My thought was to
> > simply automatically generate an e-mail everytime the system is rebooted
> > with a timestamp and a subject saying simply reboot. How would I go
about
> > this? I suppose the easy way is just run a script during the boot
process,
> > but where would I put it? Is it better to write a script in bash or perl
> (I
> > am a bit rusty on both). Are there any other ways?
> >
> > I also want to do the same thing when the ppp link to the world
drops
> > out and autoredials, and I want to lastly monitor when users dial in,
> > sending a connection time and a disconnect time. I would prefer to use a
> > similar method for each event. Your suggestions would be greatly
> > appreciated. TIA
> > Cheers!
> > Andrew.
> >
> >
> > --
> > LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on
irc.linux.org.au
> > To unsubscribe from the LinuxSA list:
> > mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
> >
>
> --
> LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
> To unsubscribe from the LinuxSA list:
> mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
[stats]
Return to the LinuxSA Mailing List Information Page