Projet

Général

Profil

Révision 5be6eb72

ID5be6eb7253a8e33d39863837a4969062371b83ff
Parent f9000cdc
Enfant bcf2659f

Ajouté par Stefan Seidel il y a environ 13 ans

add basic information and license header

Voir les différences:

plugins/system/hugepages
1 1
#!/usr/bin/gawk --exec
2
#
3
# HugePages monitoring plugin for munin
4
#
5
# This plugin monitors the usage of the Linux kernel HugePages, on some
6
# architectures also called  Large Pages. It will show both pre-reserved
7
# pages (via /prc/sys/vm/nr_hugepages), their usage and reserved size, as
8
# well as HugePages allocated by the khugepaged (activated by the
9
# transparent_hugepages kernel command line parameter). All values are
10
# shown in (KiBi/MeBi/GiBi)Bytes.
11
#
12
# This plugin is used like many other munin plugins: put it in 
13
# /usr/share/munin/plugins (or another appropriate location)
14
# and create a symlink in /etc/munin/plugins:
15
# > ln -s /usr/share/munin/plugins/hugepages /etc/munin/plugins
16
# Then restart munin-node.
17
#
18
#
19
# --
20
#  Copyright 2012 Stefan Seidel <munin@stefanseidel.info>
21
#
22
#  Licensed under the Apache License, Version 2.0 (the "License");
23
#  you may not use this file except in compliance with the License.
24
#  You may obtain a copy of the License at
25
#
26
#      http://www.apache.org/licenses/LICENSE-2.0
27
#
28
#  Unless required by applicable law or agreed to in writing, software
29
#  distributed under the License is distributed on an "AS IS" BASIS,
30
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31
#  See the License for the specific language governing permissions and
32
#  limitations under the License.
33
# --
34
#
2 35
BEGIN {
3 36
  if (ARGC > 1 && ARGV[1] == "config") {
4 37
    print "graph_args --base 1024 -l 0"

Formats disponibles : Unified diff