SHARE
TWEET

Untitled

a guest Oct 4th, 2017 375 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Oct  1 08:24:05 mon postfix/pickup[11811]: 73262140BA8: uid=1001 from=<support@branchost.com>
  2. Oct  1 08:24:05 mon postfix/cleanup[10125]: 73262140BA8: message-id=<20171001082405.73262140BA8@mon.myd.com>
  3. Oct  1 08:24:05 mon postfix/qmgr[10872]: 73262140BA8: from=<alerts@myd.com>, size=787, nrcpt=1 (queue active)
  4. Oct  1 08:24:05 mon postfix/smtp[10127]: 73262140BA8: to=<$@mon.myd.com>, relay=10.0.0.12[10.0.0.12]:25, delay=0.04, delays=0.02/0/0.01/0.01, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 78A99400E7)
  5. Oct  1 08:24:05 mon postfix/qmgr[10872]: 73262140BA8: removed
  6.    
  7. root@mon:~# grep email /etc/nagiosql/contacts.cfg
  8.         host_notification_commands      notify-host-by-email
  9.         service_notification_commands   notify-service-by-email
  10.         email                           alerts@myd.com
  11.    
  12. command_name                    notify-host-by-email
  13. command_line                    /usr/bin/printf "%b" "***** Nagios *****nnNotification Type: $NOTIFICATIONTYPE$nHost: $HOSTNAME$nState: $HOSTSTATE$nAddress: $HOSTADDRESS$nInfo:$HOSTOUTPUT$nnDate/Time: $LONGDATETIME$n" | /usr/bin/mail -r support@branchost.com -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ $HOSTSTATE$ **" $CONTACTEMAIL$
  14.  
  15. command_name                    notify-service-by-email
  16. command_line                    /usr/bin/printf "%b" "***** Nagios *****nnNotification Type: $NOTIFICATIONTYPE$nnService: $SERVICEDESC$nHost: $HOSTALIAS$nAddress: $HOSTADDRESS$nState: $SERVICESTATE$nnDate/Time: $LONGDATETIME$nnAdditional Info:nn$SERVICEOUTPUT$n" | /usr/bin/mail -r support@branchost.com -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top