In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you what the nagios plug-in performance data display format is, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
The plug-in for nagios is divided into two parts:
GPING OK-rtt min/avg/max/mdev = 0.897 ms 0.897 ms | time=0.897ms;20;40;; ok=1
Cpu_user:OK-0% cpu_system:OK-0% cpu_idle:WARNING-99 > 70% | cpu_user=0%;120;90; cpu_system=0%;100;70; cpu_idle=99%;100;70
The performance data is | the italic part, which is in the following format:
'label'=value [UOM]; [warn]; [crit]; [min]; [max]
Note:
1. Space split label / value pairs such as cpu_user=0%;100;90; cpu_system=0%;100;70; cpu_idle=99%;100;70
2.label can contain any character
3. Single quotation marks can be omitted, and if spaces, equal signs, and single quotation marks are used in label, you need single quotation marks to enclose label. For example,'a 'b' = caterpillar 0% investors 100% 90
4. Tags can be any length, but preferably less than 19 characters and unique, (RRD has related restrictions), and you need to pay attention to the restrictions on the return value of NRPE (translator: seems to be a 4K limit)
5. Are the two single quotation marks the specified escape character?
6.warn, crit, min or max can be empty (for example, maximum and minimum values are not applicable if no threshold is defined) and the final semicolon can be omitted
7. If UOM is%, maximum and minimum values are not required
8.value, min and max can only be a minus sign "-"0 to 9" and decimal point "." And the unit must be unified, for example: cpu_user=0.5%;99.9;-9
The 9.warn and crit must be in an interval format, see Chapter 2. 5. Units must also be unified.
10.UOM must be one of the following
(1)。 If not specified, defaults to numbers (integers and floating point numbers) (such as number of users, number of processes, load, etc.)
(2)。 S-second (can be nanosecond us or millisecond ms) cpu_user=0s;100;90; cpu_system=0us;100;70; cpu_idle=0ms;100;70
(3)。 %-percent sign cpu_user=0%;100;90; cpu_system=0%;100;70; cpu_idle=99%;100;70
(4)。 B-byte (but it can be KB, MB TB) cpu_user=0KB;100;90; cpu_system=0MB;100;70; cpu_idle=0B;100;70
(5)。 C-A counter (such as network card traffic) cpu_user=10c;100;90
The above is all the content of the article "what is the display format of nagios plug-in performance data?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.