In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will give you a sound on how to make cacti's thold plug-in alarm. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
The thold plugin for cacti does not have an audible alarm feature by default. Here is a simple way to allow thold to alarm like monitor (only audible, without the mute feature of monitor). Here is an example of thold 1.3.2. first copies the sounds folder of monitor to the thold path.
then modifies the thold_graph.php file. 1. Modify here by adding $temp=0; (near 500th line). Add 2, modify here, and add $temp=1; (more than 500lines) for the line $temp=0;##, which means that the alarm at the warning level will sound, but you can also change other levels, such as red. Case THOLD_SEVERITY_WARNING: $bgcolor = 'warning'; $temp=1;##' add break; 3, modify here, add if ($temp= = 1) {.}; (about 650lines), loop=false means that the page will be played every time it is refreshed, otherwise the loop will continue. Form_end_row ();} # # the line below adds if ($temp = = 1) {print';} so that it can be used directly. As long as there is an warning alarm on the thold page, it will sound. (the thold page does not refresh automatically. You can modify the php code or set it to refresh automatically with the browser.) the above is how to make the thold plug-in of cacti alarm sound. If you happen to have similar doubts, please refer to the above analysis for understanding. If you want to know more about it, you are 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.