[racktables-users] Re: generate email

  • From: Haider Khalil <haiderkhalil@xxxxxxxxxxx>
  • To: "racktables-users@xxxxxxxxxxxxx" <racktables-users@xxxxxxxxxxxxx>
  • Date: Thu, 17 Apr 2014 09:33:35 -0700

Hey Robert,
I am seeing following functions for log entries. Which one would be for Just 
the Log entry on the device.
function addPortLogEntry ($port_id, $message)
function addIPLogEntry ($ip_bin, $message)
function addIPv4LogEntry ($ip_bin, $message)
function addIPv6LogEntry ($ip_bin, $message)

Thanks,Haider

> Subject: [racktables-users] Re: generate email
> From: robert@xxxxxxxxxx
> To: racktables-users@xxxxxxxxxxxxx
> Date: Thu, 17 Apr 2014 11:41:24 +0200
> 
> Hi, 
> 
> easiest way is create your own function SendLogEntryEmail or something
> like that and call this function from frunctions for adding log entry.
> 
> grep LogEntry inc/database.php, you will see the functions for adding
> logs (Port, IP, etc). You must call your new function from every log
> function you like.
> 
> There are many examples on the internet how to generate email from php.
> 
> 
> On St, 2014-04-16 at 14:36 -0700, Haider Khalil wrote:
> 
> > 
> > I want to generate email whenever a log entry is added having
> > information of the device and rack and logged in user.
> 
> 
> -- 
> Robert Vojčík
> xmpp/mail: robert@xxxxxxxxxx
> 
> 
                                          

Other related posts: