The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Anyone know a hack to...

Discussion in 'General Discussion' started by jsteel, Jan 17, 2003.

  1. jsteel

    jsteel Well-Known Member

    Joined:
    Jul 4, 2002
    Messages:
    646
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Atlanta, GA
    ...configure WHM to only send certain 'email alerts' to my pager? I'd like to get the service monitor, statscheck and maxclientscheck alerts, but I really don't need the newmailcgi and kernelcheck alerts waking me up in the middle of the night. Getting those last two in email to review the next day is plenty sufficient.

    Jaz
     
  2. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    For kernel alerts - modify /scripts/kernelcheck and change,

    if (/^CONTACT[E|P]+\S+ (.*)/) {

    to

    if (/^CONTACT[E]+\S+ (.*)/) {

    E=Email
    P=Pager

    chattr +i kernelcheck so it doesn't get changed.
     
  3. joana

    joana Well-Known Member

    Joined:
    Sep 29, 2001
    Messages:
    103
    Likes Received:
    0
    Trophy Points:
    16
    did anyone found the hack to newmailcgi ?
     
  4. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    It may not be easy, as most of the scripts that send to mail or pagers and such all use a common contact file iContact.pm Changing that file would affect too many other things.
     
  5. mweb

    mweb Member

    Joined:
    Mar 11, 2003
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Ugh. I've had it with newmailcgi, too. Commented out /usr/local/cpanel/bin/scanfornewmail from /scripts/upcp.

    Maybe I'll run it manually if I really want to know this...
     
Loading...

Share This Page