Révision 36748826
Fix spelling mistakes
| plugins/cpu/cpuutil | ||
|---|---|---|
| 38 | 38 |
echo "sys.info CPU time spent in running the kernel code" |
| 39 | 39 |
|
| 40 | 40 |
echo_func user user STACK |
| 41 |
echo 'user.info CPU time spent by tunning application code'
|
|
| 41 |
echo 'user.info CPU time spent by tuning application code' |
|
| 42 | 42 |
|
| 43 | 43 |
echo_func wio iowait STACK |
| 44 | 44 |
echo 'wio.info CPU idle time in waiting IO (disk)' |
| plugins/jitsi/jitsi_videobridge | ||
|---|---|---|
| 63 | 63 |
echo "multigraph jitsi_videobridge_sessions" |
| 64 | 64 |
echo "graph_title Current jitsi-videobridge sessions" |
| 65 | 65 |
echo "graph_info Current jitsi-videobridge sessions" |
| 66 |
echo "graph_vlabel current sesssions"
|
|
| 66 |
echo "graph_vlabel current sessions" |
|
| 67 | 67 |
echo "graph_args --base 1000 -l 0" |
| 68 | 68 |
echo "jitsi_videochannels.label videochannels" |
| 69 | 69 |
echo "jitsi_videochannels.info current number of videochannels" |
| plugins/mysql/mysql_audit | ||
|---|---|---|
| 128 | 128 |
if ',CONNECT,' not in line: |
| 129 | 129 |
continue |
| 130 | 130 |
|
| 131 |
splitted = line.split(',')
|
|
| 132 |
key = splitted[2]
|
|
| 133 |
date = datetime.strptime(splitted[0], '%Y%m%d %H:%M:%S')
|
|
| 131 |
split = line.split(',')
|
|
| 132 |
key = split[2] |
|
| 133 |
date = datetime.strptime(split[0], '%Y%m%d %H:%M:%S') |
|
| 134 | 134 |
# hack to add timezone data to the datetime |
| 135 | 135 |
date = begin + (date - begin_local) |
| 136 | 136 |
|
| plugins/netapp/snmp__netapp_cifs | ||
|---|---|---|
| 8 | 8 |
# NFS automounted mounted on server. |
| 9 | 9 |
# Example: the SNMP id for cpuBusyTimePerCent is |
| 10 | 10 |
# snmp.1.3.6.1.4.1.789.1.2.1.3.0 |
| 11 |
# and retrival of this value is done by |
|
| 11 |
# and retrieval of this value is done by
|
|
| 12 | 12 |
# snmpget -v 1 -c public netappfiler 1.3.6.1.4.1.789.1.2.1.3.0 |
| 13 | 13 |
# |
| 14 | 14 |
# Requires snmpget and assumes public community. |
| plugins/netapp/snmp__netapp_cpu | ||
|---|---|---|
| 8 | 8 |
# NFS automounted mounted on server. |
| 9 | 9 |
# Example: the SNMP id for cpuBusyTimePerCent is |
| 10 | 10 |
# snmp.1.3.6.1.4.1.789.1.2.1.3.0 |
| 11 |
# and retrival of this value is done by |
|
| 11 |
# and retrieval of this value is done by
|
|
| 12 | 12 |
# snmpget -v 1 -c public netappfiler 1.3.6.1.4.1.789.1.2.1.3.0 |
| 13 | 13 |
# |
| 14 | 14 |
# Requires snmpget and assumes public community. |
| plugins/network/brc_rssi | ||
|---|---|---|
| 46 | 46 |
graph_category network |
| 47 | 47 |
graph_info This plugin shows the RSSI (Received Signal Strength Indication) as reported by the Access Point (AP) driver. The plugin is specific to broadcom wireless chipsets such as used on WRT hardware. We're not <em>quite</em> sure about the units the RSSI is measured in as this is not documented. Both dB and dBm are apparently candidates. Higher is better. |
| 48 | 48 |
EOF |
| 49 |
# Atempt to find default. "Set default" and "assign default" syntax is |
|
| 49 |
# Attempt to find default. "Set default" and "assign default" syntax is
|
|
| 50 | 50 |
# not available in busybox (which is used in openwrt firmware) it seems. |
| 51 | 51 |
# So work around it with case. |
| 52 | 52 |
: ${WIFISIDE:=$(nvram get lan_ifname 2>/dev/null)}
|
| plugins/network/netatalk | ||
|---|---|---|
| 124 | 124 |
echo "proc.value" $(ps ax --no-headers -o command | grep "^$afpdPath" | wc -l) |
| 125 | 125 |
|
| 126 | 126 |
# Connected users (user): |
| 127 |
# We will ignore root (having UID=0 it's line will be first) (assomption done: there will have only one line corresponding to root in `ps` output)
|
|
| 127 |
# We will ignore root (having UID=0 it's line will be first) (assumption done: there will have only one line corresponding to root in `ps` output)
|
|
| 128 | 128 |
connectedUsers=$(ps anx --no-headers -o uid,command | sed 's/^ *//g' | grep "^[0-9]* $afpdPath" | sort -n | tail -n +2 | awk '{print $1}')
|
| 129 | 129 |
echo "user.value" `echo $connectedUsers | wc -w` |
| 130 | 130 |
|
| plugins/network/speedtest-download-bandwidth | ||
|---|---|---|
| 21 | 21 |
"free" => "test-debit.free.fr" |
| 22 | 22 |
); |
| 23 | 23 |
|
| 24 |
//Connexion Mbits (30/100)
|
|
| 25 |
$connexion = 35;
|
|
| 24 |
//Connection Mbits (30/100)
|
|
| 25 |
$connection = 35;
|
|
| 26 | 26 |
|
| 27 | 27 |
// CONFIG ------------------------------------------------------------------ |
| 28 | 28 |
if ($argc > 1 && $argv[1]=='config'){
|
| ... | ... | |
| 33 | 33 |
graph_vlabel DL (MB/s) |
| 34 | 34 |
grenouille.label Grenouille (NC) |
| 35 | 35 |
grenouille.type GAUGE |
| 36 |
maximum.label Connexion (max)
|
|
| 36 |
maximum.label Connection (max)
|
|
| 37 | 37 |
maximum.type GAUGE |
| 38 | 38 |
maximum.colour ff0000 |
| 39 |
maximum.max ".$connexion."00000
|
|
| 39 |
maximum.max ".$connection."00000
|
|
| 40 | 40 |
"; |
| 41 | 41 |
|
| 42 | 42 |
$order=""; |
| ... | ... | |
| 76 | 76 |
|
| 77 | 77 |
$output .= "$label.value ".round($cache[$label])."\n"; |
| 78 | 78 |
} |
| 79 |
$output .= "maximum.value ".round($connexion * 1024 * 1024 / 10)."\n";
|
|
| 79 |
$output .= "maximum.value ".round($connection * 1024 * 1024 / 10)."\n";
|
|
| 80 | 80 |
echo $output; |
| 81 | 81 |
|
| 82 | 82 |
// SPEED TEST -------------------------------------------------------------- |
| plugins/nginx/nginx_upstream_multi_ | ||
|---|---|---|
| 75 | 75 |
"400:Bad request;401:Unauthorized;402:Payment required;403:Forbidden;404:Not found;" |
| 76 | 76 |
"405:Method not allowed;406:Not acceptable;407:Proxy Authentication Required;" |
| 77 | 77 |
"408:Request timeout;409:Conflict;410:Gone;411:Length required;412:Precondition failed;" |
| 78 |
"413:Request entity too large;414:Request URI too large;415:Usupported media type;" |
|
| 78 |
"413:Request entity too large;414:Request URI too large;415:Unsupported media type;"
|
|
| 79 | 79 |
"416:Request range not satisfiable;417:Expectation failed;422:Unprocessable entity;" |
| 80 | 80 |
"423:Locked;424:Failed dependency;425:Unordered collection;426:Upgrade required;" |
| 81 | 81 |
"449:Retry with;456:Unrecoverable error;500:Internal server error;501:Not implemented;" |
| plugins/php/eaccelerator | ||
|---|---|---|
| 62 | 62 |
|
| 63 | 63 |
################################################################# |
| 64 | 64 |
################################################################# |
| 65 |
# Settigs required for autoconf |
|
| 65 |
# Settings required for autoconf
|
|
| 66 | 66 |
#%# family=manual |
| 67 | 67 |
#%# capabilities=autoconf |
| 68 | 68 |
|
| plugins/php/php_apc_ | ||
|---|---|---|
| 26 | 26 |
# |
| 27 | 27 |
################################################################# |
| 28 | 28 |
################################################################# |
| 29 |
# Settigs required for autoconf |
|
| 29 |
# Settings required for autoconf
|
|
| 30 | 30 |
#%# family=auto |
| 31 | 31 |
#%# capabilities=autoconf suggest |
| 32 | 32 |
|
| plugins/php/php_opcache | ||
|---|---|---|
| 10 | 10 |
# [php_opcache] |
| 11 | 11 |
# env.URL http://example/php_opcache.php |
| 12 | 12 |
############################################################################### |
| 13 |
# Settigs required for autoconf |
|
| 13 |
# Settings required for autoconf
|
|
| 14 | 14 |
#%# family=auto |
| 15 | 15 |
#%# capabilities=autoconf suggest |
| 16 | 16 |
|
| plugins/postfix/postfix-queue-size | ||
|---|---|---|
| 81 | 81 |
|
| 82 | 82 |
=cut |
| 83 | 83 |
|
| 84 |
# atempt to get spooldir via postconf, but environment overrides. |
|
| 84 |
# attempt to get spooldir via postconf, but environment overrides.
|
|
| 85 | 85 |
|
| 86 | 86 |
# Remember that postconf is not available unless postfix is. |
| 87 | 87 |
POSTCONFSPOOL="$(postconf -h queue_directory 2>/dev/null || echo /var/spool/postfix)" |
| plugins/postfix/postfix_mailqueue_ | ||
|---|---|---|
| 82 | 82 |
|
| 83 | 83 |
=cut |
| 84 | 84 |
|
| 85 |
# atempt to get spooldir via postconf, but environment overrides. |
|
| 85 |
# attempt to get spooldir via postconf, but environment overrides.
|
|
| 86 | 86 |
|
| 87 | 87 |
# Remember that postconf is not available unless postfix is. |
| 88 | 88 |
CONFIG=${0##*postfix_mailqueue_}
|
| plugins/user/cpubyuser | ||
|---|---|---|
| 18 | 18 |
# |
| 19 | 19 |
# 2019-08-30 v 1.4 pcy <pcy@ulyssis.org>: |
| 20 | 20 |
# - add USERS=ALLPROC, not relying on a tty or pty being present for user detection |
| 21 |
# - OTHERS_FIELD now defaults to disabled, explicitely give it a
|
|
| 22 |
# value to reenable it (eg. 'others') |
|
| 21 |
# - OTHERS_FIELD now defaults to disabled, explicitly give it a |
|
| 22 |
# value to re-enable it (eg. 'others')
|
|
| 23 | 23 |
# - use ps(1) instead of top(1) for easier and more robust |
| 24 | 24 |
# parsing/summary calculation |
| 25 | 25 |
# |
Formats disponibles : Unified diff