Yep, that should do it if you remove the apostrophe. Also, if you aren't familiar with cron, it's worth mentioning that you'll need to ensure you are setting up the crontab job while logged in as root ideally. Here's my crontab:
# NEWLY ADDED SUBNET SCANS
*/30 * * * * /usr/bin/php /var/www/phpipam/functions/scripts/discoveryCheck.php
#
# EXISTING HOSTS HEALTH-CHECK
*/15 * * * * /usr/bin/php /var/www/phpipam/functions/scripts/pingCheck.php
#
# DNS NAME CHECK
*/30 * * * * /usr/bin/php /var/www/phpipam/functions/scripts/dnsCheck.php
#
# RESOLVE IP ADDRESSES THAT ARE FOUND (NOTE: This is a separate process all together from the host up/down check)
*/30 * * * * /usr/bin/php /var/www/phpipam/functions/scripts/resolveIPaddresses.php
#
# BACKUP PHPIPAM IP ADDRESS TABLE, AND PURGE BACKUPS OLDER THAN 10 DAYS
#
@daily /usr/bin/mysqldump -u svc-phpipam -passwordhere phpipam_ecsops > /var/www/phpipam/db/bkp/phpipam_bkp_$(date +"\%y\%m\%d").db
@daily /usr/bin/find /var/www/phpipam/db/bkp/ -ctime +10 -exec rm {} \;
Last edit: Jim Julson 2015-11-10
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Also I am unfamiliar with cron.
Hello,
Can you provide some info to start?
Can you please tell us how your crontab job is setup, as well which user? A copy/paste of the CRON entry would be nice.
Have you tried to manually run the files via the CLI, or even via the GUI to ensure they are picking up the hosts in the first place?
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Hi Jim,
I have a similar case. The crontab does not execute but from CLI it refreshes the db correctly. Running as root. Any idea what the cause might be?
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Remove '
Also try without root, if you edit crontab as root it will run as root.
This is mine from CentOS:
Yep, that should do it if you remove the apostrophe. Also, if you aren't familiar with cron, it's worth mentioning that you'll need to ensure you are setting up the crontab job while logged in as root ideally. Here's my crontab:
Last edit: Jim Julson 2015-11-10
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Miha / Jim,
Extremely helpful please add this to the install docs!
-Matt
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Hello, I seem to be having a similar issue. After reading this bug report, I formatted my cron to-
/
set cronjob:# update host statuses every 15 minute
/60 * * root /usr/bin/php /var/www/phpipam/functions/scripts/pingCheck.php > /dev/null 2>&1
/
Then ran a check-
php -f pingCheck.php
PHP Parse error: syntax error, unexpected '*' in /var/www/phpipam/functions/scripts/pingCheck.php on line 12
I formatted it back, and did not get the error but it does not seem to be updating host availability. Current Cron looks like this:
/
set cronjob:# update host statuses every 15 minutes
/60 * * root /usr/bin/php /var/www/phpipam/functions/scripts/pingCheck.php > /dev/null 2>&1
/
Any help would be appreciated! Thanks again for all the hard work.