Le Mercredi 19 F�vrier 2003 18:05, Troy Aden a �crit :
> I must be missing something trivial in how I set this up. I
> have confirmed that I can send mail from my Bering Box with
>               Mail -s "test"  (address) [enter] type message [ctrl-D]. The
> problem is that even though I enter my e-mail address in the
>               Lrp_MAIL_ADMIN field in the master LRP settings, it is not
> sending me my log files.
>               I also entered a list of lrp ping hosts. I deliberately set
> a bogus IP in there that I knew would fail. Insofar as this, it worked
> great!
>               I was sent an e-mail alert indicating a ping failure. So I
> know that mail is set up fine. The whole problem is that it is not sending
> me
>               my log files.
>               Here is what I would like it to e-mail me.
>               I would like to be e-mailed if a particular IP hits my
> firewall more than 10 times.
Troy: 
to mail the output of a given file just type:
cat filename | mail -s "My output file" [EMAIL PROTECTED]
To do that conditional of a given IP hit more than 10 times requires some 
shell programming.
Refers to /var/sh-www/cgi-bin/viewhits for some ideas about sorting

>  I would also want to have the results of an
> "ifconfig" command
>               Sent to me once a week. How do I do this? Can anyone point
> me in the right direction?
ifconfig does not exists in Bering :-)
In /etc/cron.weekly creates an executable file named sendip which will 
contain:

#!/bin/sh
ip addr show | mail -s "My Bering ifconfig output" [EMAIL PROTECTED]

That should do the trick
Jacques
>
>               Thanks in advance.
>
> Troy
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
> The most comprehensive and flexible code editor you can use.
> Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
> www.slickedit.com/sourceforge
> ------------------------------------------------------------------------
> leaf-user mailing list: [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/leaf-user
> SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html


-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to