Changeset 1099


Ignore:
Timestamp:
Apr 24, 2009, 1:11:16 AM (13 years ago)
Author:
quentin
Message:
Add scripts-user@sipb-noc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • noc/nagios/status-user/finger.sh

    r1098 r1099  
    1818
    1919gethgmembers() {
    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/|$//'
    2121}
    2222
     
    3232        docnagios -g /LOAD/
    3333        ;;
     34    scripts-user*)
     35        docnagios -g "/$(gethgmembers "scripts-user.*")/"
     36        ;;
    3437    scripts*)
    3538        docnagios -g "/$(gethgmembers "scripts.*")/"
     
    4447finger broken@sipb-noc -- services that are not OKAY
    4548finger load@sipb-noc   -- all LOAD services
     49finger scripts-user@sipb-noc-- all scripts user services
    4650finger scripts@sipb-noc-- all scripts services
    4751finger xvm@sipb-noc    -- only XVM servers
Note: See TracChangeset for help on using the changeset viewer.