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
猜你喜欢
- 快手APP怎么建立群聊?快手APP是款视频分享社交软件,用户们不但能够在APP观看到各种精彩的短视频,还可建立群聊与他人进行分享讨论,那么该
- 微信关怀模式中,新增了一个朗读文字的功能,在其功能界面中,我们就可以开启该功能,朗读微信中的文字消息,所以很多安卓手机用户想要知道微信关怀模
- 华为鸿蒙系统怎么安装虫虫助手app?今天小编就为大家带来了鸿蒙系统安装虫虫助手app详细步骤,感兴趣的朋友一起看看吧虫虫助手app是一款大家
- 抖音怎么注销账号?许多朋友都注册了多个抖音账号,有个“小号”更方便自己浏览一些感兴趣的内容,不同账户也方便运营成不同类型的账号。如果有一天,
- 在 iPhone 14 系列以及其它升级到 iOS 16 的设备中,用户可以使用“画中画”功能,在使用其它应用的同时观看视频或进行 
- iPhone 自带的语音助手 Siri 能帮助我们做很多事,例如在您不方便拿起手机时,可以通过 Siri 快速拨打电话。方法如下:在通过 S
- 在微信中会有一个内置的投资,在其中会有正常的扔骰子的操作,会随机的产生一个数字,因为是随机的性质,很多用户想要知道微信怎么扔骰子扔出6,想要
- 微信中我们通常换手机的时候都会导致我们的微信聊天记录没有,所以很多用户在换手机的时候就想要知道微信怎么恢复聊天记录,因为微信聊天记录中有很多
- 对于很多用户来说,微信中会使用工作和家庭两个账号,这样就可以区分开,所以很多用户都会进行两个账号的切换,很多用户想要知道微信大小号怎么切换,
- 很多小伙伴在日常生活中,喜欢利用抖音记录生活,你会发现抖音一个很好用的功能,那就是抖音视频置顶服务,并不是大家都能获得此权限,必须满足要求。
- 手机了已经是我们日常生活中,会使用得到的设备了,手机上有很多实用的功能,还一些使用率较高的应用,例如手机里面的微信和qq是我们爱使用的,就拿
- 百度地图离线包怎么下载?百度地图是大家出行必备的地图导航软件,可是出门在外有时会遇到没网的情况,如果你没有下载百度地图离线包,那么就没办法查
- 越来越多的人在玩“快手”而且“快手”上面搞笑的好玩的视频有很多,很多人都会跟着拍一样的视频,对于那种刚玩或是第一次拍同款视频的人来说就有点不
- 积分商城是专为微信收款商家所推出的服务,用微信收款可以获得对应的积分,用获得到的积分在积分商城可兑换礼品,那我们怎么找到微信积分商城兑换礼品
- ios14.6beta2降频吗?苹果经过很长时间的测试,已经测试到14.6的第三个测试版本,但是对于第二个测试版本很多网友不约而同的说降频了
- 华为手机是大家最喜欢的国产品牌手机之一,手机无论是硬件还是软件,都在用户的使用中收获一致好评,华为手机功能多样但页面简单,容易操作。平时使用
- 抖音转发视频如何去除抖音号?抖音是如今最火的软件之一,但转发的小视频都有抖音号水印,影响美观,今天就为大家带来抖音转发视频去除抖音号的具体方
- 不少学校老师都选择“腾讯会议”作为“空中课堂”观课之后的学习指导工具,流畅的会议体验得到了大家的肯定,所以一堆会议号就被松动啊只是不少家长却
- 为了保护 iPhone 中的数据不丢失,平时除了可以使用爱思助手、 iTunes 进行备份之外,还可以考虑在 iPhone 启用 iClou
- 快手作为时下流行的一款短视频软件,所拥有的用户非常多,在快手里,用户可以尽情的刷各种视频,也可以自己拍摄短视频来记录自己的生活,不过有时候自