change nagios conf
#!/bin/sed -f
Β
# Replaces the occurance of "use unix-3m-low" with "use unix-3m-dontcare" in
# between a line containing "# check procs SysView "SVhttpd.pl" and the next
# line containing "}"
Β
Β
/# check procs SysView "SVhttpd.pl/,/\}/ {
Β Β s/\(use[ \t]*\)unix-3m-low/\1unix-3m-dontcare/
}
Comments
0 B
|π
/π
0 B
|π
/π