Zabbix Handheld Ops

Source: Internet
Author: User

Recently wrote a combination of Zabbix's handheld operation system, can achieve ping, Zabbix monitoring items graphical view, server-specified commands (such as shutdown, restart process, etc.), IPMI name (remote management card shutdown, restart, BMC restart, etc.), Vm-esxi (ESXi Virtualization Management restarts virtual machines, shuts down, etc.).
Mainly by the CI (PHP MVC framework), Jqmobile (JS mobile framework) written. The app has also been completed.
Http://blog.chinaunix.net/uid-12765590-id-4622226.html


Installation method
Install the Zabbix first, this online tutorial a lot, I will not elaborate.
Here's how to deploy handheld operations:
Download code:
Https://github.com/dongfangyiye/zsyw
Download the full code to the root of the Zabbix Web page and remember to include the ZSYW directory.
To modify the configuration:
Modify zsyw/application/config/config.php
Found it
$config [' base_url '] = ' http://IP/zsyw/'
Revision changed to
$config [' base_url '] = '/HTTP//Your own server's IP or domain name/zsyw/'
To modify the database password:
Modify zsyw/application/config/database.php
------------------------------------------------
$db [' Default '] [' hostname '] = ' localhost ';
$db [' Default '] [' username '] = ' root ';
$db [' Default '] [' password '] = ' Your Zabbix database password ';
$db [' Default '] [' database '] = ' Zabbix ';
$db [' Default '] [' dbdriver '] = ' mysql ';
To add a database table to the Zabbix database:
CREATE TABLE ' Cm_history ' (
' history_id ' int (one) not NULL auto_increment,
' Name ' varchar (default NULL),
' Sipp ' varchar (+) default NULL,
' RunCommand ' varchar default NULL,
' Output ' varchar (default NULL),
' Status ' varchar default NULL,
' ipaddress ' varchar default NULL,
' sname ' varchar default NULL,
' Stamp ' varchar (not NULL default ' '),
PRIMARY KEY (' history_id ')
) Engine=myisam auto_increment=676 DEFAULT Charset=utf8;

All right, you're done, now you can achieve 2 functional ping and monitor project graphics (currently written dead for Project post-configuration), server commands, IPMI, Vmesxi need to be configured separately.
The code for the Android phone app:
Https://github.com/dongfangyiye/webview_zsyw

And there's the Zabbix. The default admin is not associated with a machine group, so you need to create a new account and host Group Association. If you have any questions, you can communicate with me.

Landing
650) this.width=650; "id=" aimg_663136 "src=" http://cupic.img168.net/bbsfile/forum/201411/17/ 12434308gh60y6628ecr44.png "class=" Zoom "alt=" 12765590_1415950465v2w5.png "title=" 12765590_1415950465v2w5.png " Width= "351"/>
Ping
650) this.width=650; "id=" aimg_663137 "src=" http://cupic.img168.net/bbsfile/forum/201411/17/ 124343yhawjjn0hjz4h0pa.png "class=" Zoom "alt=" 12765590_1415950500lrq7.png "title=" 12765590_1415950500lrq7.png " Width= "369"/>
Zabbix Monitoring Graphics
650) this.width=650; "id=" aimg_663138 "src=" http://cupic.img168.net/bbsfile/forum/201411/17/ 124343ougi8ox25ig08gte.png "class=" Zoom "alt=" 12765590_1415950525wkcw.png "title=" 12765590_1415950525wkcw.png " Width= "354"/>

This article is from the "Ghostwolf" blog, make sure to keep this source http://ghostwolf.blog.51cto.com/11851154/1827865

Zabbix Palm Ops

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.