大橙子网站建设,新征程启航

为企业提供网站建设、域名注册、服务器等服务

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://dzwzjz.com/article/jopceh.html
在线咨询
服务热线
服务热线:028-86922220
TOP