RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
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插件
文章起源:http://lswzjz.com/article/jopceh.html