我们专注攀枝花网站设计 攀枝花网站制作 攀枝花网站建设
成都网站建设公司服务热线:400-028-6601

网站建设知识

十年网站开发经验 + 多家企业客户 + 靠谱的建站团队

量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决

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://mswzjz.cn/article/jopceh.html

其他资讯