Implement MSN robot alarm in zabbix (1)

Source: Internet
Author: User

ZabbixImplementationMSNRobotsAlarmThe specific steps are as follows!

First download phpmsnclass_1.9z, for: http://code.google.com/p/phpmsnclass/downloads/list

Use the following method to install

1. Create some folders like:

Mkdir/var/spool/msnbot

Mkdir/var/spool/msnbot/log

Mkdir/var/spool/msnbot/spool

2. Change the attribute for spool folder:

Chmod 777/var/spool/msnbot/spool

Chmod o + t/var/spool/msnbot/spool

3. Put msnbot. php, config. php and msn. class. php to/var/spool/msnbot/, and make msnbot. php executable:

Chmod + x/var/spool/msnbot. php

4. change the setting in config. php

5. Use msnbot. sh as your startup script to execute msnbot after system boot.

6. Change processMsg function in msnbot. php to do whatever you want.

7. If you need to send message to someone, just create a file under/var/spool/msnbot/spool, the filename like '*. msn ',

And the format like test. msn, first line is TO: email1, email2, and the other lines is the message.

After create the file, just change the attribute to 0666, then msnbot will try to send it.

NOTICE: file encoding shocould be a UTF-8 if needed ded non-English word.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.