Solaris下的nagios监控系统
发布时间:2023-12-01 13:31:28
Solaris下的nagios监控系统
文将介绍Nagios在Solaris10操做系统下的安装过程,其中包括,源码的编译、安装;Apache的安装、Nagios CGI的配置;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
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
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
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


猜你喜欢
- 小伙伴们都知道,现在,很多家电,手机等智能设备都支持使用智能语音助手了。比如我们可以使用百度地图的智能语音功能进行导航,可以使用各种家电的智
- iPad平台著名的绘图应用Procreate最近刚刚迎来了重大更新,这是Procreate继去年12月份更新之后在2013年迎来的首次更新。
- 当我们使用 iPhone 中的“提醒事项”功能时,可以设置“基于位置的提醒”,也就是说可以在到达某地或离开某地时,让 iPhone 提醒您需
- 昨天,iPhone 14 Plus正式开售,而出乎意料的是,iPhone 14 Plus在首销的当日就全线破发,512G的顶配更是比起售价跌
- 微信理财通上线之初,敲定了4家合作伙伴,分别是华夏、汇添富、易方达和广发。但是今年1月16日仅华夏“财富宝”上线。即将上线的汇添富全额宝是去
- 前提是必须越狱,此教程适合ipad和iphone。好,开始了,首先连接电脑,用ifunbox进入以下目录//System/Library/C
- 微信中很多用户想要知道微信能不能查看到别人来查看过自己的朋友圈,因为QQ是有这个功能的,所以很多用户想要尝试用微信也看一下自己的访客记录,那
- 前一段时间IOS才发布过最新的测试版本,现在又推出了rc版,让很多用户都跟不上体验,但是测试版就是测试好就上线的,所以比较更新频繁,那么最新
- 小编在网上找了下,有网友表示微信不加好友,是不能聊天的,在加好友的那个界面可以发信息,算是一种聊天了。但是也有方法是可以群发信息的:1.登入
- 截止今年4月为止,小米、华为、OPPO、联想、三星都推出了自家的5G手机,之后还会有其他5G手机陆续登场,唯独苹果没有动静。2019正值5G
- 企业微信可以关联已经认证的企业号、服务号、订阅号,据官网介绍方法如下:在认证系统中选择“已是微信认证企业”后,可以选择“已是企业号用户”或“
- 鸿蒙怎么开启个人热点?鸿蒙系统想要共享流量,该怎么开启个人热点呢?下面我们就来卡纳可能鸿蒙系统个人热点设置方法,详细请看下文介绍自己的流量很
- 能用微信账号登陆的都可以分享到微信朋友圈,不能微信账号登陆的,不可以直接分享,但是可以采取截图的方式分享朋友圈
- 玩微信这么久了,你知道微信还有不为人知的隐藏功能吗?其实只要在任意一个聊天窗口中输入一段代码,就可以让你挖掘更强大的信息处理功能。倒底是怎样
- 苹果IOS14.2系统怎么样?iOS 14.2新增了100多个表情符号,加入了八款墙纸,并带来了针对iPhone的其他新改进和错误修复。那么
- 微信升级后变英文怎么办?微信语言设置教程,不少网友反映在微信升级后页面语言变成了英文。外国佬的语言像小编这种?潘坑挚床欢??馊绾问呛茫??耪
- 想要在苹果设备之间传输文稿、或分享照片给同样使用 iPhone 的朋友,使用 iOS 自带的“隔空投送”功能会非常便捷。如果您在使用该功能时
- 在使用iPhoneX的时候,您可能会需要用到录制屏幕视频的功能,那么该如何进行操作呢?请参考如下信息:点击手机中的【设置】图标,并打开【控制
- 如今互联网时代,流量对大家平时生活的重要性不必多说,在一个有着wifi和充电接口的地方才叫一个心里踏实
- 在 iOS 16 及更新系统中,苹果带来了“实时活动”,让用户可以直接从主屏幕上了解信息或事件进展。通过实时活动功能,你可以更轻松地从锁定屏