资讯

精准传达 • 有效沟通

从品牌网站建设到网络营销策划,从策略到执行的一站式服务

nagios监控beanstalk插件

yum installperl-YAML-Syck.x86_64 perl-Nagios-Plugin.noarch perl-CPAN.x86_64 -y ##都是perl相关的包
###
> /tmp/beanstalk.txt
fori in`seq28`
do
echo"">> /tmp/beanstalk.txt
done
echo"2">> /tmp/beanstalk.txt
echo"1">> /tmp/beanstalk.txt
echo"1">> /tmp/beanstalk.txt
echo"">> /tmp/beanstalk.txt
echo"">> /tmp/beanstalk.txt
cd/tmp
wget http://search.cpan.org/CPAN/authors/id/B/BI/BINGOS/ExtUtils-MakeMaker-6.78.tar.gz
tarzxf ExtUtils-MakeMaker-6.78.tar.gz
cdExtUtils-MakeMaker-6.78
/usr/bin/perlMakefile.PL && make&& makeinstall
cd-
wget http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/Beanstalk-Client-1.07.tar.gz
tarzxf Beanstalk-Client-1.07.tar.gz
cdBeanstalk-Client-1.07
cat/tmp/beanstalk.txt|/usr/bin/perlMakefile.PL
/usr/bin/perlMakefile.PL && make&& makeinstall
cd-
wget http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/Nagios-Plugin-Beanstalk-0.04.tar.gz
tarzxf Nagios-Plugin-Beanstalk-0.04.tar.gz
cdNagios-Plugin-Beanstalk-0.04
/usr/bin/perlMakefile.PL && make&& makeinstall
./check_beanstalkd-H 127.0.0.1
cpcheck_beanstalkd /usr/local/nagios/libexec/
##vim /etc/nagios/nrpe.cfg
command[check_beanstalkd]=/usr/local/nagios/libexec/check_beanstalkd-H 127.0.0.1
##/etc/init.d/nrpe restart

名称栏目:nagios监控beanstalk插件
URL链接:http://cdkjz.cn/article/jopceh.html
多年建站经验

多一份参考,总有益处

联系快上网,免费获得专属《策划方案》及报价

咨询相关问题或预约面谈,可以通过以下方式与我们联系

大客户专线   成都:13518219792   座机:028-86922220