Re: [BackupPC-users] Not getting any mail after the backup
Hi all, I value the time all of you spent on assisting me to resolve my issue. So I am updating this ticket with my findings. Really, I had a custom script in my server which was sending out the notification upon successful completion. The location of the script is mentioned in backuppc configuration as Edit config -- Backup Settings -- User commands - DumpPostUserCmd as /opt/email.sh $xferOK $host $type $client $hostIP $share $XferMethod $sshPath $cmdType where /opt/email.sh is the custom script. I have pasted the contents of email.sh if anyone want to use: #!/bin/bash # script to send simple email # Email To ? EMAIL=your_email_address # Email text/message EMAILMESSAGE=/tmp/emailmessage.txt # Grab the status variables xferOK=$1 host=$2 type=$3 client=$4 hostIP=$5 share=$6 XferMethod=$7 sshPath=$8 cmdType=$9 # Check if backup succeeded or not. if [[ $xferOK == 1 ]]; then STATUS=SUCCESS else STATUS=FAILED fi # email subject SUBJECT=[BackupPC] $STATUS for host: $client # Email text/message echo Filesystem backup for $host $STATUS $EMAILMESSAGE echo $EMAILMESSAGE echo Type: $type $EMAILMESSAGE echo Client: $client $EMAILMESSAGE echo Host: $host $EMAILMESSAGE echo Host IP: $hostIP $EMAILMESSAGE echo Share: $share $EMAILMESSAGE echo XferMethod: $XferMethod $EMAILMESSAGE echo sshPath: $sshPath $EMAILMESSAGE echo cmdType: $cmdType $EMAILMESSAGE # send an email using /bin/mail /bin/mail -s $SUBJECT $EMAIL $EMAILMESSAGE I am not sure whether it a default feature in backuppc On Tue, Dec 3, 2013 at 4:52 AM, Gopu Krishnan gopukrishnan...@gmail.comwrote: When I click on Log File, getting error : Can't open log file /var/run/BackupPC/LOG On Fri, Nov 29, 2013 at 8:05 AM, Gopu Krishnan gopukrishnan...@gmail.comwrote: Hi Holger, But I am not getting the notification even when the backup fails;that is the basic thing we need. Only bogus notification I am getting. :( Thanks, On Fri, Nov 29, 2013 at 12:15 AM, Holger Parplies wb...@parplies.dewrote: Hi, Gopu Krishnan wrote [off-list] on 2013-11-28 09:10:46 +0530 [Re: [BackupPC-users] Not getting any mail after the backup]: [reordering top-posted message] On Thu, Nov 28, 2013 at 8:59 AM, Gopu Krishnan gopukrishnan...@gmail.comwrote: Hello Holdger, I have my 'EMailAdminUserName' set to u...@example.com (including TLD) and 'EMailUserDestDomain' blank. I dont think this is causing an issue as I am having another backuppc with the same configuration using that as reference, I configured this new one. I closely monitored the /var/log/maillog after starting a incr Backup and no mail is being sent from the server. I doubt something is not triggering the mails after the backup finishes for a host. Thanks, Gopu One more thing, I am getting the mail BackupPC administrative attention needed which mentions the directories those are bogus. So issue is the mails are not generating after the backup it has already been pointed out - ***there are no mails after a successful backup***. That's not an issue, that's the concept. Regards, Holger -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Not getting any mail after the backup
Hi, Gopu Krishnan wrote [off-list] on 2013-11-28 09:10:46 +0530 [Re: [BackupPC-users] Not getting any mail after the backup]: [reordering top-posted message] On Thu, Nov 28, 2013 at 8:59 AM, Gopu Krishnan gopukrishnan...@gmail.comwrote: Hello Holdger, I have my 'EMailAdminUserName' set to u...@example.com (including TLD) and 'EMailUserDestDomain' blank. I dont think this is causing an issue as I am having another backuppc with the same configuration using that as reference, I configured this new one. I closely monitored the /var/log/maillog after starting a incr Backup and no mail is being sent from the server. I doubt something is not triggering the mails after the backup finishes for a host. Thanks, Gopu One more thing, I am getting the mail BackupPC administrative attention needed which mentions the directories those are bogus. So issue is the mails are not generating after the backup it has already been pointed out - ***there are no mails after a successful backup***. That's not an issue, that's the concept. Regards, Holger -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Not getting any mail after the backup
I have the following settings : EMailNotifyOldBackupDays : 1 EMailNotifyOldOutlookDays : 5 EMailNotifyMinDays : 2.5 On Wed, Nov 27, 2013 at 1:19 PM, Alexander Moisseev mois...@mezonplus.ruwrote: Check $Conf{EMailNotifyOldBackupDays}. Default is 7 days. $Conf{EMailNotifyOldBackupDays} = 7.0; How old the most recent backup has to be before notifying user. When there have been no backups in this number of days the user is sent an email. If all of you hosts normally should be backed up every day you may set $Conf{EMailNotifyOldBackupDays} = 1.1 -- Alexander -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/ -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Not getting any mail after the backup
On Wed, 27 Nov 2013 12:27:15 +0530 Gopu Krishnan gopukrishnan...@gmail.com wrote: I have deployed a new backuppc in my CentOS 6.4 server and backup is running fine except the mails. I am no longer receiving any mails after the backups, no matter whether it was successful or not. When I test it as below : ./BackupPC_sendEmail -u gopu@mailaddress Sending test email using /usr/sbin/sendmail -t -f backuppc@backup-sever it send the test mail successfully and I got received the test. So issue is with the backup status only. Even I have tried to send a test mail using : mail emai_address as the user backuppc and received fine. Kindly let me know whether I need to check. There is no email after the backup. No news is good news. (Except for when backuppc is stopped altogether.) You only get mails when you are responsible for a host and the last backup is too long ago. There is a script out in the wild sending you a daily summary but for that you can also look at backuppc summary page. And when you get an email every day, the days where there is a problem don't stand out. Have fun, Arnold signature.asc Description: PGP signature -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Not getting any mail after the backup
Hi, Gopu Krishnan wrote on 2013-11-27 12:27:15 +0530 [[BackupPC-users] Not getting any mail after the backup]: Hi, I have deployed a new backuppc in my CentOS 6.4 server and backup is running fine except the mails. I am no longer receiving any mails after the backups, no matter whether it was successful or not. When I test it as below : ./BackupPC_sendEmail -u gopu@mailaddress Sending test email using /usr/sbin/sendmail -t -f backuppc@backup-sever it send the test mail successfully and I got received the test. So issue is with the backup status only. Even I have tried to send a test mail using : mail emai_address as the user backuppc and received fine. Kindly let me know whether I need to check. what is $Conf {EMailUserDestDomain} set to? When you write mail emai_address, do you mean an unqualified address (i.e. without @domain.tld)? You will either need to arrange for unqualified addresses to be forwarded to the right place (which you might already have done) or set up EMailUserDestDomain. Hope that helps. Regards, Holger -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
[BackupPC-users] Not getting any mail after the backup
Hi, I have deployed a new backuppc in my CentOS 6.4 server and backup is running fine except the mails. I am no longer receiving any mails after the backups, no matter whether it was successful or not. When I test it as below : ./BackupPC_sendEmail -u gopu@mailaddress Sending test email using /usr/sbin/sendmail -t -f backuppc@backup-sever it send the test mail successfully and I got received the test. So issue is with the backup status only. Even I have tried to send a test mail using : mail emai_address as the user backuppc and received fine. Kindly let me know whether I need to check. Thanks, Gopu -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] Not getting any mail after the backup
Check $Conf{EMailNotifyOldBackupDays}. Default is 7 days. $Conf{EMailNotifyOldBackupDays} = 7.0; How old the most recent backup has to be before notifying user. When there have been no backups in this number of days the user is sent an email. If all of you hosts normally should be backed up every day you may set $Conf{EMailNotifyOldBackupDays} = 1.1 -- Alexander -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351iu=/4140/ostg.clktrk ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/