mirror of
https://github.com/aljazceru/zabbix.git
synced 2025-12-17 23:54:28 +01:00
exact match
This commit is contained in:
@@ -12,7 +12,7 @@ PORT="80"
|
|||||||
status="status"
|
status="status"
|
||||||
|
|
||||||
function query() {
|
function query() {
|
||||||
curl -s http://${HOST}:${PORT}/${status}?xml | grep "$1" | awk -F'>|<' '{ print $3}'
|
curl -s http://${HOST}:${PORT}/${status}?xml | grep "<$1>" | awk -F'>|<' '{ print $3}'
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ $# == 0 ]; then
|
if [ $# == 0 ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user