| 147 | === Node down time reporting === |
| 148 | |
| 149 | This is optional. If you want to enable this fonctionnality you need to call it in a crontab, this way: |
| 150 | {{{ |
| 151 | */1 * * * * (cd /var/www/wifidog-auth-prod/wifidog/cron/; /usr/local/bin/php -Cq ./page.php 2>/dev/null) |
| 152 | }}} |
| 153 | |
| 154 | That's calling it every minute. I'm sure we could put the path to the |
| 155 | interpreter (/usr/local/bin/php -Cq) at the top of page.php and make |
| 156 | it executable for better clarity, and also skip the "cd" (to fix |
| 157 | that, we'd need to chdir() into the directory to the script at the top |
| 158 | of the program), but such is life, we use it like that for now :) |
| 159 | |
| 160 | In case you don't know what it does, it'll email the technical |
| 161 | officers after 5,10,15,etc. minutes of downtime. The values at which |
| 162 | it'll email are unfortunately hardcoded in the script. |
| 163 | |