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

The solution to the error in using Nagios under CentOS 6.3

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

Share

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

This article mainly introduces "the solution to the error in the use of Nagios under CentOS 6.3". In the daily operation, I believe that many people have doubts about the wrong solution to the problem of using Nagios under CentOS 6.3. the editor consulted all kinds of materials and sorted out the simple and easy-to-use operation method. I hope it will be helpful to answer the question of "wrong solution to the use of Nagios under CentOS 6.3"! Next, please follow the editor to study!

Have been using the following versions of Centos6.3, when the new server arrived, a relatively new Centos6.3 was installed, so there was a minor problem when using Nagios monitoring.

When monitoring the memory of the system, there was no problem with the previous monitoring script, but the normal monitoring data could not be obtained on the new server. Later, the following error was found when executing the relevant commands directly on the client side of Nagios:

/ usr/local/nagios/libexec/check_mem-w 2-c 1

/ usr/local/nagios/libexec/check_mem: line 78: / usr/bin/dc: there is no such file or directory.

What's going on without the dc command? A search on the Internet failed to solve the problem. * find some clues in an article and solve it!

The original dc command is a calculation-related command that comes with the system, but Centos6.3 is not installed by default, so how to install it? use yum install dc to report that there is no dc installation package.

* you can only Google once. It turns out that bc and dc are two progressive commands, and the dc command is included in the bc installation package, so you can yum install bc decisively. After completion, you will find that there is already a dc command!

Dc-Vdc (GNU bc 1.06.95) 1.3.95Copyright 1994, 1997, 1998, 2000, 2001, 2004, 2005, 2006 Free Software Foundation, Inc.This is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE,to the extent permitted by law. At this point, the study of "the solution to the error in the use of Nagios under CentOS 6.3" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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