Notifications

IskFileGuardian1 min readPage 4 of 5
On this page 2

Notifications are sent only when a check found changes (or the core check failed). They are enabled separately for the site and the core — the …site_notify and …core_notify settings.

Email

The subject and body are the ifgEmailSubjectTpl and ifgEmailBodyTpl chunks (you can set your own in the settings). Placeholders:

PlaceholderValue
[[+site_name]]Site name
[[+check_time]]Check time
[[+duration]]Check duration
[[+modified_count]], [[+modified_list]]Modified files: count and list
[[+added_count]], [[+added_list]]New files
[[+deleted_count]], [[+deleted_list]]Deleted files
[[+subject_email]]Default subject (in the subject chunk)

Make your own template as a copy of the chunk under another name: the standard chunks are updated with the package.

Telegram

  1. Create a bot with @BotFather and copy the token to iskfileguardian_iskfileguardian.tg.bot_token.
  2. Add the bot to a chat or channel (or message it yourself) and put the chat ID in iskfileguardian_iskfileguardian.tg.chat_id.
  3. Enable iskfileguardian_iskfileguardian.tg.enabled.

The message contains the site, the time and the lists of modified, new and deleted files. Sending errors are written to the component log (the token is masked).