Welcome, Guest
Username: Password: Remember me

TOPIC: cacti plugin thold + Line API Alert

cacti plugin thold + Line API Alert 2 months 3 weeks ago #69782

  • xrcd2
  • xrcd2's Avatar
  • Offline
  • vLAB 討論區管理員
  • Posts: 198
  • Thank you received: 65
  • Karma: 1
cacti plugin thold + Line API Alert

cacti 0.8.x + setting plugin (0.71)

# vi /var/www/html/cacti/plugins/settings/include/functions.php

function send_mail($to, $from, $subject, $message, $filename = '', $headers = '') {
....
.....

// Line API plugin here

return '';

}

## thold (0.5)

# vi /var/www/html/cacti/plugins/thold/thold_functions.php


function thold_mail($to, $from, $subject, $message, $filename, $headers = '') {
....
.....

// Line API plugin here

return '';
}


====================================================================================================

cacti 1.1.x

# vi /var/www/html/cacti/lib/functions.php


function send_mail($to, $from, $subject, $body, $attachments = '', $headers = '', $html = false) {
....
...

// Line API plugin here

return mailer($from, $to, '', '', '', $subject, $body, '', $attachments, $headers, $html);
}


## thold (1.0.x)


# vi /var/www/html/cacti/plugins/thold/thold_functions.php



function thold_mail($to_email, $from_email, $subject, $message, $filename, $headers = '') {
.......
....

// Line API plugin here

return '';
}


參考資訊

如何做出 cacti plugin manager + Line API Alert
xrcd2.blogspot.tw/2017/01/cacti-plugin-m...-line-api-alert.html

使用 Perl 建立 Line API 運用環境
xrcd2.blogspot.tw/2016/12/perl-line-api.html

Line API 使用小筆記
www.vlab.com.tw/index.php/forum/21/15572-line-api

本 LAB 參考資訊

CACTI Alert 增加 LineNotify
penguinbbs.blogspot.tw/2017/08/cacti-alert-linenotify.html



Demo







同步於

xrcd2.blogspot.tw/2017/09/cacti-plugin-t...-line-api-alert.html
================
XRCD2
==============
License Certified:
Juniper JNCIA-ER JNCIA-EX JNCIS-ES JNCIS-ER JNCIS-M
The administrator has disabled public write access.
Moderators: xrcd2
Time to create page: 0.169 seconds
Powered by Kunena Forum