本帖最后由 iiwoai 于 2012-11-1 16:44 编辑
官方文档
http://assets.nagios.com/downloa ... g_Nagios_Mobile.pdf
手机上查看nagios监控状态
安装如下 :
一、系统要安装PHP,版本要求5.1以上
二、下载与安装
1、下载nagiosmobile2、打开nagiosmobile_apache.conf 文件验证htpasswd目录位置,默认目录位置为3、验证Nagios文件位置查询上述文件位置是否存在对应目录,如不符,要相应更改include.inc.php 文件
4、验证nagiosmobile目标目录和Apache配置目录默认nagiosmobile安装目录为/usr/local/nagiosmobile,确定当前系统nagios WEB配置目录是否为/etc/httpd/conf.d,如不是,要相应更改INSTALL.php
5、验证完成后执行INSTALL.php至此,安装完成。完成后可以通过http://IP/nagiosmobile/ 在手机上查看
官方文档
http://assets.nagios.com/downloa ... g_Nagios_Mobile.pdf
手机上查看nagios监控状态
安装如下 :
一、系统要安装PHP,版本要求5.1以上
二、下载与安装
1、下载nagiosmobile
- cd /usr/local/src
- wget http://assets.nagios.com/downloads/exchange/nagiosmobile/nagiosmobile.tar.gz
- tar zxf nagiosmobile.tar.gz
- cd nagiosmobile
- AuthUserFile /usr/local/nagios/etc/htpasswd.users
- //////////////////FILE LOCATIONS: EDIT THESE TO MATCH YOUR NAGIOS INSTALLATION//////
- ////////////////////////////////////////////////////////////////////////////////////
- $STATUS_FILE = "/usr/local/nagios/var/status.dat";
- $COMMAND_FILE = "/usr/local/nagios/var/rw/nagios.cmd";
- $CGI_FILE = "/usr/local/nagios/etc/cgi.cfg";
- $OBJECTS_FILE = "/usr/local/nagios/var/objects.cache";
- $BASE_URL = '/nagiosmobile';
4、验证nagiosmobile目标目录和Apache配置目录
- //target directory where nagiosmobile's web files will be stored
- define('TARGETDIR',"/usr/local/nagiosmobile");
- If your installation is not on a CentOS / RHEL distribution, then you'll also need to update the file location for your apache
- configurations directory.
- //target directory where your current apache configuration directory is located
- define('APACHECONF',"/etc/httpd/conf.d");
- //default for ubuntu/debian installs
- //define('APACHECONF',"/etc/apache2/conf.d");
5、验证完成后执行INSTALL.php
- [root@tiger ~]/usr/local/php/bin/php ./INSTALL.php
- //此处如直接执行./INSTALL.php会报错说找不到/usr/lib/php
- Copying apache configuration file...
- Creating web directory...
- Copying files...
- Cleaning up...
- Restarting apache...
- Stopping httpd: [ OK ]
- Starting httpd: [ OK ]
- Checking for file locations...
- Script Complete!
编辑回复