| author | Tomas Zeman <tzeman@volny.cz> |
| Thu, 16 Aug 2018 14:39:42 +0200 | |
| changeset 34 | b685225d4966 |
| parent 3 | 86721b328bbb |
| permissions | -rw-r--r-- |
|
1
29afbe10f498
Added base checks fs, fbsd, mysql
"Tomas Zeman <tzeman@volny.cz>"
parents:
diff
changeset
|
1 |
# FreeBSD specific checks |
|
29afbe10f498
Added base checks fs, fbsd, mysql
"Tomas Zeman <tzeman@volny.cz>"
parents:
diff
changeset
|
2 |
|
|
29afbe10f498
Added base checks fs, fbsd, mysql
"Tomas Zeman <tzeman@volny.cz>"
parents:
diff
changeset
|
3 |
# Number of port vulnerabilities (need to have portaudit(1) installed) |
|
29afbe10f498
Added base checks fs, fbsd, mysql
"Tomas Zeman <tzeman@volny.cz>"
parents:
diff
changeset
|
4 |
UserParameter=portaudit.problems,portaudit |grep 'problem(s)'|cut -f1 -d" " |
|
29afbe10f498
Added base checks fs, fbsd, mysql
"Tomas Zeman <tzeman@volny.cz>"
parents:
diff
changeset
|
5 |
|
| 3 | 6 |
# Disk statistics - iostat(8): |
7 |
# The extended iostat device display, with the -x flag specified, |
|
8 |
# shows the following statistics: |
|
9 |
# |
|
10 |
# r/s read operations per second |
|
11 |
# w/s write operations per second |
|
12 |
# kr/s kilobytes read per second |
|
13 |
# kw/s kilobytes write per second |
|
14 |
# wait transactions queue length |
|
15 |
# svc_t average duration of transactions, in milliseconds |
|
16 |
# %b % of time the device had one or more outstanding transac- |
|
17 |
# tions |
|
18 |
# E.g. iostat[ad10,4], parameter $2 starts from 2 (first is the disk identifier) |
|
19 |
UserParameter=iostat[*],iostat -x $1|tail -1|tr -s ' '|cut -d' ' -f $2 |
|
20 |