Ignore:
Timestamp:
May 18, 2010, 6:08:12 PM (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Update mailNotify to use new table notify to decide who to spam
with notices on various events. See #2.

  • existing notification calls updated. Still need to move calls into IPDB.pm's subs
  • IPDB.pm and MyIPDB.pm updated with new semiglobal vars for org name, SMTP host, domain. Will add others as needed so MyIPDB.pm can be moved to /etc/ipdb/ (see #17).

Internal allocation types will need to be rearranged somewhat to
make full use of the flexibility possible. See #20.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/newnode.cgi

    r397 r416  
    4545if ($sth->err) {
    4646  print "Error adding node to database: ".$sth->errstr;
    47   mailNotify('noc@example.com',"IPDB node add failure",
     47  mailNotify($dbh, 'f:nno', "IPDB node add failure",
    4848        "$authuser could not add node '$webvar{nodename}','$webvar{type}' to database: ".$sth->errstr);
    4949  syslog "err", "$authuser could not add node '$webvar{nodename}','$webvar{type}' to database: ".$sth->errstr;
Note: See TracChangeset for help on using the changeset viewer.