Disable Cron jobs (pingCheck & discoveryCheck) emails
Hi Team,
Cron jobs ( pingCheck & discoveryCheck ) generate email everytime they run and fill up the IPAM server hard drive with emails, is it really necessary for the cron jobs to generate emails every time they run? Also let us know the procedure to disable generation of these email if possible?
Regards
not sure if older files have it, but the newest config.php or config.dist.php has entries for it
/**
* Mail sending and other parameters for pingCheck and DiscoveryCheck scripts
******************************/
# pingCheck.php script parameters
$config['ping_check_send_mail'] = true; // true/false, send or not mail on ping check
$config['ping_check_method'] = false; // false/ping/pear/fping, reset scan method
# discoveryCheck.php script parameters
$config['discovery_check_send_mail'] = true; // true/false, send or not mail on discovery check
$config['discovery_check_method'] = false; // false/ping/pear/fping, reset scan method
# remove_offline_addresses.php script parameters
$config['removed_addresses_send_mail'] = true; // true/false, send or not mail on pomoving inactive addresses
$config['removed_addresses_timelimit'] = 86400 * 7; // int, after how many seconds of inactivity address will be deleted (7 days)
# resolveIPaddresses.php script parameters
$config['resolve_emptyonly'] = true; // if true it will only update the ones without DNS entry!
$config['resolve_verbose'] = true; // verbose response - prints results, cron will email it to you!
I see this is still open.
I tried to change the email variables to false in both the config files and I am still getting these emails. I am currently using v1.3.2 rev001.
Changed accordingly and it still filling my disk. I'm on version 1.4 (git version), Debian GNU/Linux 9.11
* Mail sending and other parameters for pingCheck and DiscoveryCheck scripts
******************************/
# pingCheck.php script parameters
$config['ping_check_send_mail'] = false; // true/false, send or not mail on ping check
$config['ping_check_method'] = false; // false/ping/pear/fping, reset scan method
# discoveryCheck.php script parameters
$config['discovery_check_send_mail'] = false; // true/false, send or not mail on discovery check
$config['discovery_check_method'] = false; // false/ping/pear/fping, reset scan method
# remove_offline_addresses.php script parameters
$config['removed_addresses_send_mail'] = false; // true/false, send or not mail on pomoving inactive addresses
$config['removed_addresses_timelimit'] = 86400 * 7; // int, after how many seconds of inactivity address will be deleted (7 days)
# resolveIPaddresses.php script parameters
$config['resolve_emptyonly'] = true; // if true it will only update the ones without DNS entry!
$config['resolve_verbose'] = true; // verbose response - prints results, cron will email it to you!
I'm running into the same issue, nothing working its like its ignoring the flag
Maybe change email settings to smtp, so that it doesn't stay stored on local servers mailbox?
I'm not sure what are these flags in config.php, but I noticed the e-mails were actually coming from cron daemon (as scripts output to standard output), so I just added >/dev/null to the command lines in crontab.