nagios snmp plugin

Alibabacloud.com offers a wide variety of articles about nagios snmp plugin, easily find your nagios snmp plugin information here online.

Login router of Nagios plugin for ping monitoring

Router_check_apn_ping.c#include The script that is called auto_ssh_route01_gglc_80_49.sh#!/usr/bin/expect-f#set Port 22set User xxxoooset host 114.66.80.49set password [email protected]set timeout 30spawn ssh [Email protected] $hostexpect "*assword:*" send "$password \ r" expect "*irt*" send "ping-c 5-m + 10.7.0.186\r" expect "*ir t* "Send" quit "#expect EOFLogin router of Nagios plugin for ping monitoring

Nagios-plugin (MEM)

#!/usr/bin/envpythonimportsysfromoptparseimportoptionparserimportstringok= 0warning=1critical=2unknown=3unit={' t ': 2**40, ' G ': 2**30, ' m ': 2**20, ' K ': 2**10, ' B ': 1}defopt (): parser=optionparser (usage= "usage:%prog-wwarning-c critical ") parser.add_option ("-C ", default=" 100M ", action=" store ", type= "string", dest= "critical") parser.add_option ("-W", default= "500M", action= "Store", type= "string", dest= "warning") returnparser.parse _args () Defconvertunit (s): s=s.lower () l

Total Pages: 2 1 2 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.

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.