diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-02 11:16:24 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2013-09-02 11:16:24 (GMT) |
commit | b15adb7762b6caaecaa83637abfcf5fdb4802092 (patch) | |
tree | 64eddbe2aa1a7f98a140be0f7973f05d7a781ae0 /contrib/aix/pg_stat | |
parent | c4d5882b9e1d07c7b61091062b7d085fa5f00284 (diff) | |
download | monitoring-plugins-b15adb7762b6caaecaa83637abfcf5fdb4802092.tar.gz |
Remove "contrib" plugins
These days, sites such as "Nagios Exchange" are a much better place for
publishing plugins not maintained by the Plugins Development Team.
Diffstat (limited to 'contrib/aix/pg_stat')
-rw-r--r-- | contrib/aix/pg_stat | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/contrib/aix/pg_stat b/contrib/aix/pg_stat deleted file mode 100644 index e0603ec..0000000 --- a/contrib/aix/pg_stat +++ /dev/null | |||
@@ -1,45 +0,0 @@ | |||
1 | #!/bin/ksh | ||
2 | |||
3 | #============================================================================== | ||
4 | # Script was originally created to collect stats and dump then to a log file | ||
5 | # every five minutes. But we like this better (the log file thing is still | ||
6 | # good if you want to track availability). | ||
7 | # | ||
8 | # Authors: SpEnTBoY | ||
9 | # TheRocker | ||
10 | # | ||
11 | # Email: lonny@abyss.za.org | ||
12 | # therocker@pawprints.2y.net | ||
13 | #============================================================================== | ||
14 | |||
15 | #========================================================================================= | ||
16 | # | ||
17 | # The best way to do this is to use Kerberos but we use rsh here because our monitoring | ||
18 | # workstation doesn't have Kerberos installed. In order for this to work, the remote | ||
19 | # host ($1) must have a .rhosts file that contains a line like: | ||
20 | # | ||
21 | # monitorhost nagiosuser | ||
22 | # | ||
23 | #========================================================================================= | ||
24 | |||
25 | PAGING2=`rsh $1 -l root lsps -a -s | grep -v Paging | tr -s ' '| cut -d' ' -f3 | cut -d'%' -f1` | ||
26 | |||
27 | |||
28 | if [ "$PAGING2" -gt "35" ] && [ "$PAGING2" -lt "50" ] | ||
29 | then | ||
30 | echo "Paging Space is over 35% ("$PAGING2")%" | ||
31 | exit 1 | ||
32 | fi | ||
33 | |||
34 | if [ "$PAGING2" -gt "49" ] | ||
35 | then | ||
36 | echo "WARNING! Paging Space is over 50% ("$PAGING2")%" | ||
37 | exit 2 | ||
38 | fi | ||
39 | |||
40 | if [ "$PAGING2" -lt "34" ] | ||
41 | then | ||
42 | echo "Paging Space is less than 34% ("$PAGING2")%" | ||
43 | exit 0 | ||
44 | fi | ||
45 | |||