sunildevops99 / nagios Goto Github PK
View Code? Open in Web Editor NEWThis project forked from quickfixsoln/nagios
This project forked from quickfixsoln/nagios
# nagios Refer this doc: https://blog.serverdensity.com/howto-install-nagios-in-30-minutes-and-jumpstart-your-monitoring/ ###############Pre-requisites########### apt-get update sudo apt-get install apache2 libapache2-mod-php5 php5 apache2-utils sudo a2enmod rewrite sudo a2enmod cgi sudo addgroup --system nagios sudo addgroup --system nagioscmd ##################install nagios server #################### curl -L -O https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.1.1.tar.gz tar xvzf nagios-4.1.1.tar.gz cd nagios-4.1.1/ ls -lrt make all sudo make install sudo service apache2 restart ################## nagios plugins ########################### $ curl -L -O http://nagios-plugins.org/download/nagios-plugins-2.1.1.tar.gz cd nagios-plugins-2.1.1/ make sudo make install ################## nrpe client ################## https://tecadmin.net/install-nrpe-on-ubuntu/ sudo apt-get update sudo apt-get install nagios-nrpe-server nagios-plugins allowed_hosts=127.0.0.1, 192.168.1.100 sudo /etc/init.d/nagios-nrpe-server restart ################### curl -L -O http://downloads.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz tar -xf nrpe-2.15.tar.gz cd nrpe-2.15/ ls -lrt make all sudo make install sudo make install-xinetd sudo make install-daemon-config ifconfig sudo vi /etc/xinetd.d/nrpe sudo service xinetd restart sudo vi /usr/local/nagios/etc/nagios.cfg sudo mkdir /usr/local/nagios/etc/servers sudo vi /usr/local/nagios/etc/objects/contacts.cfg sudo vi /usr/local/nagios/etc/objects/commands.cfg sudo service nagios start ifconfig ########### nrpe client: sudo apt-get install nagios-plugins nagios-nrpe-server sudo vi /etc/nagios/nrpe.cfg add server name in allowed_host in nrpe.cfg file. cfg file: cat chefclient.cfg define host { use linux-server host_name chefclient.example.com alias My LAMP server address 192.168.32.20 max_check_attempts 5 check_period 24x7 notification_interval 30 notification_period 24x7 } define service { use generic-service host_name chefclient.example.com service_description PING check_command check_ping!100.0,20%!500.0,60% } define service { use generic-service host_name chefclient.example.com service_description SSH check_command check_ssh } define service { use generic-service host_name chefclient.example.com service_description Current Load check_command check_nrpe!check_load } define service { use generic-service host_name chefclient.example.com service_description Current Users check_command check_nrpe!check_users } define service { use generic-service host_name chefclient.example.com service_description Disk Utilization check_command check_nrpe!check_sda1 } define service { use generic-service host_name chefclient.example.com service_description Zombie processes check_command check_nrpe!check_zombie_procs } define service { use generic-service host_name chefclient.example.com service_description Total processes check_command check_nrpe!check_total_procs }
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.