shell 監控url 地址
[root@localhost opt]# cat web_url.sh #!/bin/bash for i in `cat web_url` do curl=`curl -I -s $i |head -1|cut -d " " -f2` if [ "$curl" == "200" ];then echo curl $i is ok else echo "$i is fail" | mail -s "web fail url" [email protected] fi done [root@localhost opt]# cat web_url http://192.168.0.123:8080/lemon/portal/index.do http://192.168.0.123:8080/photo/
shell 監控url 地址
相關推薦
shell 監控url 地址
hot mon strong photo lse .com yun don curl -i shell 監控url 地址 [root@localhost opt]# cat web_url.sh #!/bin/bash for i in `cat web_url` do
shell 測試URL 是否正常腳本
shell腳本 測試頁面是否正常腳本 題目:老男孩教育每日一題-2017年5月3日-寫一個腳本:創建一個函數,能接受兩個參數題目要求1)第一個參數為URL,即可下載的文件;第二個參數為目錄,即下載後保存的位置;2)如果用戶給的目錄不存在,則提示用戶是否創建;如果創建就繼續執行,否則,函數返回一個51的
轉載:web工程中URL地址的推薦寫法
pos 綜合 div tco imp style public tps 目錄 在JavaWeb開發中,只要是寫URL地址,那麽建議最好以"/"開頭,也就是使用絕對路徑的方式,那麽這個"/"到底代表什麽呢?可以用如下的方式來記憶"/":如果"/"是給服務器用的,則代表當前的w
js獲取當前url地址參數中文亂碼問題
length 地址 網上 當前頁 數組 獲得 clas decode log 網上看了一些關於此問題的文章,都說的不清不楚,有些更是亂七八糟,完全沒法看,故此找了一篇能用的,借鑒作為筆記。 //首先獲取到當前頁面的地址欄信息 var url = window.locati
zabbix監控url返回狀態
zabbix參考 http://john88wang.blog.51cto.com/2165294/1565973 cd /usr/local/zabbix/bin [[email protected]/* */ bin]# cat warn_web.py #!/usr/bin/env pytho
ajax url地址
host json class b-s type pan cal -s b- 當前網址 http://localhost:8080/exam_paper/402881ec5c3924ec015c394ee4210000/set_questions ajax請求ur
獲得url地址?後的參數
裏的 取數 uri 取出 ava 亂碼 url地址 sea get function getParams(str) { var obj = {}; //刪除第一個字符? str = str.slice(1); var arr = str.s
URL地址編碼和解碼
解碼 pen nsis query n) function 關於 written per 0. 參考 【整理】關於http(GET或POST)請求中的url地址的編碼(encode)和解碼(decode) python3中的urlopen對於中文url是如何處理的? 中文U
zabbix增加手機端4個url地址的返回值
curl zabbix url 由同事提供4個需要監控的url地址GET類型:http://10.15.24.61:809/UserCenterService.svc/getAccountInfo/563/9638POST類型:http://10.15.24.61:809/ProductServi
vue+webpack+vue-cli獲取URL地址參數
web his rul new substr geturl reg ebp -c 在沒有使用webpack+vue router開發中,想要獲取RUL傳的參數地址,直接通過一個函數就可以獲得。 比如在 www.test.com/test.html?sign=test 地
shell監控web服務的多種方案
shell監控web服務的多種方案1.端口本地:ss.netstat,lsof遠程:telnet,nmap.nc2.本地進程數3.header(http,curl),模擬用戶的方式4.URL(wget,curl).模擬用戶的方式5.php,java寫監控的程序,模擬用戶的方式(讓開發提供)範例判斷條件[[em
如何在url地址欄中直接寫數組參數進行傳遞
今天 依然 php tar highlight blog 數組 重復 結果 今天博主遇到這樣一個問題,就是如何在瀏覽器url地址欄中直接寫入數組參數進行傳遞,問了身邊幾個同事,都沒有找到成功的書寫方法。就開始懷疑是否可以在地址欄中直接寫入數組進行傳遞。
使用js修改url地址參數
function pre 參數 cnblogs color style location cat n) 該方法可以修改url的參數。 例如將 www.baidu.com 修改為 www.baidu.com?name=123 操作為: window.locat
Apache Nginx URL 地址 重寫
man tro 內置 span ont 文件內容 http狀態碼 規則 lac URL重寫這東西在工作中用了很多次了,但每次都忘記了要記得把知道的積累下來。 哎,要麽認為沒必要,要麽就是沒時間?! 一、Apache 篇 官方地址:http://man.chin
使用過濾器對權限進行過濾,就是對訪問的url地址進行判斷
nis res init quest tool resp != oos list /* * To change this license header, choose License Headers in Project Properties. * To change
獲取url地址欄參數
!= spa var subst mat arch 沒有 則表達式 nes //獲取url中的參數 function getUrlParam(name) { var reg = new RegExp("(^|&)" + name + "=([^&am
JS獲取上一訪問頁面URL地址document.referrer實踐2
idt 老版本 urn mage ima 服務器配置 第一次 name nbsp 一、JS獲取前一個訪問頁面的URL地址document.referrer 要獲取前一個訪問頁面的URL地址前後端語言都可以,例如PHP的是$_SERVER[‘HTTP_REFERER‘],Ja
shell 監控磁盤使用率【轉】
shm ted light 監控 html ron 算術運算 filesyste disk 方案一: disks=(`df |sed 1d | awk ‘{print $1,$5}‘|tr -d %`) len=${#disks[@]} for ((i=1;i
zabbix監控URL
blog 應用 更新 三分 之前 src 觀察 logs bsp 選在相應主機,並添加Web監控 按照方式新建Web場景 註意: 名稱統一規則:web_check_相應的域名
ssrf訪問內網及url地址過濾繞過
str tps class 127.0.0.1 get match hacker ase 讀取 <?php /*//設置open_basedir ini_set("open_basedir", "/home/shawn/www/index/"); */ if (