├── 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | --------------------------------------------------------------------------------