Changeset 1099
- Timestamp:
- Apr 24, 2009, 1:11:16 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
noc/nagios/status-user/finger.sh
r1098 r1099 18 18 19 19 gethgmembers() { 20 gethostgroups | grep "^$1 \t" | cut -f 2 -d " " | sed 's/,/\n/g' | perl -pe 's/\n/|/g' | sed 's/|$//'20 gethostgroups | grep "^$1 " | cut -f 2 -d " " | sed 's/,/\n/g' | perl -pe 's/\n/|/g' | sed 's/|$//' 21 21 } 22 22 … … 32 32 docnagios -g /LOAD/ 33 33 ;; 34 scripts-user*) 35 docnagios -g "/$(gethgmembers "scripts-user.*")/" 36 ;; 34 37 scripts*) 35 38 docnagios -g "/$(gethgmembers "scripts.*")/" … … 44 47 finger broken@sipb-noc -- services that are not OKAY 45 48 finger load@sipb-noc -- all LOAD services 49 finger scripts-user@sipb-noc-- all scripts user services 46 50 finger scripts@sipb-noc-- all scripts services 47 51 finger xvm@sipb-noc -- only XVM servers
Note: See TracChangeset
for help on using the changeset viewer.