nagios scripts

Learn about nagios scripts, we have the largest and most updated nagios scripts information on alibabacloud.com

Related Tags:

Automatic Installation of Nagios server and client using shell scripts

A company's project website was launched for a few days because the disk was full and there was a problem. Because its servers were concentrated in a certain IDC, we considered deploying a Nagios monitoring and alarm system, since other project websites may have similar requirements, the installation process should be compiled into scripts to facilitate future work. The automatic installation script of the

Automatic Installation of Nagios server and client using shell scripts

A company's project website was launched for a few days because the disk was full and there was a problem. Because its servers were concentrated in a certain IDC, we considered deploying a Nagios monitoring and alarm system, since other project websites may have similar requirements, the installation process should be compiled into scripts to facilitate future work. The automatic

customizing Nagios monitoring Scripts

/nrpe.cfg fileVim/etc/nagios/nrpe.cfg # Add a line: (on client)command[check_disk]=/usr/lib/nagios/plugins/check_disk.shSave, restart Nrpe service/etc/init.d/nrpe Restart (on client)on the server side operation:4. The way to detect if the script is working correctly is to execute the following command to the server side:check_nrpe-h ip-c check_disk (server)//This IP is the IP of the clientif normal, it will

about using shell scripts to customize the monitoring plug-in for the Nagios system

; 200;500;"$ (Exit1) Else Echo "Pgsql_concurrent:ok Total: $pgsql-concurrent_count| Used= $pgsql; 200;500;"$ (Exit0) fiElse Echo "Check_pgsqlcount" Echo "" Echo "Usage:" Echo "check_pgsqlcount-w " Echo "" Echo "Copyright (C) http://www.cnblogs.com/5201351 ([email protected])"ExitfiThe above monitoring scripts are written for the author's work, as a way to write the

Nagios Monitoring scripts (custom monitoring system disks)

Check_disk (on server)If normal, it will output a row of disk detection data, or may be error.cd/etc/nagios/conf.d/Vim 192.168.0.12.cfg (your IP address name) # Add the following: Define host{ use linux-server host_name 192.168.0.12 alias 0.12 address 192.168.0.12 } Define Service{Use Generic-serviceHOST_NAME 192.168.0.12Service_description Check_diskCheck_command Check_nrpe!check_diskMax_check_attempts 5Normal_c

Nagios monitors Oracle Alert log Scripts

remote DBs may be having problemsORA-3113:Ora-3136:inbound Connection timed outORA-1555: Snapshot Too old: Fallback segment number in the name "" Too small snapshot tooORA-1461: You can only assign a long value to insert a long columnORA-00600: DeadlockORA-1580: Error Creating control backup fileOra-27054:nfs file system where the file is created or resides are not mounted with correct optionsORA-6512: Similar to this Ora-06512:at "SYS. Dbms_isched ", Line 3761Ora-06512:at "SYS. Dbms_isched ",

Automatically push Nagios client scripts with fabric

#!/usr/bin/python2.6 fromfabric.api import* fromfabric.colors import* fromfabric.context_managers import*user =‘ec2-user‘ hosts =[ ‘bidder1‘ , ‘bidder2‘ , ‘bidder3‘ , ‘bidder4‘ , ‘bidder5‘ , ‘bidder6‘ , ‘bidder7‘ , ‘bidder8‘ ] #hosts=[‘bidder1‘,]@task defput_task(): printyellow( "PutLocalFiletoremote" ) withsettings(warn_only = True ): put( "/home/ec2-user/check_cpu_utili.sh" , "/home/ec2-user/check_cpu_utili.sh" ) sudo( "cp/home/ec2-user/check_cpu_utili.sh/usr/local/

Nagios uses nsclient++ 's Check_nrpe way to monitor windows with custom scripts

: [External scripts] instead of [External script]4. Restart Nsclinet5. The directory where the monitored end Check_nrpe is located (the CentOS default installation directory is:/usr/lib64/nagios/plugins/)./check_nrpe-h hostip-c Check_runNote :-H after the script just before the machine,-C after the write command, which corresponds to the Check_run in the configuration fileIf the results are consistent with

Nagios Monitoring Linux host monitoring memory scripts

: 1913 0 1913 Total Memory: 3072 Used number of memory used: 2459 Free Memory Number: 612 GKFX is currently obsolete. No, always 0. Buffers:buffer Cache Memory: 13220 Cached:page Cache Memory: 2720160 Relationship: total = used + FreeLine 3rd:The meaning of-/+ Buffers/cache:-buffers/cache Memory: 447 (equals 1th row of used-buffers-cached)+buffers/cache Memory: 2624 (equals 1th line of Free + buffers + cached)Note: The amount of memory here is a little bit

Startup management scripts for Nrpe in Nagios

[ $nrpe _num-eq1] ; Thenkill-9 $nrpe _pidecho_success echo "stoptingnrpe" ${nrpe_bin}-c$ {nrpe_config_file}-decho_success echo "startingnrpe" elseecho_failure echo "nrpeisstoping" ${nrpe_bin}-c${nrpe_config_file}-decho_success echo "startingnrpe" fi}case$1 instart) start;; stop) stop;; restart) NBSP;NBSP;NBSP;NBSP;NBSP;NBSP;RESTARTNbsp;;; *) echo_failure echo "Usage:$0{start|stop|restart}" retval=2esacexit $RETVAL In short, it is relatively simple, including the use of the system functions, yo

Install redis (nagios plug-in) using perl scripts

Author: A Hui http: farmerluo. googlecode. how to install comfilescheck_redis.pl: When the script uses the perl Redis database, you must first install this: # perl-MCPAN-eshell # installRediswgethttp: farmerluo. googlecode. comfilescheck_redis.plcpcheck_redis.p Author: A HuiHttp: // faRmErluo.googlecode.com/FileS/check_rEdIs. plThis section describes how to install:The script uses the perl Redis database. You need to install this first:# Perl-MCPAN-e shell# Install Redis Wget http:/

Shell scripts monitor resources occupied by Nagios plug-ins

In general, we only need to monitor the program process. But this time we encountered such a problem, the company developed the program, the program process is still in progress, but the deadlock. This has caused a wide range of impact. What's even worse is that I don't know where the problem is, or what other test colleagues have helped me find out. I really lost my O M face. hellip; to avoid this situation, we analyzed the deadlock of the process and found that the deadlock will occupy 100%

For monitoring Elasticsearch health status scripts in Nagios

A script for monitoring the Elasticsearch index was found in the Nagios community, and then modified to use the listening IP that is normally used for incoming elasticsearch for using a script that monitors the Elasticsearch health state in Nagios#!/bin/bash#check_elasticsearch_health.sh#memofornagiosoutputsstate_ok=0state_warning=1state _critical=2state_unknown=3#positionparameterjudgmentif[$#-lt1];then ec

Installation and configuration of Nagios monitoring linux+windows under Linux

Introduction of Nagios Nagios is an open source computer system and network monitoring tool, can effectively monitor Windows, Linux and UNIX host State, switch routers and other network settings, printers and so on. When the system or service status is abnormal, send an email or SMS alert the first time to notify the site operators, in the state of recovery after the normal mail or SMS notification.

A simple example of nagios monitoring scripts for virtual machines via the COLLECTD tool

After installing the COLLECTD tool on the host, you can obtain data such as cpu,memery,if-traffic of the virtual machine on the host by using the COLLECTD tool. Monitoring of these data can be achieved through Nagios monitoring scripts.The following is a simple monitoring virtual machine memory script:#!/bin/bash#desc:tocheckmemoryaboutvminstancestate_ok=0state_warning=1state_ Critical=2state_unknown=3collectd_home=/usr/local/collectdcollectd_ctl= $CO

Use scripts to record system monitoring logs for Nagios (detailed description of vmstat)

BKJIA exclusive Article] I am a linux/unix system engineer who uses Nagios to automatically monitor the company's intranet development environment and Internet application environment. Nagios has powerful alarm functions, but sometimes our system group has this need, especially when the system is busy, we want to leave logs for analysis: whether it is under attack, the developer is not properly set, or the

Use Nagios scripts to monitor Oracle connections

... Troubleshooting: Enter the "lsntctl stop" or "lsntctl reload" command to get stuck. If the result does not appear for a long time, the system will not be able to get the result! Enter the "netstat-ntpl | grep: 1521" command to find the process Number of the listener. kill-9 stops, restart the listener, and then start tomcat. The website is accessible! Cause analysis: The database connection may fail because the listener is stuck due to a database bug! See: Post-maintenance: To avoid this pro

Shell Scripts monitor Linux system memory usage (not using Nagios to monitor Linux) _linux shell

content 123456" | Mutt-s "Message header test Message"-a/scripts/test.txttest@126.com Monitoring system memory using free command: 1, use the free command to view the Linux system memory usage: (in m) Copy Code code as follows: # free-m (Execution results are the following style) Copy Code code as follows: Total used free Sharedbuffers Cached mem:3952 34145380168484 -/+ buffers/cache:2760 1191 SWA

Use Nagios scripts to monitor Oracle connections

-maintenance: To avoid this problem as much as possible, I want to write a monitoring script in combination with nagios monitoring. When the database connection is abnormal, I can receive an alert text message as soon as possible. java programs connect to the database and use the connection pool, therefore, it may not be possible to expose problems in time! Write a script and run it in the task plan. regularly connect to the database, query the system

Mud: Learning Nagios (2): Nagios configuration, mud nagios

and humidity, Smoke sensors, water immersion, dry contacts, UPS, APC, etc. To learn more about nagios monitoring objects, go to the nagios official website. As follows: Http://www.nagios.com/solutions Ii. nagios Monitoring Method As we mentioned above, the nagios monitoring objects are monitored through which me

Total Pages: 15 1 2 3 4 5 .... 15 Go to: Go

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

not found

404! Not Found!

Sorry, you’ve landed on an unexplored planet!

Return Home
phone Contact Us
not found

404! Not Found!

Sorry, you’ve landed on an unexplored planet!

Return Home
phone Contact Us

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.