If you use nagios in centos6.3, you will always use centos6.3 or earlier versions. when the new server arrives, a new centos6.3 is installed, as a result, there was a small problem when using Nagios monitoring. during system memory monitoring, the previous monitoring script had never been faulty,... if you use nagios in centos6.3, you will always use centos6.3 or earlier versions. when the new server arrives, a new centos6.3 is installed, as a result, when using Nagios monitoring, there was a small problem. during system memory monitoring, the previous monitoring script had never been faulty, but the new server had never been able to obtain normal monitoring data, the following error was reported when the Nagios client directly executed the relevant commands: /usr/local/nagios/libexec/check_mem-w 2-c 1/usr/local/nagios/libexec/check_mem: line 78:/usr/bin/dc: the file or The directory does not have dc commands. what is the situation. I searched for the problem online and did not solve it. I finally found some clues in an article and completed the solution! The original dc command is a computing-related command provided by the system, but Centos6.3 is not installed by default. how can we install it? if you use yum install dc, it is reported that the dc installation package is unavailable, you can only google it, the original bc and dc are two parallel commands, and the dc command is included in the bc installation package, decisive yum install bc, after the completion of the dc command has been found! Dc-Vdc (GNU bc 1.06.95) 1.3.95 Copyright 1994,199 7, 1998,200 0, 2001,200 4, 2005,200 6 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 particle PURPOSE, to the extent permitted by law. solve the problem!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.