Solaris下的nagios监控系统

2016-03-31 16:14 17 1 收藏

下面请跟着图老师小编一起来了解下Solaris下的nagios监控系统,精心挑选的内容希望大家喜欢,不要忘记点个赞哦!

【 tulaoshi.com - 服务器 】

Solaris下的nagios监控系统

   Solaris下的nagios监控系统

  文将介绍Nagios在Solaris10操做系统下的安装过程,其中包括,源码的编译、安装;Apache的安装、Nagios CGI的配置;Nagios监控配置等。

  Solaris下的nagios监控系统介绍如下:

Solaris下的nagios监控系统 图老师

  图-nagios

  文将介绍Nagios在Solaris10操做系统下的安装过程,其中包括,源码的编译、安装;Apache的安装、Nagios CGI的配置;Nagios监控配置等。

  环境、资源准备

  gcc-3.4.6-sol10-x86-local.gz

  libiconv-1.11-sol10-x86-local.gz

  libintl-3.4.0-sol10-x86-local.gz

  make-3.81-sol10-x86-local.gz

  openssl-0.9.8h-sol10-x86-local.gz

  gd-2.0.35-sol10-x86-local.gz

  httpd-2.2.4.tar.gz

  nagios-3.0.3.tar.gz

  nagios-plugins-1.4.11.tar.gz

  nrpe-2.12.tar.gz

(本文来源于图老师网站,更多请访问http://www.tulaoshi.com/fuwuqi/)

  1.安装Nagios

  # groupadd nagios # useradd -g nagios -d /usr/local/nagios nagios # gunzip ./nagios-3.0.6.tar.gz # tar xvf ./nagios-3.0.6.tar.gz # cd ./nagios-3.0.6.tar.gz # ./configure --prefix=/usr/local/nagios --with-nagios-user=nagios

  --with-nagios-group=nagios --with-gd-lib=/usr/sfw/lib

  --with-gd-inc=/usr/sfw/include

  # make all # make fullinstall # make install-config

  2.安装openssl

  # gunzip ./openssl-0.9.8j-sol10-sparc-local.gz # pkgadd -d ./openssl-0.9.8j-sol10-sparc-local # export LD_LIBRARY_PATH=/usr/local/ssl/lib:$LD_LIBRARY_PATH

  3.安装Nagios Plugins

  # gunzip ./nagios-plugins-1.4.13.tar.gz # tar xvf ./nagios-plugins-1.4.13.tar # cd nagios-plugins-1.4.13 # ./configure --without-mysql --prefix=/usr/local/nagios --with-openssl=/usr/local/ssl # make # make install # make clean # chown -R nagios:nagios /usr/local/nagios/libexec

  4.配置Apache

  在/etc/apache2/httpd.conf文件追加如下内容

  #setting for nagios

  ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin

  AuthType Basic

  Options ExecCGI

  AllowOverride None

  Order allow,deny

  Allow from all

(本文来源于图老师网站,更多请访问http://www.tulaoshi.com/fuwuqi/)

  AuthName "Nagios Access"

  AuthUserFile /usr/local/nagios/etc/htpasswd

  Require valid-user

  Alias /nagios /usr/local/nagios/share

  AuthType Basic

  Options None

  AllowOverride None

  Order allow,deny

  Allow from all

(本文来源于图老师网站,更多请访问http://www.tulaoshi.com/fuwuqi/)

  AuthName "nagios Access"

  AuthUserFile /usr/local/nagios/etc/htpasswd

  Require valid-user

  5.生成登录用户和验证口令

  # /usr/apache2/bin/htpasswd -c /usr/local/nagios/etc/htpasswd

  此处的user_name为登录Nagios Web应用需要输入的用户名www.britepic.org

  按照提示输入要设置的口令即可

  配置/usr/local/nagios/etc/cgi.cfg,添加用户edison

  ................. .................

  # SYSTEM/PROCESS INFORMATION ACCESS

  # This option is a comma-delimited list of all usernames that

  # have access to viewing the Nagios process information as

  # provided by the Extended Information CGI (extinfo.cgi). By

  # default, *no one* has access to this unless you choose to

  # not use authorization. You may use an asterisk (*) to

  # authorize any user who has authenticated to the web server.

  authorized_for_system_information=nagiosadmin,edison

  # CONFIGURATION INFORMATION ACCESS

  # This option is a comma-delimited list of all usernames that

  # can view ALL configuration information (hosts, commands, etc).

  # By default, users can only view configuration information

  # for the hosts and services they are contacts for. You may use

  # an asterisk (*) to authorize any user who has authenticated

  # to the web server.

  authorized_for_configuration_information=nagiosadmin,edison

  # SYSTEM/PROCESS COMMAND ACCESS

  # This option is a comma-delimited list of all usernames that

  # can issue shutdown and restart commands to Nagios via the

  # command CGI (cmd.cgi). Users in this list can also change

  # the program mode to active or standby. By default, *no one*

  # has access to this unless you choose to not use authorization.

  # You may use an asterisk (*) to authorize any user who has

  # authenticated to the web server.

  authorized_for_system_commands=nagiosadmin,edison

  # GLOBAL HOST/SERVICE VIEW ACCESS

  # These two options are comma-delimited lists of all usernames that

  # can view information for all hosts and services that are being

  # monitored. By default, users can only view information

  # for hosts or services that they are contacts for (unless you

  # you choose to not use authorization). You may use an asterisk (*)

  # to authorize any user who has authenticated to the web server.

  authorized_for_all_services=nagiosadmin,edison

  authorized_for_all_hosts=nagiosadmin,edison

  # GLOBAL HOST/SERVICE COMMAND ACCESS

  # These two options are comma-delimited lists of all usernames that

  # can issue host or service related commands via the command

  # CGI (cmd.cgi) for all hosts and services that are being monitored.

  # By default, users can only issue commands for hosts or services

  # that they are contacts for (unless you you choose to not use

  # authorization). You may use an asterisk (*) to authorize any

  # user who has authenticated to the web server.

  authorized_for_all_service_commands=nagiosadmin,edison

  authorized_for_all_host_commands=nagiosadmin,edison

来源:http://www.tulaoshi.com/n/20160331/2052072.html

延伸阅读
标签: 电脑入门
MAC系统中自带有许多实用工具,这些工具可以帮助我们更方便的使用MAC。活动监视器(Activity Monitor)就是其中的一个,使用活动监视器,我们可以很方便的查看CPU、系统内存、硬盘活动、硬盘使用率、网络、管理进程等。今天图老师小编要教给大家的是如何将Dock 栏图标变成实时系统监视器。 操作步骤: 1.找到并运行活动监视器(Activity...
Win7系统监控技巧   公司的电脑个人隐私性极差,稍不留神就可能让他人窥探到我们的个人隐私。即使知道别人动过自己的电脑想理论但又苦于没有证据这怎么办呢?下面图老师小编就为大家介绍一下Win7系统监控技巧。 在这里,图老师小编以QQ为例,启用这监控功能主要有以下三个步骤: 第一:启用审核策略 1. 在开始搜索栏中...
Solaris学习笔记(2) 作者: BadcoffeeEmail: blog.oliver@gmail.comBlog: http://blog.csdn.net/yayong2005年7月1. 一段shell code的分析最近新发现的一个Solaris的安全漏洞可以使一个非特权用户利用一个很简单的攻击程序得到系统的root权限,为了不让用Solaris系统的人遭暗算,具体细节就不说了。毕竟这篇文章不是教别人攻击别人系统的黑客教程...
本程序通过调用kernel32.dll中的几个API 函数,搜索并列出系统中除本进程外的所有进程的ID、对应的文件说明符、优先级、CPU占有率、线程数、相关进程信息等有关信息,并可中止所选进程。 本程序运行时会在系统托盘区加入图标,不会出现在按Ctrl+Alt+Del出现的任务列表中,也不会在任务栏上显示任务按钮,在不活动或最小化时会自动隐...
标签: 电脑入门
Linux系统的命令有很多,今天图老师小编主要大家介绍下Linux系统监控命令,如果你对监控命令感兴趣或正在学习相关知识的话,不妨来了解下。 找到最耗CPU的java线程 ps命令 命令:ps -mp pid -o THREAD,tid,time 或者 ps -Lfp pid 结果展示: 这个命令的作用,主要是可以获取到对应一个进程下的线程的一些信息。 比如你想分析一下...

经验教程

871

收藏

92
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部