Projet

Général

Profil

Révision 2580942b

ID2580942ba2878b3fcc33394e699b293ca3c0eee9
Parent dec087a5
Enfant 9dac1e34, a0865f15, 49e7f215

Ajouté par Steve Schnepp il y a plus de 13 ans

fixed output

Voir les différences:

plugins/glassfish/glassfish_counters_
61 61
    config)
62 62
                check_link
63 63
                $MUN_AS_ADMIN get -t --monitor=true "${SUBTREE}.*" | \
64
                awk 'BEGIN{ FS="[ = ]" }
64
                awk 'BEGIN{ FS="[ = ]"}
65 65
                        /requestcount/ { next; } # IGNORE
66 66
                        /dotted-name/ { myself = $NF
67 67
                                print "graph_title GlassFish", myself
......
72 72
                                }
73 73
                        /-name / { nwhat = split($1, what, ".")
74 74
                                gsub(/-name/, "", what[nwhat])
75
                                print what[nwhat] ".label=" $NF
75
                                print what[nwhat] ".label " $NF
76
                                print what[nwhat] ".type GAUGE"
76 77
                                }
77 78
                        /-description / { nwhat = split($1, what, ".")
78 79
                                gsub(/-description/, "", what[nwhat])
79 80
                                $1 = ""; line = $0
80 81
                                gsub(/^   /,"", line)
81
                                print what[nwhat] ".info=" line
82
                                print what[nwhat] ".info " line
82 83
                                }
83 84
                '
84 85
                exit 0

Formats disponibles : Unified diff