设为首页 收藏本站
查看: 800|回复: 0

Monitor Tool(1)Nagios

[复制链接]

尚未签到

发表于 2017-4-20 08:29:22 | 显示全部楼层 |阅读模式
  Monitor Tool(1)Nagios

1. Nagios Introduction
Nagios, Nagios-plugins
NRPE - watch the resources used on nodes machines.
NSCA - node machines send the info to nagios
NSClient++ - for windows
NDOUtils - Nagios info and event info into databases.

Support shell scripts, perl, ruby, Python
Graph Plugins (Nagiosgraph, Nagiosgrapher, PNP4Nagios

2. Install on Ubuntu
switch to root user first
>sudo -i

Install some tool
>sudo apt-get install build-essential 
>sudo apt-get install apache2
>sudo apt-get install php5-gd
>sudo apt-get install libgd2-xpm-dev
>sudo apt-get install libapache2-mod-php5


>wget http://hivelocity.dl.sourceforge.net/project/nagios/nagios-4.x/nagios-4.0.8/nagios-4.0.8.tar.gz
>wget http://nagios-plugins.org/download/nagios-plugins-2.0.3.tar.gz


>useradd nagios
>groupadd nagcmd
>usermod -a -G nagcmd nagios


>tar zxvf nagios-4.0.8.tar.gz
>cd nagios-4.0.8/


>./configure --with-nagios-group=nagios --with-command-group=nagcmd --with-mail=/usr/bin/sendmail

./configure --with-command-group=nagcmd --with-httpd-conf=/etc/apache2/conf.d

>make all
>make install
>make install-init
>make install-commandmode


>mkdir /etc/httpd
>mkdir /etc/httpd/conf.d/
>make install-webconf


>cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/
>chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers
>/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg


>/etc/init.d/nagios start


>sudo apt-get install apache2-utils
>htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin


>tar zxvf nagios-plugins-2.0.3.tar.gz 
>cd nagios-plugins-2.0.3/
>/configure --with-nagios-user=nagios --with-nagios-group=nagios
>make
>make install


Add to the startup
>ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios


It will not work, link the conf
>sudo ln -s /etc/httpd/conf.d/nagios.conf /etc/apache2/conf-enabled/nagios.conf

Cool, visit this Server with this URL
http://ubuntu-master2/nagios/

username=nagiosadmin, password=password


>sudo a2enmod cgi


>apt-get install libcgi-pm-perl librrds-perl libgd-gd2-perl

>apt-get install libnet-snmp-perl libperl5.18 libpq5 libradius1 libsensors4 libsnmp-base libsnmp30 libtalloc2 libtdb1 libwbclient0 samba-common samba-common-bin smbclient snmp whois libmysqlclient-dev libssl-dev


>wget http://softlayer-dal.dl.sourceforge.net/project/nagiosgraph/nagiosgraph/1.5.1/nagiosgraph-1.5.1.tar.gz


>wget http://hivelocity.dl.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz

>./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/x86_64-linux-gnu

Follow the document in http://wellsie.net/p/512/. I install nagios and some other parts. But I do not think it is easy to configure.


References:
http://www.chenshake.com/nagios-study-notes/
http://www.ibm.com/developerworks/cn/linux/1309_luojun_nagios/
http://www.programmer.com.cn/11477/
http://logstash.net/
http://www.chenshake.com/introduction-to-cacti-nagios-monitoring-system/

old blogs
http://sillycat.iteye.com/blog/563940
http://sillycat.iteye.com/blog/562719
http://sillycat.iteye.com/blog/562660
http://sillycat.iteye.com/blog/562659

http://blog.51yip.com/server/1394.html
http://blog.51yip.com/server/1389.html

http://www.nagios.org/download/core/thanks/?t=1409086924
http://wellsie.net/p/512/

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-366588-1-1.html 上篇帖子: Nagios external commands not working 下篇帖子: Nagios实践之路(三)—-Nagios基本平台的安装
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表