Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize the thold plug-in Sound alarm function of cacti

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

How to realize the sound alarm function of cacti's thold plug-in? I believe that most people have not yet learned this skill, in order to let you learn, to give you a summary of the following content, do not say much, let's move on.

1. For example.

First, copy the sounds folder of monitor to the thold path.

Then modify the thold_graph.php file.

Modify here to add $temp=0; (near 500th line).

Add $clock0; $item0; $temp=0;##

2. Modify here and add $temp=1; (more than 500lines), which means that the alarm at the warning level will sound. Of course, you can also modify other levels, such as red.

Case THOLD_SEVERITY_WARNING: $bgcolor = 'warning'; $temp=1;## add break in this line

3. Modify here and add if ($temp = = 1) {.}; (about 650 lines). Loop=false means that the page will be played every time it is refreshed, otherwise the loop will continue.

Form_end_row ();} # # add if ($temp = = 1) {print';} in the line below

This can be used directly, as long as the thold page has a warning-level alarm, it will sound. (the thold page does not refresh automatically, it can be automatically refreshed by modifying the php code or by using browser settings)

About cacti's thold plug-in voice alarm function to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report