├── LICENSE
├── README.md
├── alertws.sh
├── ansible
├── thin_pool.yaml
└── thin_pool
│ ├── README.rst
│ ├── files
│ ├── cmnd_alias-lvm
│ ├── thinpool.conf
│ └── user-zabbix_lvm
│ └── tasks
│ └── main.yml
├── check_bkp_mikrotik.sh
├── check_voip_pap2t.sh
├── gammuinject.sh
└── templates
├── README.md
├── Template_App_Varnish.xml
├── Template_App_httpd_Stats.xml
├── Template_App_httpd_Subprocesses.xml
├── Template_CPQIDA-MIB-valuemapping.xml
├── Template_CPQIDA-MIB.xml
├── Template_Dell_OpenManage.xml
├── Template_HP_Proliant_ML150_G5.xml
├── Template_LVM.yaml
├── Template_MIB_RFC1213.xml
├── Template_MIB_UPS.xml
├── Template_SELinux.xml
├── Template_SNMP_MegaRAID_SAS.xml
├── Template_mdraid.xml
├── Template_netfilter.xml
├── ValueMapping-CPQIDA-MIB.txt
├── ValueMapping-UPS-MIB.txt
└── userparameter_lvm.conf
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 2, June 1991
3 |
4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6 | Everyone is permitted to copy and distribute verbatim copies
7 | of this license document, but changing it is not allowed.
8 |
9 | Preamble
10 |
11 | The licenses for most software are designed to take away your
12 | freedom to share and change it. By contrast, the GNU General Public
13 | License is intended to guarantee your freedom to share and change free
14 | software--to make sure the software is free for all its users. This
15 | General Public License applies to most of the Free Software
16 | Foundation's software and to any other program whose authors commit to
17 | using it. (Some other Free Software Foundation software is covered by
18 | the GNU Lesser General Public License instead.) You can apply it to
19 | your programs, too.
20 |
21 | When we speak of free software, we are referring to freedom, not
22 | price. Our General Public Licenses are designed to make sure that you
23 | have the freedom to distribute copies of free software (and charge for
24 | this service if you wish), that you receive source code or can get it
25 | if you want it, that you can change the software or use pieces of it
26 | in new free programs; and that you know you can do these things.
27 |
28 | To protect your rights, we need to make restrictions that forbid
29 | anyone to deny you these rights or to ask you to surrender the rights.
30 | These restrictions translate to certain responsibilities for you if you
31 | distribute copies of the software, or if you modify it.
32 |
33 | For example, if you distribute copies of such a program, whether
34 | gratis or for a fee, you must give the recipients all the rights that
35 | you have. You must make sure that they, too, receive or can get the
36 | source code. And you must show them these terms so they know their
37 | rights.
38 |
39 | We protect your rights with two steps: (1) copyright the software, and
40 | (2) offer you this license which gives you legal permission to copy,
41 | distribute and/or modify the software.
42 |
43 | Also, for each author's protection and ours, we want to make certain
44 | that everyone understands that there is no warranty for this free
45 | software. If the software is modified by someone else and passed on, we
46 | want its recipients to know that what they have is not the original, so
47 | that any problems introduced by others will not reflect on the original
48 | authors' reputations.
49 |
50 | Finally, any free program is threatened constantly by software
51 | patents. We wish to avoid the danger that redistributors of a free
52 | program will individually obtain patent licenses, in effect making the
53 | program proprietary. To prevent this, we have made it clear that any
54 | patent must be licensed for everyone's free use or not licensed at all.
55 |
56 | The precise terms and conditions for copying, distribution and
57 | modification follow.
58 |
59 | GNU GENERAL PUBLIC LICENSE
60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61 |
62 | 0. This License applies to any program or other work which contains
63 | a notice placed by the copyright holder saying it may be distributed
64 | under the terms of this General Public License. The "Program", below,
65 | refers to any such program or work, and a "work based on the Program"
66 | means either the Program or any derivative work under copyright law:
67 | that is to say, a work containing the Program or a portion of it,
68 | either verbatim or with modifications and/or translated into another
69 | language. (Hereinafter, translation is included without limitation in
70 | the term "modification".) Each licensee is addressed as "you".
71 |
72 | Activities other than copying, distribution and modification are not
73 | covered by this License; they are outside its scope. The act of
74 | running the Program is not restricted, and the output from the Program
75 | is covered only if its contents constitute a work based on the
76 | Program (independent of having been made by running the Program).
77 | Whether that is true depends on what the Program does.
78 |
79 | 1. You may copy and distribute verbatim copies of the Program's
80 | source code as you receive it, in any medium, provided that you
81 | conspicuously and appropriately publish on each copy an appropriate
82 | copyright notice and disclaimer of warranty; keep intact all the
83 | notices that refer to this License and to the absence of any warranty;
84 | and give any other recipients of the Program a copy of this License
85 | along with the Program.
86 |
87 | You may charge a fee for the physical act of transferring a copy, and
88 | you may at your option offer warranty protection in exchange for a fee.
89 |
90 | 2. You may modify your copy or copies of the Program or any portion
91 | of it, thus forming a work based on the Program, and copy and
92 | distribute such modifications or work under the terms of Section 1
93 | above, provided that you also meet all of these conditions:
94 |
95 | a) You must cause the modified files to carry prominent notices
96 | stating that you changed the files and the date of any change.
97 |
98 | b) You must cause any work that you distribute or publish, that in
99 | whole or in part contains or is derived from the Program or any
100 | part thereof, to be licensed as a whole at no charge to all third
101 | parties under the terms of this License.
102 |
103 | c) If the modified program normally reads commands interactively
104 | when run, you must cause it, when started running for such
105 | interactive use in the most ordinary way, to print or display an
106 | announcement including an appropriate copyright notice and a
107 | notice that there is no warranty (or else, saying that you provide
108 | a warranty) and that users may redistribute the program under
109 | these conditions, and telling the user how to view a copy of this
110 | License. (Exception: if the Program itself is interactive but
111 | does not normally print such an announcement, your work based on
112 | the Program is not required to print an announcement.)
113 |
114 | These requirements apply to the modified work as a whole. If
115 | identifiable sections of that work are not derived from the Program,
116 | and can be reasonably considered independent and separate works in
117 | themselves, then this License, and its terms, do not apply to those
118 | sections when you distribute them as separate works. But when you
119 | distribute the same sections as part of a whole which is a work based
120 | on the Program, the distribution of the whole must be on the terms of
121 | this License, whose permissions for other licensees extend to the
122 | entire whole, and thus to each and every part regardless of who wrote it.
123 |
124 | Thus, it is not the intent of this section to claim rights or contest
125 | your rights to work written entirely by you; rather, the intent is to
126 | exercise the right to control the distribution of derivative or
127 | collective works based on the Program.
128 |
129 | In addition, mere aggregation of another work not based on the Program
130 | with the Program (or with a work based on the Program) on a volume of
131 | a storage or distribution medium does not bring the other work under
132 | the scope of this License.
133 |
134 | 3. You may copy and distribute the Program (or a work based on it,
135 | under Section 2) in object code or executable form under the terms of
136 | Sections 1 and 2 above provided that you also do one of the following:
137 |
138 | a) Accompany it with the complete corresponding machine-readable
139 | source code, which must be distributed under the terms of Sections
140 | 1 and 2 above on a medium customarily used for software interchange; or,
141 |
142 | b) Accompany it with a written offer, valid for at least three
143 | years, to give any third party, for a charge no more than your
144 | cost of physically performing source distribution, a complete
145 | machine-readable copy of the corresponding source code, to be
146 | distributed under the terms of Sections 1 and 2 above on a medium
147 | customarily used for software interchange; or,
148 |
149 | c) Accompany it with the information you received as to the offer
150 | to distribute corresponding source code. (This alternative is
151 | allowed only for noncommercial distribution and only if you
152 | received the program in object code or executable form with such
153 | an offer, in accord with Subsection b above.)
154 |
155 | The source code for a work means the preferred form of the work for
156 | making modifications to it. For an executable work, complete source
157 | code means all the source code for all modules it contains, plus any
158 | associated interface definition files, plus the scripts used to
159 | control compilation and installation of the executable. However, as a
160 | special exception, the source code distributed need not include
161 | anything that is normally distributed (in either source or binary
162 | form) with the major components (compiler, kernel, and so on) of the
163 | operating system on which the executable runs, unless that component
164 | itself accompanies the executable.
165 |
166 | If distribution of executable or object code is made by offering
167 | access to copy from a designated place, then offering equivalent
168 | access to copy the source code from the same place counts as
169 | distribution of the source code, even though third parties are not
170 | compelled to copy the source along with the object code.
171 |
172 | 4. You may not copy, modify, sublicense, or distribute the Program
173 | except as expressly provided under this License. Any attempt
174 | otherwise to copy, modify, sublicense or distribute the Program is
175 | void, and will automatically terminate your rights under this License.
176 | However, parties who have received copies, or rights, from you under
177 | this License will not have their licenses terminated so long as such
178 | parties remain in full compliance.
179 |
180 | 5. You are not required to accept this License, since you have not
181 | signed it. However, nothing else grants you permission to modify or
182 | distribute the Program or its derivative works. These actions are
183 | prohibited by law if you do not accept this License. Therefore, by
184 | modifying or distributing the Program (or any work based on the
185 | Program), you indicate your acceptance of this License to do so, and
186 | all its terms and conditions for copying, distributing or modifying
187 | the Program or works based on it.
188 |
189 | 6. Each time you redistribute the Program (or any work based on the
190 | Program), the recipient automatically receives a license from the
191 | original licensor to copy, distribute or modify the Program subject to
192 | these terms and conditions. You may not impose any further
193 | restrictions on the recipients' exercise of the rights granted herein.
194 | You are not responsible for enforcing compliance by third parties to
195 | this License.
196 |
197 | 7. If, as a consequence of a court judgment or allegation of patent
198 | infringement or for any other reason (not limited to patent issues),
199 | conditions are imposed on you (whether by court order, agreement or
200 | otherwise) that contradict the conditions of this License, they do not
201 | excuse you from the conditions of this License. If you cannot
202 | distribute so as to satisfy simultaneously your obligations under this
203 | License and any other pertinent obligations, then as a consequence you
204 | may not distribute the Program at all. For example, if a patent
205 | license would not permit royalty-free redistribution of the Program by
206 | all those who receive copies directly or indirectly through you, then
207 | the only way you could satisfy both it and this License would be to
208 | refrain entirely from distribution of the Program.
209 |
210 | If any portion of this section is held invalid or unenforceable under
211 | any particular circumstance, the balance of the section is intended to
212 | apply and the section as a whole is intended to apply in other
213 | circumstances.
214 |
215 | It is not the purpose of this section to induce you to infringe any
216 | patents or other property right claims or to contest validity of any
217 | such claims; this section has the sole purpose of protecting the
218 | integrity of the free software distribution system, which is
219 | implemented by public license practices. Many people have made
220 | generous contributions to the wide range of software distributed
221 | through that system in reliance on consistent application of that
222 | system; it is up to the author/donor to decide if he or she is willing
223 | to distribute software through any other system and a licensee cannot
224 | impose that choice.
225 |
226 | This section is intended to make thoroughly clear what is believed to
227 | be a consequence of the rest of this License.
228 |
229 | 8. If the distribution and/or use of the Program is restricted in
230 | certain countries either by patents or by copyrighted interfaces, the
231 | original copyright holder who places the Program under this License
232 | may add an explicit geographical distribution limitation excluding
233 | those countries, so that distribution is permitted only in or among
234 | countries not thus excluded. In such case, this License incorporates
235 | the limitation as if written in the body of this License.
236 |
237 | 9. The Free Software Foundation may publish revised and/or new versions
238 | of the General Public License from time to time. Such new versions will
239 | be similar in spirit to the present version, but may differ in detail to
240 | address new problems or concerns.
241 |
242 | Each version is given a distinguishing version number. If the Program
243 | specifies a version number of this License which applies to it and "any
244 | later version", you have the option of following the terms and conditions
245 | either of that version or of any later version published by the Free
246 | Software Foundation. If the Program does not specify a version number of
247 | this License, you may choose any version ever published by the Free Software
248 | Foundation.
249 |
250 | 10. If you wish to incorporate parts of the Program into other free
251 | programs whose distribution conditions are different, write to the author
252 | to ask for permission. For software which is copyrighted by the Free
253 | Software Foundation, write to the Free Software Foundation; we sometimes
254 | make exceptions for this. Our decision will be guided by the two goals
255 | of preserving the free status of all derivatives of our free software and
256 | of promoting the sharing and reuse of software generally.
257 |
258 | NO WARRANTY
259 |
260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268 | REPAIR OR CORRECTION.
269 |
270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278 | POSSIBILITY OF SUCH DAMAGES.
279 |
280 | END OF TERMS AND CONDITIONS
281 |
282 | How to Apply These Terms to Your New Programs
283 |
284 | If you develop a new program, and you want it to be of the greatest
285 | possible use to the public, the best way to achieve this is to make it
286 | free software which everyone can redistribute and change under these terms.
287 |
288 | To do so, attach the following notices to the program. It is safest
289 | to attach them to the start of each source file to most effectively
290 | convey the exclusion of warranty; and each file should have at least
291 | the "copyright" line and a pointer to where the full notice is found.
292 |
293 | Zabbix monitoring things
294 | Copyright (C) 2013 George Machitidze
295 |
296 | This program is free software; you can redistribute it and/or modify
297 | it under the terms of the GNU General Public License as published by
298 | the Free Software Foundation; either version 2 of the License, or
299 | (at your option) any later version.
300 |
301 | This program is distributed in the hope that it will be useful,
302 | but WITHOUT ANY WARRANTY; without even the implied warranty of
303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304 | GNU General Public License for more details.
305 |
306 | You should have received a copy of the GNU General Public License along
307 | with this program; if not, write to the Free Software Foundation, Inc.,
308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
309 |
310 | Also add information on how to contact you by electronic and paper mail.
311 |
312 | If the program is interactive, make it output a short notice like this
313 | when it starts in an interactive mode:
314 |
315 | Gnomovision version 69, Copyright (C) year name of author
316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
317 | This is free software, and you are welcome to redistribute it
318 | under certain conditions; type `show c' for details.
319 |
320 | The hypothetical commands `show w' and `show c' should show the appropriate
321 | parts of the General Public License. Of course, the commands you use may
322 | be called something other than `show w' and `show c'; they could even be
323 | mouse-clicks or menu items--whatever suits your program.
324 |
325 | You should also get your employer (if you work as a programmer) or your
326 | school, if any, to sign a "copyright disclaimer" for the program, if
327 | necessary. Here is a sample; alter the names:
328 |
329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program
330 | `Gnomovision' (which makes passes at compilers) written by James Hacker.
331 |
332 | {signature of Ty Coon}, 1 April 1989
333 | Ty Coon, President of Vice
334 |
335 | This General Public License does not permit incorporating your program into
336 | proprietary programs. If your program is a subroutine library, you may
337 | consider it more useful to permit linking proprietary applications with the
338 | library. If this is what you want to do, use the GNU Lesser General
339 | Public License instead of this License.
340 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | zabbix
2 | ======
3 |
4 | Zabbix monitoring things
5 |
--------------------------------------------------------------------------------
/alertws.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | usage(){
4 | echo "Usage: $0 [MSISDN] [message]
"
5 | exit 1
6 | }
7 |
8 | [[ $# -eq 0 ]] && usage
9 |
10 | to="$1"
11 | subj="$2"
12 | body="$3"
13 |
14 | to="$(perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$to")"
15 | subj="$(perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$subj")"
16 | body="$(perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$body")"
17 |
18 | if [ "$(curl -s "http://ws.test.ge/sms.php?to=$1&subj=$subj")" == "OK" ]; then
19 | exit 0
20 | else
21 | exit 1
22 | fi
23 |
--------------------------------------------------------------------------------
/ansible/thin_pool.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | #This playbook configures thin pool monitoring
3 | - hosts: "{{ target }}"
4 | roles:
5 | - name: thin_pool
--------------------------------------------------------------------------------
/ansible/thin_pool/README.rst:
--------------------------------------------------------------------------------
1 | Role allows zabbix user to run lvs commands and then makes thin pool config
--------------------------------------------------------------------------------
/ansible/thin_pool/files/cmnd_alias-lvm:
--------------------------------------------------------------------------------
1 | ##
2 | ## Linux Logical Volume Management (LVM) command alias specifications
3 | ##
4 | Cmnd_Alias LVM_LVS = /sbin/lvs *
5 | Cmnd_Alias LVM_VGS = /sbin/vgs *
6 | Cmnd_Alias LVM_PVS = /sbin/pvs *
7 |
--------------------------------------------------------------------------------
/ansible/thin_pool/files/thinpool.conf:
--------------------------------------------------------------------------------
1 | # LVM thin pool usage
2 | UserParameter=lvm_thin_pool.discovery, LVM_SUPPRESS_FD_WARNINGS=1 /usr/bin/sudo /sbin/lvs --no-heading -o lv_attr,lv_dm_path|sed 's/\/dev\/mapper\///'|cut -b 3-|grep -P "^t"|awk 'BEGIN { ORS = ""; print "{\n \"data\":[\n\n"}; { printf " %s{\"{#TPNAME}\":\"%s\"}",sep, $2; sep=", \n"}; END { print "\n\n ]\n}" }'
3 | UserParameter=lvm_thin_volume.discovery, LVM_SUPPRESS_FD_WARNINGS=1 /usr/bin/sudo /sbin/lvs --no-heading -o lv_attr,lv_dm_path|sed 's/\/dev\/mapper\///'|cut -b 3-|grep -P "^V"|awk 'BEGIN { ORS = ""; print "{\n \"data\":[\n\n"}; { printf " %s{\"{#LVNAME}\":\"%s\"}",sep, $2; sep=", \n"}; END { print "\n\n ]\n}" }'
4 | UserParameter=lvm.data[*], LVM_SUPPRESS_FD_WARNINGS=1 /usr/bin/sudo /sbin/lvs --no-heading -o lv_dm_path,$2|sed 's/\/dev\/mapper\///'|awk '$$1 == "$1" { print $$2 }'
--------------------------------------------------------------------------------
/ansible/thin_pool/files/user-zabbix_lvm:
--------------------------------------------------------------------------------
1 | ##
2 | ## zabbix user privilege specifications
3 | ##
4 | zabbix ALL=NOPASSWD: LVM_LVS
5 | zabbix ALL=NOPASSWD: LVM_VGS
6 | zabbix ALL=NOPASSWD: LVM_PVS
7 |
--------------------------------------------------------------------------------
/ansible/thin_pool/tasks/main.yml:
--------------------------------------------------------------------------------
1 | ---
2 | #LVM
3 | - name: put thinpool.conf
4 | copy:
5 | src: thinpool.conf
6 | dest: /etc/zabbix/zabbix_agentd.d/thinpool.conf
7 |
8 | - name: put cmnd_alias-lvm
9 | copy:
10 | src: cmnd_alias-lvm
11 | dest: /etc/sudoers.d/cmnd_alias-lvm
12 |
13 | - name: put user-zabbix_lvm
14 | copy:
15 | src: user-zabbix_lvm
16 | dest: /etc/sudoers.d/user-zabbix_lvm
17 |
18 | - name: restart zabbix-agent daemon
19 | service:
20 | name: zabbix-agent
21 | enabled: yes
22 | state: restarted
23 |
--------------------------------------------------------------------------------
/check_bkp_mikrotik.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | BYTES="$(stat /backup/mikrotik/`date +\%F`/today.backup 2>/dev/null|grep Size|awk '{ print $2 }')"
4 |
5 | if [[ "$BYTES" =~ ^-?[0-9]+$ ]]; then
6 | echo $BYTES
7 | else
8 | echo "0"
9 | fi
10 |
--------------------------------------------------------------------------------
/check_voip_pap2t.sh:
--------------------------------------------------------------------------------
1 | #!/bin/
2 |
3 | #connection status check for Cisco/Linksys PAP2T
4 |
5 | if [ "$1" == "uptime" ]; then
6 | curl --digest -u "$3:$4" "http://$2/" --connect-timeout 1 --retry 0 --stderr - |grep Elapsed|sed 's/.*darkblue\">\(.*\)<\/font.*/\1/'|awk -F: '{ print ($1 * 3600) + ($2 * 60) + $3 }'
7 | elif [ "$1" == "registration" ]; then
8 | curl --digest -u "$3:$4" "http://$2/" --connect-timeout 1 --retry 0 --stderr - |grep -P "Registration State:.*Online"|wc -l
9 | fi
10 |
--------------------------------------------------------------------------------
/gammuinject.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | # zabbix gammu sms sender via gammu-smsd-inject
3 |
4 | usage(){
5 | echo "Usage: $0 [MSISDN] [message] "
6 | exit 1
7 | }
8 |
9 | [[ $# -eq 0 ]] && usage
10 |
11 | to="$1"
12 | subj="$2"
13 | body="$3"
14 |
15 | sudo gammu-smsd-inject TEXT +$to -text "$subj"
16 |
17 |
--------------------------------------------------------------------------------
/templates/README.md:
--------------------------------------------------------------------------------
1 | Template_CPQIDA-MIB - CPQIDA-MIB / Compaq/HP Controller Template
2 |
--------------------------------------------------------------------------------
/templates/Template_App_httpd_Stats.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 2.0
4 | 2013-12-29T18:11:01Z
5 |
6 |
7 | Templates
8 |
9 |
10 |
11 |
12 | Template App httpd Stats
13 | Template App httpd Stats
14 |
15 |
16 | Templates
17 |
18 |
19 |
20 |
21 | Apache Stats
22 |
23 |
24 | Apache Worker
25 |
26 |
27 |
28 | -
29 | httpd - Busy Workers
30 | 2
31 |
32 | 0
33 |
34 | apache[localhost,BusyWorkers]
35 | 0
36 | 14
37 | 365
38 | 0
39 | 3
40 |
41 | Workers
42 | 0
43 |
44 |
45 | 0
46 | 0
47 |
48 | 0
49 |
50 | 1
51 |
52 |
53 |
54 | 0
55 | 0
56 |
57 |
58 |
59 |
60 |
61 |
62 | 0
63 |
64 |
65 | Apache Worker
66 |
67 |
68 |
69 |
70 | -
71 | httpd - Bytes Per Request
72 | 2
73 |
74 | 0
75 |
76 | apache[localhost,BytesPerReq]
77 | 0
78 | 14
79 | 365
80 | 0
81 | 0
82 |
83 | B/req
84 | 0
85 |
86 |
87 | 0
88 | 0
89 |
90 | 0
91 |
92 | 1
93 |
94 |
95 |
96 | 0
97 | 0
98 |
99 |
100 |
101 |
102 |
103 |
104 | 0
105 |
106 |
107 | Apache Stats
108 |
109 |
110 |
111 |
112 | -
113 | httpd - Bytes Per Second
114 | 2
115 |
116 | 0
117 |
118 | apache[localhost,BytesPerSec]
119 | 0
120 | 14
121 | 365
122 | 0
123 | 0
124 |
125 | B/s
126 | 0
127 |
128 |
129 | 0
130 | 0
131 |
132 | 0
133 |
134 | 1
135 |
136 |
137 |
138 | 0
139 | 0
140 |
141 |
142 |
143 |
144 |
145 |
146 | 0
147 |
148 |
149 | Apache Stats
150 |
151 |
152 |
153 |
154 | -
155 | httpd - CPU Load
156 | 2
157 |
158 | 0
159 |
160 | apache[localhost,CPULoad]
161 | 0
162 | 14
163 | 365
164 | 0
165 | 0
166 |
167 |
168 | 0
169 |
170 |
171 | 0
172 | 0
173 |
174 | 0
175 |
176 | 1
177 |
178 |
179 |
180 | 0
181 | 0
182 |
183 |
184 |
185 |
186 |
187 |
188 | 0
189 |
190 |
191 | Apache Stats
192 |
193 |
194 |
195 |
196 | -
197 | httpd - CPU usage
198 | 0
199 |
200 | 0
201 |
202 | system.run["ps --no-heading -C httpd,httpd.worker,httpd.event -L -o pcpu|awk '{s+=$1} END {print s}'",wait]
203 | 15
204 | 14
205 | 365
206 | 0
207 | 0
208 |
209 | %
210 | 0
211 |
212 |
213 | 0
214 | 0
215 |
216 | 0
217 |
218 | 1
219 |
220 |
221 |
222 | 0
223 | 0
224 |
225 |
226 |
227 |
228 |
229 |
230 | 0
231 |
232 |
233 |
234 | -
235 | httpd - Idle Workers
236 | 2
237 |
238 | 0
239 |
240 | apache[localhost,IdleWorkers]
241 | 0
242 | 14
243 | 365
244 | 0
245 | 3
246 |
247 | Workers
248 | 0
249 |
250 |
251 | 0
252 | 0
253 |
254 | 0
255 |
256 | 1
257 |
258 |
259 |
260 | 0
261 | 0
262 |
263 |
264 |
265 |
266 |
267 |
268 | 0
269 |
270 |
271 | Apache Stats
272 |
273 |
274 |
275 |
276 | -
277 | httpd - Requests Per Second
278 | 2
279 |
280 | 0
281 |
282 | apache[localhost,ReqPerSec]
283 | 0
284 | 14
285 | 365
286 | 0
287 | 0
288 |
289 | req/s
290 | 0
291 |
292 |
293 | 0
294 | 0
295 |
296 | 0
297 |
298 | 1
299 |
300 |
301 |
302 | 0
303 | 0
304 |
305 |
306 |
307 |
308 |
309 |
310 | 0
311 |
312 |
313 | Apache Stats
314 |
315 |
316 |
317 |
318 | -
319 | httpd - Total Accesses
320 | 2
321 |
322 | 0
323 |
324 | apache[localhost,TotalAccesses]
325 | 0
326 | 14
327 | 365
328 | 0
329 | 3
330 |
331 |
332 | 0
333 |
334 |
335 | 0
336 | 0
337 |
338 | 0
339 |
340 | 1
341 |
342 |
343 |
344 | 0
345 | 0
346 |
347 |
348 |
349 |
350 |
351 |
352 | 0
353 |
354 |
355 | Apache Stats
356 |
357 |
358 |
359 |
360 | -
361 | httpd - Total Data Transfer
362 | 2
363 |
364 | 1
365 |
366 | apache[localhost,TotalkBytes]
367 | 0
368 | 14
369 | 365
370 | 0
371 | 3
372 |
373 | B
374 | 0
375 |
376 |
377 | 0
378 | 0
379 |
380 | 0
381 |
382 | 1024
383 |
384 |
385 |
386 | 0
387 | 0
388 |
389 |
390 |
391 |
392 |
393 |
394 | 0
395 |
396 |
397 | Apache Stats
398 |
399 |
400 |
401 |
402 | -
403 | httpd - Uptime
404 | 2
405 |
406 | 0
407 |
408 | apache[localhost,Uptime]
409 | 0
410 | 14
411 | 365
412 | 0
413 | 3
414 |
415 | uptime
416 | 0
417 |
418 |
419 | 0
420 | 0
421 |
422 | 0
423 |
424 | 1
425 |
426 |
427 |
428 | 0
429 | 0
430 |
431 |
432 |
433 |
434 |
435 |
436 | 0
437 |
438 |
439 | Apache Stats
440 |
441 |
442 |
443 |
444 | -
445 | httpd wks - Closing
446 | 2
447 |
448 | 0
449 |
450 | apache[localhost,Closingconnection]
451 | 0
452 | 14
453 | 365
454 | 0
455 | 3
456 |
457 |
458 | 0
459 |
460 |
461 | 0
462 | 0
463 |
464 | 0
465 |
466 | 1
467 |
468 |
469 |
470 | 0
471 | 0
472 |
473 |
474 |
475 |
476 |
477 |
478 | 0
479 |
480 |
481 | Apache Worker
482 |
483 |
484 |
485 |
486 | -
487 | httpd wks - DNS Lookup
488 | 2
489 |
490 | 0
491 |
492 | apache[localhost,DNSLookup]
493 | 0
494 | 14
495 | 365
496 | 0
497 | 3
498 |
499 |
500 | 0
501 |
502 |
503 | 0
504 | 0
505 |
506 | 0
507 |
508 | 1
509 |
510 |
511 |
512 | 0
513 | 0
514 |
515 |
516 |
517 |
518 |
519 |
520 | 0
521 |
522 |
523 | Apache Worker
524 |
525 |
526 |
527 |
528 | -
529 | httpd wks - Gr. Finishing
530 | 2
531 |
532 | 0
533 |
534 | apache[localhost,Gracefullyfinishing]
535 | 0
536 | 14
537 | 365
538 | 0
539 | 3
540 |
541 |
542 | 0
543 |
544 |
545 | 0
546 | 0
547 |
548 | 0
549 |
550 | 1
551 |
552 |
553 |
554 | 0
555 | 0
556 |
557 |
558 |
559 |
560 |
561 |
562 | 0
563 |
564 |
565 | Apache Worker
566 |
567 |
568 |
569 |
570 | -
571 | httpd wks - Idle cleanup
572 | 2
573 |
574 | 0
575 |
576 | apache[localhost,Idlecleanupofworker]
577 | 0
578 | 14
579 | 365
580 | 0
581 | 3
582 |
583 |
584 | 0
585 |
586 |
587 | 0
588 | 0
589 |
590 | 0
591 |
592 | 1
593 |
594 |
595 |
596 | 0
597 | 0
598 |
599 |
600 |
601 |
602 |
603 |
604 | 0
605 |
606 |
607 | Apache Worker
608 |
609 |
610 |
611 |
612 | -
613 | httpd wks - Keepalive/read
614 | 2
615 |
616 | 0
617 |
618 | apache[localhost,Keepaliveread]
619 | 0
620 | 14
621 | 365
622 | 0
623 | 3
624 |
625 |
626 | 0
627 |
628 |
629 | 0
630 | 0
631 |
632 | 0
633 |
634 | 1
635 |
636 |
637 |
638 | 0
639 | 0
640 |
641 |
642 |
643 |
644 |
645 |
646 | 0
647 |
648 |
649 | Apache Worker
650 |
651 |
652 |
653 |
654 | -
655 | httpd wks - Logging
656 | 2
657 |
658 | 0
659 |
660 | apache[localhost,Logging]
661 | 0
662 | 14
663 | 365
664 | 0
665 | 3
666 |
667 |
668 | 0
669 |
670 |
671 | 0
672 | 0
673 |
674 | 0
675 |
676 | 1
677 |
678 |
679 |
680 | 0
681 | 0
682 |
683 |
684 |
685 |
686 |
687 |
688 | 0
689 |
690 |
691 | Apache Worker
692 |
693 |
694 |
695 |
696 | -
697 | httpd wks - Open slot
698 | 2
699 |
700 | 0
701 |
702 | apache[localhost,Openslotwithnocurrentprocess]
703 | 0
704 | 14
705 | 365
706 | 0
707 | 3
708 |
709 |
710 | 0
711 |
712 |
713 | 0
714 | 0
715 |
716 | 0
717 |
718 | 1
719 |
720 |
721 |
722 | 0
723 | 0
724 |
725 |
726 |
727 |
728 |
729 |
730 | 0
731 |
732 |
733 | Apache Worker
734 |
735 |
736 |
737 |
738 | -
739 | httpd wks - Reading Req
740 | 2
741 |
742 | 0
743 |
744 | apache[localhost,ReadingRequest]
745 | 0
746 | 14
747 | 365
748 | 0
749 | 3
750 |
751 |
752 | 0
753 |
754 |
755 | 0
756 | 0
757 |
758 | 0
759 |
760 | 1
761 |
762 |
763 |
764 | 0
765 | 0
766 |
767 |
768 |
769 |
770 |
771 |
772 | 0
773 |
774 |
775 | Apache Worker
776 |
777 |
778 |
779 |
780 | -
781 | httpd wks - Sending Reply
782 | 2
783 |
784 | 0
785 |
786 | apache[localhost,SendingReply]
787 | 0
788 | 14
789 | 365
790 | 0
791 | 3
792 |
793 |
794 | 0
795 |
796 |
797 | 0
798 | 0
799 |
800 | 0
801 |
802 | 1
803 |
804 |
805 |
806 | 0
807 | 0
808 |
809 |
810 |
811 |
812 |
813 |
814 | 0
815 |
816 |
817 | Apache Worker
818 |
819 |
820 |
821 |
822 | -
823 | httpd wks - Starting up
824 | 2
825 |
826 | 0
827 |
828 | apache[localhost,Startingup]
829 | 0
830 | 14
831 | 365
832 | 0
833 | 3
834 |
835 |
836 | 0
837 |
838 |
839 | 0
840 | 0
841 |
842 | 0
843 |
844 | 1
845 |
846 |
847 |
848 | 0
849 | 0
850 |
851 |
852 |
853 |
854 |
855 |
856 | 0
857 |
858 |
859 | Apache Worker
860 |
861 |
862 |
863 |
864 | -
865 | httpd wks - Waiting
866 | 2
867 |
868 | 0
869 |
870 | apache[localhost,WaitingforConnection]
871 | 0
872 | 14
873 | 365
874 | 0
875 | 3
876 |
877 |
878 | 0
879 |
880 |
881 | 0
882 | 0
883 |
884 | 0
885 |
886 | 1
887 |
888 |
889 |
890 | 0
891 | 0
892 |
893 |
894 |
895 |
896 |
897 |
898 | 0
899 |
900 |
901 | Apache Worker
902 |
903 |
904 |
905 |
906 |
907 |
908 |
909 |
910 |
911 |
912 | Apache stats
913 | 2
914 | 2
915 |
916 |
917 | 0
918 | 900
919 | 200
920 | 1
921 | 1
922 | 1
923 | 1
924 | 0
925 | 0
926 | 0
927 |
928 |
929 | 0
930 | 0
931 |
932 | Apache - workers - states
933 | Template App httpd Stats
934 |
935 |
936 |
937 |
938 | 0
939 | 900
940 | 200
941 | 1
942 | 0
943 | 1
944 | 1
945 | 0
946 | 0
947 | 0
948 |
949 |
950 | 0
951 | 0
952 |
953 | Apache - Bytes per request
954 | Template App httpd Stats
955 |
956 |
957 |
958 |
959 |
960 |
961 |
962 |
963 |
964 |
965 | Apache - Bytes per request
966 | 900
967 | 200
968 | 0.0000
969 | 100.0000
970 | 1
971 | 1
972 | 0
973 | 1
974 | 0
975 | 0.0000
976 | 0.0000
977 | 0
978 | 0
979 | 0
980 | 0
981 |
982 |
983 | 0
984 | 0
985 | 00FF00
986 | 0
987 | 2
988 | 0
989 | -
990 | Template App httpd Stats
991 | apache[localhost,BytesPerReq]
992 |
993 |
994 |
995 |
996 |
997 | Apache - CPU Load
998 | 900
999 | 200
1000 | 0.0000
1001 | 100.0000
1002 | 1
1003 | 1
1004 | 0
1005 | 1
1006 | 0
1007 | 0.0000
1008 | 0.0000
1009 | 0
1010 | 0
1011 | 0
1012 | 0
1013 |
1014 |
1015 | 0
1016 | 0
1017 | FF0000
1018 | 0
1019 | 2
1020 | 0
1021 | -
1022 | Template App httpd Stats
1023 | apache[localhost,CPULoad]
1024 |
1025 |
1026 |
1027 |
1028 |
1029 | Apache - CPU Usage
1030 | 900
1031 | 200
1032 | 0.0000
1033 | 100.0000
1034 | 1
1035 | 1
1036 | 0
1037 | 1
1038 | 0
1039 | 0.0000
1040 | 0.0000
1041 | 0
1042 | 0
1043 | 0
1044 | 0
1045 |
1046 |
1047 | 0
1048 | 0
1049 | C80000
1050 | 0
1051 | 2
1052 | 0
1053 | -
1054 | Template App httpd Stats
1055 | system.run["ps --no-heading -C httpd,httpd.worker,httpd.event -L -o pcpu|awk '{s+=$1} END {print s}'",wait]
1056 |
1057 |
1058 |
1059 |
1060 |
1061 | Apache - Requests per second
1062 | 900
1063 | 200
1064 | 0.0000
1065 | 100.0000
1066 | 1
1067 | 1
1068 | 0
1069 | 1
1070 | 0
1071 | 0.0000
1072 | 0.0000
1073 | 0
1074 | 0
1075 | 0
1076 | 0
1077 |
1078 |
1079 | 0
1080 | 0
1081 | 00C800
1082 | 0
1083 | 2
1084 | 0
1085 | -
1086 | Template App httpd Stats
1087 | apache[localhost,ReqPerSec]
1088 |
1089 |
1090 |
1091 |
1092 |
1093 | Apache - Traffic
1094 | 900
1095 | 200
1096 | 0.0000
1097 | 100.0000
1098 | 1
1099 | 1
1100 | 0
1101 | 1
1102 | 0
1103 | 0.0000
1104 | 0.0000
1105 | 0
1106 | 0
1107 | 0
1108 | 0
1109 |
1110 |
1111 | 0
1112 | 5
1113 | 00C800
1114 | 0
1115 | 2
1116 | 0
1117 | -
1118 | Template App httpd Stats
1119 | apache[localhost,BytesPerSec]
1120 |
1121 |
1122 |
1123 |
1124 |
1125 | Apache - workers - Busy/Idle/Slot
1126 | 900
1127 | 200
1128 | 0.0000
1129 | 100.0000
1130 | 1
1131 | 1
1132 | 1
1133 | 1
1134 | 0
1135 | 0.0000
1136 | 0.0000
1137 | 1
1138 | 0
1139 | 0
1140 | 0
1141 |
1142 |
1143 | 1
1144 | 0
1145 | 00C800
1146 | 0
1147 | 2
1148 | 0
1149 | -
1150 | Template App httpd Stats
1151 | apache[localhost,IdleWorkers]
1152 |
1153 |
1154 |
1155 | 2
1156 | 0
1157 | 0000C8
1158 | 0
1159 | 2
1160 | 0
1161 | -
1162 | Template App httpd Stats
1163 | apache[localhost,Openslotwithnocurrentprocess]
1164 |
1165 |
1166 |
1167 | 0
1168 | 0
1169 | C80000
1170 | 0
1171 | 2
1172 | 0
1173 | -
1174 | Template App httpd Stats
1175 | apache[localhost,BusyWorkers]
1176 |
1177 |
1178 |
1179 |
1180 |
1181 | Apache - workers - states
1182 | 900
1183 | 200
1184 | 0.0000
1185 | 100.0000
1186 | 1
1187 | 1
1188 | 1
1189 | 1
1190 | 0
1191 | 0.0000
1192 | 0.0000
1193 | 1
1194 | 0
1195 | 0
1196 | 0
1197 |
1198 |
1199 | 0
1200 | 0
1201 | C8C800
1202 | 0
1203 | 2
1204 | 0
1205 | -
1206 | Template App httpd Stats
1207 | apache[localhost,Logging]
1208 |
1209 |
1210 |
1211 | 1
1212 | 0
1213 | C80000
1214 | 0
1215 | 2
1216 | 0
1217 | -
1218 | Template App httpd Stats
1219 | apache[localhost,Closingconnection]
1220 |
1221 |
1222 |
1223 | 9
1224 | 0
1225 | 009600
1226 | 0
1227 | 2
1228 | 0
1229 | -
1230 | Template App httpd Stats
1231 | apache[localhost,Startingup]
1232 |
1233 |
1234 |
1235 | 5
1236 | 0
1237 | C8C8C8
1238 | 0
1239 | 2
1240 | 0
1241 | -
1242 | Template App httpd Stats
1243 | apache[localhost,ReadingRequest]
1244 |
1245 |
1246 |
1247 | 4
1248 | 0
1249 | 960000
1250 | 0
1251 | 2
1252 | 0
1253 | -
1254 | Template App httpd Stats
1255 | apache[localhost,SendingReply]
1256 |
1257 |
1258 |
1259 | 2
1260 | 0
1261 | C800C8
1262 | 0
1263 | 2
1264 | 0
1265 | -
1266 | Template App httpd Stats
1267 | apache[localhost,Idlecleanupofworker]
1268 |
1269 |
1270 |
1271 | 3
1272 | 0
1273 | 00C8C8
1274 | 0
1275 | 2
1276 | 0
1277 | -
1278 | Template App httpd Stats
1279 | apache[localhost,Keepaliveread]
1280 |
1281 |
1282 |
1283 | 8
1284 | 0
1285 | 0000C8
1286 | 0
1287 | 2
1288 | 0
1289 | -
1290 | Template App httpd Stats
1291 | apache[localhost,Gracefullyfinishing]
1292 |
1293 |
1294 |
1295 | 7
1296 | 0
1297 | CCFFCC
1298 | 0
1299 | 2
1300 | 0
1301 | -
1302 | Template App httpd Stats
1303 | apache[localhost,WaitingforConnection]
1304 |
1305 |
1306 |
1307 | 6
1308 | 0
1309 | 000096
1310 | 0
1311 | 2
1312 | 0
1313 | -
1314 | Template App httpd Stats
1315 | apache[localhost,DNSLookup]
1316 |
1317 |
1318 |
1319 |
1320 |
1321 |
1322 |
--------------------------------------------------------------------------------
/templates/Template_App_httpd_Subprocesses.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 2.0
4 | 2013-12-29T18:12:57Z
5 |
6 |
7 | Templates
8 |
9 |
10 |
11 |
12 | Template App httpd Subprocesses
13 | Template App httpd Subprocesses
14 |
15 |
16 | Templates
17 |
18 |
19 |
20 |
21 | php-cgi
22 |
23 |
24 |
25 | -
26 | php-cgi CPU usage
27 | 0
28 |
29 | 0
30 |
31 | system.run["ps --no-heading -C php-cgi -L -o pcpu|awk '{s+=$1} END {print s}'",wait]
32 | 15
33 | 90
34 | 365
35 | 0
36 | 0
37 |
38 | %
39 | 0
40 |
41 |
42 | 0
43 | 0
44 |
45 | 0
46 |
47 | 1
48 |
49 |
50 |
51 | 0
52 | 0
53 |
54 |
55 |
56 |
57 |
58 |
59 | 0
60 |
61 |
62 | php-cgi
63 |
64 |
65 |
66 |
67 | -
68 | php-cgi processes running
69 | 0
70 |
71 | 0
72 |
73 | proc.num[php-cgi,,run,]
74 | 15
75 | 90
76 | 365
77 | 0
78 | 3
79 |
80 |
81 | 0
82 |
83 |
84 | 0
85 | 0
86 |
87 | 0
88 |
89 | 1
90 |
91 |
92 |
93 | 0
94 | 0
95 |
96 |
97 |
98 |
99 |
100 |
101 | 0
102 |
103 |
104 | php-cgi
105 |
106 |
107 |
108 |
109 | -
110 | php-cgi processes sleeping
111 | 0
112 |
113 | 0
114 |
115 | proc.num[php-cgi,,sleep,]
116 | 15
117 | 90
118 | 365
119 | 0
120 | 3
121 |
122 |
123 | 0
124 |
125 |
126 | 0
127 | 0
128 |
129 | 0
130 |
131 | 1
132 |
133 |
134 |
135 | 0
136 | 0
137 |
138 |
139 |
140 |
141 |
142 |
143 | 0
144 |
145 |
146 | php-cgi
147 |
148 |
149 |
150 |
151 | -
152 | php-cgi processes total
153 | 0
154 |
155 | 0
156 |
157 | proc.num[php-cgi,,,]
158 | 15
159 | 90
160 | 365
161 | 0
162 | 3
163 |
164 |
165 | 0
166 |
167 |
168 | 0
169 | 0
170 |
171 | 0
172 |
173 | 1
174 |
175 |
176 |
177 | 0
178 | 0
179 |
180 |
181 |
182 |
183 |
184 |
185 | 0
186 |
187 |
188 | php-cgi
189 |
190 |
191 |
192 |
193 | -
194 | php-cgi VmSize average usage
195 | 0
196 |
197 | 0
198 |
199 | proc.mem[php-cgi,,avg,]
200 | 15
201 | 90
202 | 365
203 | 0
204 | 0
205 |
206 | B
207 | 0
208 |
209 |
210 | 0
211 | 0
212 |
213 | 0
214 |
215 | 1
216 |
217 |
218 |
219 | 0
220 | 0
221 |
222 |
223 |
224 |
225 |
226 |
227 | 0
228 |
229 |
230 | php-cgi
231 |
232 |
233 |
234 |
235 | -
236 | php-cgi VmSize total usage
237 | 0
238 |
239 | 0
240 |
241 | proc.mem[php-cgi,,,]
242 | 15
243 | 90
244 | 365
245 | 0
246 | 0
247 |
248 | B
249 | 0
250 |
251 |
252 | 0
253 | 0
254 |
255 | 0
256 |
257 | 1
258 |
259 |
260 |
261 | 0
262 | 0
263 |
264 |
265 |
266 |
267 |
268 |
269 | 0
270 |
271 |
272 | php-cgi
273 |
274 |
275 |
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 |
285 |
286 | php-cgi CPU usage
287 | 900
288 | 200
289 | 0.0000
290 | 100.0000
291 | 1
292 | 1
293 | 0
294 | 1
295 | 0
296 | 0.0000
297 | 0.0000
298 | 0
299 | 0
300 | 0
301 | 0
302 |
303 |
304 | 0
305 | 0
306 | C80000
307 | 0
308 | 7
309 | 0
310 | -
311 | Template App httpd Subprocesses
312 | system.run["ps --no-heading -C php-cgi -L -o pcpu|awk '{s+=$1} END {print s}'",wait]
313 |
314 |
315 |
316 |
317 |
318 | php-cgi processes
319 | 900
320 | 200
321 | 0.0000
322 | 100.0000
323 | 1
324 | 1
325 | 0
326 | 1
327 | 0
328 | 0.0000
329 | 0.0000
330 | 0
331 | 0
332 | 0
333 | 0
334 |
335 |
336 | 2
337 | 0
338 | 00C800
339 | 0
340 | 2
341 | 0
342 | -
343 | Template App httpd Subprocesses
344 | proc.num[php-cgi,,sleep,]
345 |
346 |
347 |
348 | 0
349 | 0
350 | 0000C8
351 | 0
352 | 2
353 | 0
354 | -
355 | Template App httpd Subprocesses
356 | proc.num[php-cgi,,,]
357 |
358 |
359 |
360 | 1
361 | 0
362 | C80000
363 | 0
364 | 2
365 | 0
366 | -
367 | Template App httpd Subprocesses
368 | proc.num[php-cgi,,run,]
369 |
370 |
371 |
372 |
373 |
374 | php-cgi VmSize usage
375 | 900
376 | 200
377 | 0.0000
378 | 100.0000
379 | 1
380 | 1
381 | 0
382 | 1
383 | 0
384 | 0.0000
385 | 0.0000
386 | 0
387 | 0
388 | 0
389 | 0
390 |
391 |
392 | 1
393 | 0
394 | 00C800
395 | 1
396 | 2
397 | 0
398 | -
399 | Template App httpd Subprocesses
400 | proc.mem[php-cgi,,,]
401 |
402 |
403 |
404 | 0
405 | 0
406 | C80000
407 | 0
408 | 2
409 | 0
410 | -
411 | Template App httpd Subprocesses
412 | proc.mem[php-cgi,,avg,]
413 |
414 |
415 |
416 |
417 |
418 |
419 |
--------------------------------------------------------------------------------
/templates/Template_Dell_OpenManage.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 2.0
4 | 2013-12-29T18:14:18Z
5 |
6 |
7 | Templates
8 |
9 |
10 |
11 |
12 | Template Dell OpenManage
13 | Template Dell OpenManage
14 |
15 |
16 | Templates
17 |
18 |
19 |
20 |
21 | -
22 | OM: Chassis Intrusion Status
23 | 4
24 | public
25 | 0
26 | .1.3.6.1.4.1.674.10892.1.200.10.1.30.1
27 | systemStateChassisIntrusionStatusCombined
28 | 30
29 | 7
30 | 365
31 | 0
32 | 3
33 |
34 |
35 | 0
36 |
37 |
38 | 0
39 | 0
40 |
41 | 0
42 |
43 | 1
44 |
45 |
46 |
47 | 0
48 | 0
49 |
50 |
51 |
52 |
53 |
54 |
55 | 0
56 |
57 |
58 |
59 | -
60 | OM: Chassis Status
61 | 4
62 | public
63 | 0
64 | .1.3.6.1.4.1.674.10892.1.200.10.1.4.1
65 | systemStateChassisStatus
66 | 30
67 | 7
68 | 365
69 | 0
70 | 3
71 |
72 |
73 | 0
74 |
75 |
76 | 0
77 | 0
78 |
79 | 0
80 |
81 | 1
82 |
83 |
84 |
85 | 0
86 | 0
87 |
88 |
89 |
90 |
91 |
92 |
93 | 0
94 |
95 |
96 |
97 | -
98 | OM: Disk Controller 1 Status
99 | 4
100 | public
101 | 0
102 | .1.3.6.1.4.1.674.10893.1.20.130.1.1.37.1
103 | controllerRollupStatus.1
104 | 30
105 | 7
106 | 365
107 | 0
108 | 3
109 |
110 |
111 | 0
112 |
113 |
114 | 0
115 | 0
116 |
117 | 0
118 |
119 | 1
120 |
121 |
122 |
123 | 0
124 | 0
125 |
126 |
127 |
128 |
129 |
130 |
131 | 0
132 |
133 |
134 |
135 | -
136 | OM: Disk Controller 2 Status
137 | 4
138 | public
139 | 0
140 | .1.3.6.1.4.1.674.10893.1.20.130.1.1.37.2
141 | controllerRollupStatus.2
142 | 30
143 | 7
144 | 365
145 | 0
146 | 3
147 |
148 |
149 | 0
150 |
151 |
152 | 0
153 | 0
154 |
155 | 0
156 |
157 | 1
158 |
159 |
160 |
161 | 0
162 | 0
163 |
164 |
165 |
166 |
167 |
168 |
169 | 0
170 |
171 |
172 |
173 | -
174 | OM: Disk Enclosure 1 Status
175 | 4
176 | public
177 | 0
178 | .1.3.6.1.4.1.674.10893.1.20.130.3.1.23.1
179 | enclosureRollupStatus.1
180 | 30
181 | 7
182 | 365
183 | 0
184 | 3
185 |
186 |
187 | 0
188 |
189 |
190 | 0
191 | 0
192 |
193 | 0
194 |
195 | 1
196 |
197 |
198 |
199 | 0
200 | 0
201 |
202 |
203 |
204 |
205 |
206 |
207 | 0
208 |
209 |
210 |
211 | -
212 | OM: Disk Enclosure 2 Status
213 | 4
214 | public
215 | 0
216 | .1.3.6.1.4.1.674.10893.1.20.130.3.1.23.2
217 | enclosureRollupStatus.2
218 | 30
219 | 7
220 | 365
221 | 0
222 | 3
223 |
224 |
225 | 0
226 |
227 |
228 | 0
229 | 0
230 |
231 | 0
232 |
233 | 1
234 |
235 |
236 |
237 | 0
238 | 0
239 |
240 |
241 |
242 |
243 |
244 |
245 | 0
246 |
247 |
248 |
249 | -
250 | OM: Event Log Status
251 | 4
252 | public
253 | 0
254 | .1.3.6.1.4.1.674.10892.1.200.10.1.41.1
255 | systemStateEventLogStatusCombined
256 | 30
257 | 7
258 | 365
259 | 0
260 | 3
261 |
262 |
263 | 0
264 |
265 |
266 | 0
267 | 0
268 |
269 | 0
270 |
271 | 1
272 |
273 |
274 |
275 | 0
276 | 0
277 |
278 |
279 |
280 |
281 |
282 |
283 | 0
284 |
285 |
286 |
287 | -
288 | OM: Fan Status
289 | 4
290 | public
291 | 0
292 | .1.3.6.1.4.1.674.10892.1.200.10.1.21.1
293 | systemStateCoolingDeviceStatusCombined
294 | 30
295 | 7
296 | 365
297 | 0
298 | 3
299 |
300 |
301 | 0
302 |
303 |
304 | 0
305 | 0
306 |
307 | 0
308 |
309 | 1
310 |
311 |
312 |
313 | 0
314 | 0
315 |
316 |
317 |
318 |
319 |
320 |
321 | 0
322 |
323 |
324 |
325 | -
326 | OM: Fan Unit Status
327 | 4
328 | public
329 | 0
330 | .1.3.6.1.4.1.674.10892.1.200.10.1.44.1
331 | systemStateCoolingUnitStatusCombined
332 | 30
333 | 7
334 | 365
335 | 0
336 | 3
337 |
338 |
339 | 0
340 |
341 |
342 | 0
343 | 0
344 |
345 | 0
346 |
347 | 1
348 |
349 |
350 |
351 | 0
352 | 0
353 |
354 |
355 |
356 |
357 |
358 |
359 | 0
360 |
361 |
362 |
363 | -
364 | OM: Global System Status
365 | 4
366 | public
367 | 0
368 | .1.3.6.1.4.1.674.10892.1.200.10.1.2.1
369 | systemStateGlobalSystemStatus
370 | 30
371 | 7
372 | 365
373 | 0
374 | 3
375 |
376 |
377 | 0
378 |
379 |
380 | 0
381 | 0
382 |
383 | 0
384 |
385 | 1
386 |
387 |
388 |
389 | 0
390 | 0
391 |
392 |
393 |
394 |
395 |
396 |
397 | 0
398 |
399 |
400 |
401 | -
402 | OM: Memory Status
403 | 4
404 | public
405 | 0
406 | .1.3.6.1.4.1.674.10892.1.200.10.1.27.1
407 | systemStateMemoryDeviceStatusCombined
408 | 30
409 | 7
410 | 365
411 | 0
412 | 3
413 |
414 |
415 | 0
416 |
417 |
418 | 0
419 | 0
420 |
421 | 0
422 |
423 | 1
424 |
425 |
426 |
427 | 0
428 | 0
429 |
430 |
431 |
432 |
433 |
434 |
435 | 0
436 |
437 |
438 |
439 | -
440 | OM: Power Supply Status
441 | 4
442 | public
443 | 0
444 | .1.3.6.1.4.1.674.10892.1.200.10.1.9.1
445 | systemStatePowerSupplyStatusCombined
446 | 30
447 | 7
448 | 365
449 | 0
450 | 3
451 |
452 |
453 | 0
454 |
455 |
456 | 0
457 | 0
458 |
459 | 0
460 |
461 | 1
462 |
463 |
464 |
465 | 0
466 | 0
467 |
468 |
469 |
470 |
471 |
472 |
473 | 0
474 |
475 |
476 |
477 | -
478 | OM: Processor Status
479 | 4
480 | public
481 | 0
482 | .1.3.6.1.4.1.674.10892.1.200.10.1.50.1
483 | systemStateProcessorDeviceStatusCombined
484 | 30
485 | 7
486 | 365
487 | 0
488 | 3
489 |
490 |
491 | 0
492 |
493 |
494 | 0
495 | 0
496 |
497 | 0
498 |
499 | 1
500 |
501 |
502 |
503 | 0
504 | 0
505 |
506 |
507 |
508 |
509 |
510 |
511 | 0
512 |
513 |
514 |
515 | -
516 | OM: Temperature Status
517 | 4
518 | public
519 | 0
520 | .1.3.6.1.4.1.674.10892.1.200.10.1.24.1
521 | systemStateTeperatureStatusCombined
522 | 30
523 | 7
524 | 365
525 | 0
526 | 3
527 |
528 |
529 | 0
530 |
531 |
532 | 0
533 | 0
534 |
535 | 0
536 |
537 | 1
538 |
539 |
540 |
541 | 0
542 | 0
543 |
544 |
545 |
546 |
547 |
548 |
549 | 0
550 |
551 |
552 |
553 | -
554 | OM: Voltage Status
555 | 4
556 | public
557 | 0
558 | .1.3.6.1.4.1.674.10892.1.200.10.1.12.1
559 | systemStateVoltageStatusCombined
560 | 30
561 | 7
562 | 365
563 | 0
564 | 3
565 |
566 |
567 | 0
568 |
569 |
570 | 0
571 | 0
572 |
573 | 0
574 |
575 | 1
576 |
577 |
578 |
579 | 0
580 | 0
581 |
582 |
583 |
584 |
585 |
586 |
587 | 0
588 |
589 |
590 |
591 |
592 |
593 |
594 |
595 |
596 |
597 |
598 |
599 |
600 | {Template Dell OpenManage:systemStateChassisIntrusionStatusCombined.last(0)}>4
601 | OM: Chassis Intrusion
602 |
603 | 0
604 | 5
605 |
606 | 0
607 |
608 |
609 |
610 | {Template Dell OpenManage:systemStateChassisIntrusionStatusCombined.last(0)}=4
611 | OM: Chassis Intrusion
612 |
613 | 0
614 | 2
615 |
616 | 0
617 |
618 |
619 |
620 | {Template Dell OpenManage:systemStateChassisStatus.last(0)}>4
621 | OM: Chassis Status
622 |
623 | 0
624 | 5
625 |
626 | 0
627 |
628 |
629 |
630 | {Template Dell OpenManage:systemStateChassisStatus.last(0)}=4
631 | OM: Chassis Status
632 |
633 | 0
634 | 4
635 |
636 | 0
637 |
638 |
639 |
640 | {Template Dell OpenManage:controllerRollupStatus.1.last(0)}=4
641 | OM: Disk Controller 1 Status
642 |
643 | 0
644 | 4
645 |
646 | 0
647 |
648 |
649 |
650 | {Template Dell OpenManage:controllerRollupStatus.1.last(0)}>4
651 | OM: Disk Controller 1 Status
652 |
653 | 0
654 | 5
655 |
656 | 0
657 |
658 |
659 |
660 | {Template Dell OpenManage:controllerRollupStatus.2.last(0)}>4
661 | OM: Disk Controller 2 Status
662 |
663 | 0
664 | 5
665 |
666 | 0
667 |
668 |
669 |
670 | {Template Dell OpenManage:controllerRollupStatus.2.last(0)}=4
671 | OM: Disk Controller 2 Status
672 |
673 | 0
674 | 4
675 |
676 | 0
677 |
678 |
679 |
680 | {Template Dell OpenManage:enclosureRollupStatus.1.last(0)}>4
681 | OM: Disk Enclosure 1 Status
682 |
683 | 0
684 | 5
685 |
686 | 0
687 |
688 |
689 |
690 | {Template Dell OpenManage:enclosureRollupStatus.1.last(0)}=4
691 | OM: Disk Enclosure 1 Status
692 |
693 | 0
694 | 4
695 |
696 | 0
697 |
698 |
699 |
700 | {Template Dell OpenManage:enclosureRollupStatus.2.last(0)}>4
701 | OM: Disk Enclosure 2 Status
702 |
703 | 0
704 | 5
705 |
706 | 0
707 |
708 |
709 |
710 | {Template Dell OpenManage:enclosureRollupStatus.2.last(0)}=4
711 | OM: Disk Enclosure 2 Status
712 |
713 | 0
714 | 4
715 |
716 | 0
717 |
718 |
719 |
720 | {Template Dell OpenManage:systemStateEventLogStatusCombined.last(0)}>4
721 | OM: Event Log Status
722 |
723 | 0
724 | 5
725 |
726 | 0
727 |
728 |
729 |
730 | {Template Dell OpenManage:systemStateEventLogStatusCombined.last(0)}=4
731 | OM: Event Log Status
732 |
733 | 0
734 | 2
735 |
736 | 0
737 |
738 |
739 |
740 | {Template Dell OpenManage:systemStateCoolingDeviceStatusCombined.last(0)}=4
741 | OM: Fan Status
742 |
743 | 0
744 | 4
745 |
746 | 0
747 |
748 |
749 |
750 | {Template Dell OpenManage:systemStateCoolingDeviceStatusCombined.last(0)}>4
751 | OM: Fan Status
752 |
753 | 0
754 | 5
755 |
756 | 0
757 |
758 |
759 |
760 | {Template Dell OpenManage:systemStateCoolingUnitStatusCombined.last(0)}=4
761 | OM: Fan Unit Status
762 |
763 | 0
764 | 4
765 |
766 | 0
767 |
768 |
769 |
770 | {Template Dell OpenManage:systemStateCoolingUnitStatusCombined.last(0)}>4
771 | OM: Fan Unit Status
772 |
773 | 0
774 | 5
775 |
776 | 0
777 |
778 |
779 |
780 | {Template Dell OpenManage:systemStateGlobalSystemStatus.last(0)}=4
781 | OM: Global System Status
782 |
783 | 0
784 | 4
785 |
786 | 0
787 |
788 |
789 |
790 | {Template Dell OpenManage:systemStateGlobalSystemStatus.last(0)}>4
791 | OM: Global System Status
792 |
793 | 0
794 | 5
795 |
796 | 0
797 |
798 |
799 |
800 | {Template Dell OpenManage:systemStateMemoryDeviceStatusCombined.last(0)}>4
801 | OM: Memory Status
802 |
803 | 0
804 | 5
805 |
806 | 0
807 |
808 |
809 |
810 | {Template Dell OpenManage:systemStateMemoryDeviceStatusCombined.last(0)}=4
811 | OM: Memory Status
812 |
813 | 0
814 | 4
815 |
816 | 0
817 |
818 |
819 |
820 | {Template Dell OpenManage:systemStatePowerSupplyStatusCombined.last(0)}=4
821 | OM: Power Supply Status
822 |
823 | 0
824 | 4
825 |
826 | 0
827 |
828 |
829 |
830 | {Template Dell OpenManage:systemStatePowerSupplyStatusCombined.last(0)}>4
831 | OM: Power Supply Status
832 |
833 | 0
834 | 5
835 |
836 | 0
837 |
838 |
839 |
840 | {Template Dell OpenManage:systemStateProcessorDeviceStatusCombined.last(0)}=4
841 | OM: Processor Status
842 |
843 | 0
844 | 4
845 |
846 | 0
847 |
848 |
849 |
850 | {Template Dell OpenManage:systemStateProcessorDeviceStatusCombined.last(0)}>4
851 | OM: Processor Status
852 |
853 | 0
854 | 5
855 |
856 | 0
857 |
858 |
859 |
860 | {Template Dell OpenManage:systemStateTeperatureStatusCombined.last(0)}>4
861 | OM: Temperature Status
862 |
863 | 0
864 | 5
865 |
866 | 0
867 |
868 |
869 |
870 | {Template Dell OpenManage:systemStateTeperatureStatusCombined.last(0)}=4
871 | OM: Temperature Status
872 |
873 | 0
874 | 4
875 |
876 | 0
877 |
878 |
879 |
880 | {Template Dell OpenManage:systemStateVoltageStatusCombined.last(0)}>4
881 | OM: Voltage Status
882 |
883 | 0
884 | 5
885 |
886 | 0
887 |
888 |
889 |
890 | {Template Dell OpenManage:systemStateVoltageStatusCombined.last(0)}=4
891 | OM: Voltage Status
892 |
893 | 0
894 | 4
895 |
896 | 0
897 |
898 |
899 |
900 |
901 |
--------------------------------------------------------------------------------
/templates/Template_HP_Proliant_ML150_G5.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 2.0
4 | 2013-12-29T18:17:06Z
5 |
6 |
7 | Templates
8 |
9 |
10 |
11 |
12 | Template HP ProLiant ML150 G5
13 | Template HP ProLiant ML150 G5
14 |
15 |
16 | Templates
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/templates/Template_LVM.yaml:
--------------------------------------------------------------------------------
1 | zabbix_export:
2 | version: '6.2'
3 | date: '2022-10-02T11:45:02Z'
4 | template_groups:
5 | -
6 | uuid: 7df96b18c230490a9a0a9e2307226338
7 | name: Templates
8 | templates:
9 | -
10 | uuid: d86c53348bba4134888b0c39c917a3ab
11 | template: 'Template LVM'
12 | name: 'Template LVM'
13 | groups:
14 | -
15 | name: Templates
16 | discovery_rules:
17 | -
18 | uuid: 6cf7826727d5420490d6449e8e556b27
19 | name: 'LVM Thin Pool Discovery'
20 | key: lvm_thin_pool.discovery
21 | delay: 15m
22 | lifetime: 1w
23 | item_prototypes:
24 | -
25 | uuid: e3bc0361ce084b569fb3b7fd6493a5d6
26 | name: 'LVM Thin Pool $1 usage for data'
27 | key: 'lvm.data[{#TPNAME},data_percent]'
28 | history: 30d
29 | value_type: FLOAT
30 | units: '%'
31 | trigger_prototypes:
32 | -
33 | uuid: 7b8c1174a6ff479e8f141e8e16e7fb16
34 | expression: 'last(/Template LVM/lvm.data[{#TPNAME},data_percent])>80'
35 | recovery_mode: RECOVERY_EXPRESSION
36 | recovery_expression: 'last(/Template LVM/lvm.data[{#TPNAME},data_percent])<79'
37 | name: 'LV {#TPNAME} data usage too high'
38 | priority: HIGH
39 | -
40 | uuid: b077a818c99a493cbde91b25daaa9d4e
41 | name: 'LVM Thin Pool $1 usage for metadata'
42 | key: 'lvm.data[{#TPNAME},metadata_percent]'
43 | history: 30d
44 | value_type: FLOAT
45 | units: '%'
46 | request_method: POST
47 | trigger_prototypes:
48 | -
49 | uuid: b0d7cc6f58db4e9191fb892a52516e2d
50 | expression: 'last(/Template LVM/lvm.data[{#TPNAME},metadata_percent])>80'
51 | recovery_mode: RECOVERY_EXPRESSION
52 | recovery_expression: 'last(/Template LVM/lvm.data[{#TPNAME},metadata_percent])<79'
53 | name: 'LV {#TPNAME} metadata usage too high'
54 | priority: HIGH
55 | request_method: POST
56 | -
57 | uuid: 627bf18cac6c40898bcd47dccbba4c52
58 | name: 'LVM Thin Volume Discovery'
59 | key: lvm_thin_volume.discovery
60 | delay: 15m
61 | lifetime: 1w
62 | item_prototypes:
63 | -
64 | uuid: d649a7f32a9744418ff7446f338fe870
65 | name: 'LVM Thin Volume $1 usage for data'
66 | key: 'lvm.data[{#LVNAME},data_percent]'
67 | value_type: FLOAT
68 | units: '%'
69 | request_method: POST
70 | trigger_prototypes:
71 | -
72 | uuid: c02bb57e152248fea4307a7189cdfafb
73 | expression: 'last(/Template LVM/lvm.data[{#LVNAME},data_percent])>80'
74 | recovery_mode: RECOVERY_EXPRESSION
75 | recovery_expression: 'last(/Template LVM/lvm.data[{#LVNAME},data_percent])<79'
76 | name: 'LV {#LVNAME} data usage too high'
77 | priority: HIGH
78 | -
79 | uuid: 995932979adc4904b299d5caf695bbe0
80 | name: 'LVM Thin Volume $1 usage for metadata'
81 | key: 'lvm.data[{#LVNAME},metadata_percent]'
82 | value_type: FLOAT
83 | units: '%'
84 | trigger_prototypes:
85 | -
86 | uuid: 9ad4c9936b334fe29973d3f7ad116504
87 | expression: 'last(/Template LVM/lvm.data[{#LVNAME},metadata_percent])>80'
88 | recovery_mode: RECOVERY_EXPRESSION
89 | recovery_expression: 'last(/Template LVM/lvm.data[{#LVNAME},metadata_percent])<79'
90 | name: 'LV {#LVNAME} metadata usage too high'
91 | priority: HIGH
92 | request_method: POST
93 | -
94 | uuid: 3ee8a8cc3ccc48efbd364b9adff1efb2
95 | name: 'LVM VDO Pool Discovery'
96 | key: lvm_vdo_pool.discovery
97 | delay: 15m
98 | lifetime: 1w
99 | item_prototypes:
100 | -
101 | uuid: ba0bcd4c5d2548f7b4363377b5193230
102 | name: 'LVM VDO Pool $1 usage for data'
103 | key: 'lvm.data[{#VPNAME},data_percent]'
104 | value_type: FLOAT
105 | units: '%'
106 | trigger_prototypes:
107 | -
108 | uuid: 817cc525d64f44d99dc49703cc35e978
109 | expression: 'last(/Template LVM/lvm.data[{#VPNAME},data_percent])>80'
110 | recovery_mode: RECOVERY_EXPRESSION
111 | recovery_expression: 'last(/Template LVM/lvm.data[{#VPNAME},data_percent])<79'
112 | name: 'LV {#VPNAME} data usage too high'
113 | priority: HIGH
114 | -
115 | uuid: 50ede8c1ebfb4232b7fc640d0bcb6152
116 | name: 'LVM VDO Volume Discovery'
117 | key: lvm_vdo_volume.discovery
118 | delay: 15m
119 | lifetime: 1w
120 | item_prototypes:
121 | -
122 | uuid: 4b3b8280e5cb48568f2e15d578aae0f3
123 | name: 'LVM VDO Volume $1 usage for data'
124 | key: 'lvm.data[{#VVNAME},data_percent]'
125 | value_type: FLOAT
126 | units: '%'
127 | trigger_prototypes:
128 | -
129 | uuid: 61f1404f98584853940d43895c0d7a06
130 | expression: 'last(/Template LVM/lvm.data[{#VVNAME},data_percent])>80'
131 | recovery_mode: RECOVERY_EXPRESSION
132 | recovery_expression: 'last(/Template LVM/lvm.data[{#VVNAME},data_percent])<79'
133 | name: 'LV {#VVNAME} data usage too high'
134 | priority: HIGH
135 |
--------------------------------------------------------------------------------
/templates/Template_SELinux.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 2.0
4 | 2013-11-08T13:30:01Z
5 |
6 |
7 | Templates
8 |
9 |
10 |
11 |
12 | Template SELinux
13 | Template SELinux
14 |
15 |
16 | Templates
17 |
18 |
19 |
20 |
21 | -
22 | SELinux AVC denials
23 | 7
24 |
25 | 0
26 |
27 | log["/var/log/audit/audit.log","^type=AVC.*avc: denied.*$","UTF-8",100]
28 | 60
29 | 90
30 | 365
31 | 0
32 | 2
33 |
34 |
35 | 0
36 |
37 | 0
38 |
39 |
40 | 1
41 |
42 |
43 |
44 | 0
45 | 0
46 |
47 |
48 |
49 |
50 |
51 |
52 | 0
53 |
54 |
55 |
56 | -
57 | SELinux state
58 | 0
59 |
60 | 0
61 |
62 | system.run[getenforce]
63 | 60
64 | 90
65 | 365
66 | 0
67 | 4
68 |
69 |
70 | 0
71 |
72 | 0
73 |
74 |
75 | 1
76 |
77 |
78 |
79 | 0
80 | 0
81 |
82 |
83 |
84 |
85 |
86 |
87 | 0
88 |
89 |
90 |
91 | -
92 | SELinux sysconfig checksum
93 | 0
94 |
95 | 0
96 |
97 | vfs.file.md5sum[/etc/sysconfig/selinux]
98 | 60
99 | 90
100 | 365
101 | 0
102 | 4
103 |
104 |
105 | 0
106 |
107 | 0
108 |
109 |
110 | 1
111 |
112 |
113 |
114 | 0
115 | 0
116 |
117 |
118 |
119 |
120 |
121 |
122 | 0
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 | {Template SELinux:log["/var/log/audit/audit.log","^type=AVC.*avc: denied.*$","UTF-8",100].diff(0)}>0
136 | SELinux AVC denials in audit.log
137 |
138 | 0
139 | 4
140 |
141 | 0
142 |
143 |
144 |
145 | {Template SELinux:system.run[getenforce].diff(0)}>0
146 | SELinux state changed
147 |
148 | 0
149 | 4
150 |
151 | 0
152 |
153 |
154 |
155 | {Template SELinux:system.run[getenforce].nodata(5m)}>0
156 | SELinux state information N/A for 5 minutes
157 |
158 | 0
159 | 3
160 |
161 | 0
162 |
163 |
164 |
165 | {Template SELinux:vfs.file.md5sum[/etc/sysconfig/selinux].diff(0)}>0
166 | SELinux sysconfig changed
167 |
168 | 0
169 | 4
170 |
171 | 0
172 |
173 |
174 |
175 | {Template SELinux:vfs.file.md5sum[/etc/sysconfig/selinux].nodata(5m)}>0
176 | SELinux sysconfig information N/A for 5 minutes
177 |
178 | 0
179 | 3
180 |
181 | 0
182 |
183 |
184 |
185 |
186 |
--------------------------------------------------------------------------------
/templates/Template_mdraid.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 2.0
4 | 2015-11-28T06:11:54Z
5 |
6 |
7 | Templates
8 |
9 |
10 |
11 |
12 | Template mdraid
13 | Template mdraid
14 |
15 |
16 |
17 | Templates
18 |
19 |
20 |
21 |
22 | -
23 | mdraid devices down
24 | 0
25 |
26 | 0
27 |
28 | system.run["grep -Pc \"\[(_|U)*_(_|U)*\]$\" /proc/mdstat"]
29 | 120
30 | 30
31 | 365
32 | 0
33 | 3
34 |
35 |
36 | 0
37 |
38 |
39 | 0
40 | 0
41 |
42 | 0
43 |
44 | 1
45 |
46 |
47 |
48 | 0
49 | 0
50 |
51 |
52 |
53 |
54 |
55 |
56 | 0
57 |
58 |
59 |
60 |
61 | -
62 | mdraid devices mismatch count
63 | 0
64 |
65 | 0
66 |
67 | system.run["paste -d\"+\" /sys/block/*/md/mismatch_cnt|bc"]
68 | 120
69 | 30
70 | 365
71 | 0
72 | 3
73 |
74 |
75 | 0
76 |
77 |
78 | 0
79 | 0
80 |
81 | 0
82 |
83 | 1
84 |
85 |
86 |
87 | 0
88 | 0
89 |
90 |
91 |
92 |
93 |
94 |
95 | 0
96 |
97 |
98 |
99 |
100 | -
101 | mdraid devices under recovery
102 | 0
103 |
104 | 0
105 |
106 | system.run["grep -Pc \"\ recovery\ \" /proc/mdstat"]
107 | 120
108 | 30
109 | 365
110 | 0
111 | 3
112 |
113 |
114 | 0
115 |
116 |
117 | 0
118 | 0
119 |
120 | 0
121 |
122 | 1
123 |
124 |
125 |
126 | 0
127 | 0
128 |
129 |
130 |
131 |
132 |
133 |
134 | 0
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 | {Template mdraid:system.run["grep -Pc \"\[(_|U)*_(_|U)*\]$\" /proc/mdstat"].last()}<>0
149 | mdraid device down
150 |
151 | 0
152 | 4
153 |
154 | 0
155 |
156 |
157 |
158 | {Template mdraid:system.run["paste -d\"+\" /sys/block/*/md/mismatch_cnt|bc"].last()}>0
159 | mdraid device mismatch count higher than zero
160 |
161 | 0
162 | 3
163 |
164 | 0
165 |
166 |
167 |
168 | {Template mdraid:system.run["grep -Pc \"\ recovery\ \" /proc/mdstat"].last()}<>0
169 | mdraid device under recovery
170 |
171 | 0
172 | 4
173 |
174 | 0
175 |
176 |
177 |
178 |
179 |
--------------------------------------------------------------------------------
/templates/Template_netfilter.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 2.0
4 | 2015-04-14T15:05:37Z
5 |
6 |
7 | Templates
8 |
9 |
10 |
11 |
12 | Template netfilter
13 | Template netfilter
14 |
15 |
16 |
17 | Templates
18 |
19 |
20 |
21 |
22 | -
23 | netfilter nf_conntrack_count
24 | 0
25 |
26 | 0
27 |
28 | vfs.file.contents[/proc/sys/net/netfilter/nf_conntrack_count]
29 | 30
30 | 90
31 | 365
32 | 0
33 | 3
34 |
35 |
36 | 0
37 |
38 |
39 | 0
40 | 0
41 |
42 | 0
43 |
44 | 1
45 |
46 |
47 |
48 | 0
49 | 0
50 |
51 |
52 |
53 |
54 |
55 |
56 | 0
57 |
58 |
59 |
60 |
61 | -
62 | netfilter nf_conntrack_max
63 | 0
64 |
65 | 0
66 |
67 | vfs.file.contents[/proc/sys/net/netfilter/nf_conntrack_max]
68 | 30
69 | 90
70 | 365
71 | 0
72 | 3
73 |
74 |
75 | 0
76 |
77 |
78 | 0
79 | 0
80 |
81 | 0
82 |
83 | 1
84 |
85 |
86 |
87 | 0
88 | 0
89 |
90 |
91 |
92 |
93 |
94 |
95 | 0
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | ({Template netfilter:vfs.file.contents[/proc/sys/net/netfilter/nf_conntrack_count].last(1m)}*100/{Template netfilter:vfs.file.contents[/proc/sys/net/netfilter/nf_conntrack_max].last(1m)})>50
110 | netfilter tracked connection flow count too high
111 |
112 | 0
113 | 4
114 |
115 | 0
116 |
117 |
118 |
119 |
120 |
121 | netfilter flows
122 | 900
123 | 200
124 | 0.0000
125 | 100.0000
126 | 1
127 | 1
128 | 0
129 | 1
130 | 0
131 | 0.0000
132 | 0.0000
133 | 1
134 | 0
135 | 0
136 | 0
137 |
138 |
139 | 0
140 | 2
141 | 000000
142 | 0
143 | 4
144 | 0
145 | -
146 | Template netfilter
147 | vfs.file.contents[/proc/sys/net/netfilter/nf_conntrack_max]
148 |
149 |
150 |
151 | 1
152 | 0
153 | C80000
154 | 0
155 | 7
156 | 0
157 | -
158 | Template netfilter
159 | vfs.file.contents[/proc/sys/net/netfilter/nf_conntrack_count]
160 |
161 |
162 |
163 |
164 |
165 |
166 |
--------------------------------------------------------------------------------
/templates/ValueMapping-CPQIDA-MIB.txt:
--------------------------------------------------------------------------------
1 | CPQIDA-MIB cpqDaCntlrAccessModuleStatus
2 | 1 = other
3 | 2 = notSupported
4 | 3 = notPresent
5 | 4 = badSignature
6 | 5 = badChecksum
7 | 6 = fullyFunctional
8 | 7 = upgradeFirmware
9 |
10 | CPQIDA-MIB cpqDaCntlrBoardStatus
11 | 1 = other
12 | 2 = ok
13 | 3 = generalFailure
14 | 4 = cableProblem
15 | 5 = poweredOff
16 |
17 | CPQIDA-MIB cpqDaCntlrCondition
18 | 1 = other
19 | 2 = ok
20 | 3 = degraded
21 | 4 = failed
22 |
23 | CPQIDA-MIB cpqDaCntlrCurrentRole
24 | 1 = other
25 | 2 = notDuplexed
26 | 3 = active
27 | 4 = backup
28 |
29 | CPQIDA-MIB cpqDaCntlrDaughterBoardType
30 | 1 = other
31 | 2 = notSupported
32 | 3 = notPresent
33 | 4 = scsiBoardPresent
34 | 5 = fibreBoardPresent
35 | 6 = arrayExpansionModulePresent
36 |
37 | CPQIDA-MIB cpqDaCntlrDriveOwnership
38 | 1 = other
39 | 2 = owner
40 | 3 = notOwner
41 |
42 | CPQIDA-MIB cpqDaCntlrDriveWriteCacheState
43 | 1 = other
44 | 2 = disabled
45 | 3 = enabled
46 |
47 | CPQIDA-MIB cpqDaCntlrModel
48 | 1 = other
49 | 2 = ida
50 | 3 = ida-expansion
51 | 4 = ida-2
52 | 5 = smart
53 | 6 = smart-2e
54 | 7 = smart-2p
55 | 8 = smart-2sl
56 | 9 = smart-3100es
57 | 10 = smart-3200
58 | 11 = smart-2dh
59 | 12 = smart-221
60 | 13 = sa-4250es
61 | 14 = sa-4200
62 | 15 = sa-integrated
63 | 16 = sa-431
64 | 17 = sa-5300
65 | 18 = raidLc2
66 | 19 = sa-5i
67 | 20 = sa-532
68 | 21 = sa-5312
69 | 22 = sa-641
70 | 23 = sa-642
71 | 24 = sa-6400
72 | 25 = sa-6400em
73 | 26 = sa-6i
74 | 27 = sa-generic
75 | 29 = sa-p600
76 | 30 = sa-e400
77 | 31 = sa-e200
78 | 32 = sa-e200i
79 | 33 = sa-p400i
80 | 34 = sa-p800
81 | 35 = sa-e500
82 | 36 = sa-p700m
83 | 37 = sa-p212
84 | 38 = sa-p410
85 | 39 = sa-p410i
86 | 40 = sa-p411
87 | 41 = sa-b110i
88 | 42 = sa-p712m
89 | 43 = sa-p711m
90 | 44 = sa-p812
91 |
92 | CPQIDA-MIB cpqDaCntlrRebuildPriority
93 | 1 = other
94 | 2 = low
95 | 3 = medium
96 | 4 = high
97 |
98 | CPQIDA-MIB cpqDaCntlrRedundancyError
99 | 1 = other
100 | 2 = noFailure
101 | 3 = noRedundantController
102 | 4 = differentHardware
103 | 5 = noLink
104 | 6 = differentFirmware
105 | 7 = differentCache
106 | 8 = otherCacheFailure
107 | 9 = noDrives
108 | 10 = otherNoDrives
109 | 11 = unsupportedDrives
110 | 12 = expandInProgress
111 |
112 | CPQIDA-MIB cpqDaCntlrRedundancyType
113 | 1 = other
114 | 2 = notRedundant
115 | 3 = driverDuplexing
116 | 4 = fwActiveStandby
117 | 5 = fwPrimarySecondary
118 |
119 | CPQIDA-MIB cpqDaCntlrStndIntr
120 | 1 = Other
121 | 2 = Primary
122 | 3 = Secondary
123 | 4 = Disabled
124 | 5 = Unavailable
125 |
126 | CPQIDA-MIB cpqDaPhyDrvStatus
127 | 1 = Other
128 | 2 = Ok
129 | 3 = Failed
130 | 4 = Predictive Failure
131 | 5 = Erasing
132 | 6 = Erase Done
133 | 7 = Erase Queued
--------------------------------------------------------------------------------
/templates/ValueMapping-UPS-MIB.txt:
--------------------------------------------------------------------------------
1 | upsAutoRestart
2 | 1 = on
3 | 2 = off
4 |
5 | upsBatteryStatus
6 | 1 = unknown
7 | 2 = batteryNormal
8 | 3 = batteryLow
9 | 4 = batteryDepleted
10 |
11 | upsConfigAudibleStatus
12 | 1 = disabled
13 | 2 = enabled
14 | 3 = muted
15 |
16 | upsOutputSource
17 | 1 = other
18 | 2 = none
19 | 3 = normal
20 | 4 = bypass
21 | 5 = battery
22 | 6 = booster
23 | 7 = reducer
24 |
25 | upsShutdownType
26 | 1 = output
27 | 2 = system
28 |
29 | upsTestResultsSummary
30 | 1 = donePass
31 | 2 = doneWarning
32 | 3 = doneError
33 | 4 = aborted
34 | 5 = inProgress
35 | 6 = noTestsInitiated
36 |
--------------------------------------------------------------------------------
/templates/userparameter_lvm.conf:
--------------------------------------------------------------------------------
1 | UserParameter=lvm_thin_pool.discovery,LVM_SUPPRESS_FD_WARNINGS=1 sudo lvs --no-heading -o lv_attr,lv_dm_path|awk 'BEGIN{ORS="";print "{\"data\":["}$1~/^t/{l=split($2,b,"/");printf "%s{\"{#TPNAME}\":\"%s\"}",sep,b[l];sep=","};END{print "]}"}'
2 | UserParameter=lvm_thin_volume.discovery,LVM_SUPPRESS_FD_WARNINGS=1 sudo lvs --no-heading -o lv_attr,lv_dm_path|awk 'BEGIN{ORS="";print "{\"data\":["}$1~/^V/{l=split($2,b,"/");printf "%s{\"{#LVNAME}\":\"%s\"}",sep,b[l];sep=","};END{print "]}"}'
3 | UserParameter=lvm_vdo_pool.discovery,LVM_SUPPRESS_FD_WARNINGS=1 sudo lvs --no-heading -o lv_attr,lv_dm_path|awk 'BEGIN{ORS="";print "{\"data\":["}$1~/^d/{l=split($2,b,"/");printf "%s{\"{#VPNAME}\":\"%s\"}",sep,b[l];sep=","};END{print "]}"}'
4 | UserParameter=lvm_vdo_volume.discovery,LVM_SUPPRESS_FD_WARNINGS=1 sudo lvs --no-heading -o lv_attr,lv_dm_path|awk 'BEGIN{ORS="";print "{\"data\":["}$1~/^v/{l=split($2,b,"/");printf "%s{\"{#VVNAME}\":\"%s\"}",sep,b[l];sep=","};END{print "]}"}'
5 | UserParameter=lvm.data[*],LVM_SUPPRESS_FD_WARNINGS=1 sudo lvs --no-heading -o lv_dm_path,$2|awk '$$1~/$1/{print $$2}'
6 |
--------------------------------------------------------------------------------