nagios移动接口,手机端快捷访问

回复 收藏
本帖最后由 iiwoai 于 2012-11-1 16:44 编辑

官方文档
http://assets.nagios.com/downloa ... g_Nagios_Mobile.pdf
手机上查看nagios监控状态
1.jpg

安装如下 :
一、系统要安装PHP,版本要求5.1以上
二、下载与安装
1、下载nagiosmobile
  1. cd /usr/local/src
  2. wget http://assets.nagios.com/downloads/exchange/nagiosmobile/nagiosmobile.tar.gz
  3. tar zxf nagiosmobile.tar.gz
  4. cd nagiosmobile
2、打开nagiosmobile_apache.conf 文件验证htpasswd目录位置,默认目录位置为
  1. AuthUserFile /usr/local/nagios/etc/htpasswd.users
3、验证Nagios文件位置
  1. //////////////////FILE LOCATIONS:  EDIT THESE TO MATCH YOUR NAGIOS INSTALLATION//////
  2. ////////////////////////////////////////////////////////////////////////////////////
  3. $STATUS_FILE  = "/usr/local/nagios/var/status.dat";
  4. $COMMAND_FILE = "/usr/local/nagios/var/rw/nagios.cmd";
  5. $CGI_FILE = "/usr/local/nagios/etc/cgi.cfg";
  6. $OBJECTS_FILE = "/usr/local/nagios/var/objects.cache";
  7. $BASE_URL = '/nagiosmobile';
查询上述文件位置是否存在对应目录,如不符,要相应更改include.inc.php 文件
4、验证nagiosmobile目标目录和Apache配置目录
  1. //target directory where nagiosmobile's web files will be stored  
  2. define('TARGETDIR',"/usr/local/nagiosmobile");
  3. If your installation is not on a CentOS / RHEL distribution, then you'll also need to update the file location for your apache
  4. configurations directory.  
  5. //target directory where your current apache configuration directory is located
  6. define('APACHECONF',"/etc/httpd/conf.d");
  7. //default for ubuntu/debian installs
  8. //define('APACHECONF',"/etc/apache2/conf.d");
默认nagiosmobile安装目录为/usr/local/nagiosmobile,确定当前系统nagios WEB配置目录是否为/etc/httpd/conf.d,如不是,要相应更改INSTALL.php

5、验证完成后执行INSTALL.php
  1. [root@tiger ~]/usr/local/php/bin/php ./INSTALL.php  
  2. //此处如直接执行./INSTALL.php会报错说找不到/usr/lib/php
  3. Copying apache configuration file...
  4. Creating web directory...
  5. Copying files...
  6. Cleaning up...
  7. Restarting apache...
  8. Stopping httpd:                                            [  OK  ]
  9. Starting httpd:                                            [  OK  ]
  10. Checking for file locations...
  11. Script Complete!
至此,安装完成。完成后可以通过http://IP/nagiosmobile/  在手机上查看
2012-10-31 14:36 举报
已邀请:

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: