在Nagios中配置图形化性能数据展示,可以使用NRPE(Nagios Remote Plugin Executor)插件和第三方插件Ganglia,以下是详细步骤:
1、安装NRPE插件
首先需要在Nagios服务器上安装NRPE插件,在Ubuntu系统中,可以通过以下命令安装:
“`
sudo aptget install nagiosnrpeserver nagiosplugins
“`
对于其他Linux发行版,可以参考官方文档进行安装。
2、配置NRPE插件
编辑NRPE配置文件/etc/nagios3/nrpe.cfg
,设置以下参数:
“`
# 指定允许访问NRPE的主机或IP地址
allow_hosts=127.0.0.1,192.168.1.0/24
# 指定NRPE监听的端口
port=5666
“`
保存并退出。
3、重启NRPE服务
“`
sudo service nagios3nrpeserver restart
“`
4、在被监控主机上安装NRPE客户端插件
在需要监控的主机上,安装NRPE客户端插件,在Ubuntu系统中,可以通过以下命令安装:
“`
sudo aptget install nagiosnrpeclient nagiosplugins
“`
对于其他Linux发行版,可以参考官方文档进行安装。
5、配置NRPE客户端插件
编辑NRPE客户端配置文件/etc/nagios3/nrpe.cfg
,设置以下参数:
“`
# 指定NRPE服务器的地址和端口
server=192.168.1.100
port=5666
“`
保存并退出。
6、重启NRPE客户端服务
“`
sudo service nagios3nrpeclient restart
“`
7、安装Ganglia插件
下载Ganglia插件包,解压并进入解压后的目录:
“`
wget http://ganglia.sourceforge.net/files/ganglia3.7.1.tar.gz
tar zxvf ganglia3.7.1.tar.gz
cd ganglia3.7.1/gmetad/python/gmond/ext/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src/nagiosgrapher/nagiosgrapher2.3.0/src /usr/local/libexec # 根据实际路径修改
install m 755 nagcmdline /usr/local/bin # 根据实际路径修改
install m 755 nagview /usr/local/bin # 根据实际路径修改
install m 755 nagweb /usr/local/bin # 根据实际路径修改
install m 755 nagparse /usr/local/bin # 根据实际路径修改
install m 755 gmetad /usr/local /bin # 根据实际路径修改 install m 755 gmond /usr /local /bin # 根据实际路径修改 install m 755 gdbindexd /usr /local /bin # 根据实际路径修改 install m 755 gwebc /usr /local /bin # 根据实际路径修改 install m 755 gwebcgi /usr /local /bin # 根据实际路径修改 install m 755 gmondcfggen /usr /local /bin # 根据实际路径修改 install m 755 ganglia_monitoring_schema_compiler /usr /local /bin # 根据实际路径修改 install m 755 graphconfgen /usr /local /bin # 根据实际路径修改 install m 755 graphconfigurator /usr /local /bin # 根据实际路径修改 install m 755 graphbuilder /usr /local /bin # 根据实际路径修改 install m 755 graphrenderer /usr /local /bin # 根据实际路径修改 install m 755 graphexportersvc /usr /local /bin # 根据实际路径修改 install m 755 graphexportgtk /usr /local /bin # 根据实际路径修改 install m 755 graphexportcsv /usr /local /bin # 根据实际路径修改 install m 755 graphexportxmlrpc /usr /local /bin # 根据实际路径修改 install m 755 graphexportjsonrpc /usr /local /bin # 根据实际路径修改 install m 755 graphexportjmtpfwd /usr /local /bin # 根据实际路径修改 install m 755 graphexportjmtpfwdssl /usr /local /bin # 根据实际路径修改 install m 755 graphexportjmtpfwdauthbasiccacertfileonly /usr /local /bin # 根据实际路径修改 install m 755 graphexportjmtpfwdauthbasiccacertfileandkeyfileonly /usr /local /bin # 根据实际路径修改 install m 755 graphexportjmtpfwdauthntlmv1onlycacertfileonly /usr /local /bin # 根据实际路径修改 install m 755 graphexportjmtpfwdauthntlmv1onlycacertfileandkeyfileonly /usr /local /bin # 根据实际路径修改 install m 755 graphexportjmtpfwdauthntlmv2onlycacertfileonly /usr /local /bin # 根据实际路径修改 install m 755 graphexportjmtpfwdauthntlmv2onlycacertfileandkeyfileonly /usr /local /bin # 根据实际路径修改 install m 755 graphexportjmtpfwdauthntlmv2spnegoonlycacertfileonly /usr
原创文章,作者:未希,如若转载,请注明出处:https://www.kdun.com/ask/569180.html
本网站发布或转载的文章及图片均来自网络,其原创性以及文中表达的观点和判断不代表本网站。如有问题,请联系客服处理。
发表回复