Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

If you used a fake username (because your eduroam national operator didn't give you a username to use), you would see a FAILURE message with this script every time.

In this case, change line 10 to this:

    i=$(/sbin/eapol_test -t 5 -c /opt/eduroam_monitor/eapol_config.cfg -N 30:s:$bssid:eduroam -N 32:s:eduroam-monitor -a $ip -s $s |tail -15 |grep 'CTRL-EVENT-EAP-FAILURE EAP authentication failed-E '(EAP authentication failed)|(^SUCCESS$)|(^EAPOL test timed out$)')


You can run this script by either adding a line into a crontab for your monitoring user, or you can copy eduroam_monitor_check.sh into /etc/cron.hourly for an hourly run. Alternatively, if you prefer a more frequent run, add a file into /etc/cron.d/ with this contents:

...