Nagios plug-in Nagiosql installation configuration

Source: Internet
Author: User

Nagios plug-in Nagiosql installation configuration

# nagiosql Install[[email protected]~]# Yum install-y libssh2 libssh-Devel[[email protected]~]# cd/usr/local/Src[[email protected] src]# wget http://pecl.php.net/get/ssh2-0.12.tgz[Email protected] ssh2-0.12]# phpize[[email protected] SSH2-0.12]#./configure--with--Ssh2[[email protected] SSH2-0.12]# make &&Make Install[[email protected]~]# vi/etc/php.d/ssh2.iniextension=ssh2.sowget http://nchc.dl.sourceforge.net/project/nagiosql/nagiosql/nagiosql%203.2.0/nagiosql_320.tar.gz# Nagiosql permissions settings [[email protected] src]# tar zxf nagiosql_320.tar.gz[[email protected] src]# mv Nagiosql//usr/local/nagios/[[Email protected]~]# cd/usr/local/nagios/nagiosql/[email protected] nagiosql]# chmod777config/[email protected] nagiosql]# chown-R Nagios:nagcmd *[[email protected] nagiosql]# find.-type d-exec chmod775 {} \; [[email protected] nagiosql]# find. -type f-exec chmod664{} \;# configuration Nagiosql file write path and permissions [[email protected]~]# mkdir-p/etc/nagiosql/backup/Hosts[[email protected]~]# mkdir-p/etc/nagiosql/backup/Services[[email protected]~]# mkdir-p/etc/nagiosql/Hosts[[email protected]~]# mkdir-p/etc/nagiosql/Services[[email protected]~]# Chown-r nagios:nagcmd/etc/Nagiosql[[email protected]~]# Chmod-r775/etc/Nagiosql[[email protected]~]# Chown-r nagios.nagcmd/usr/local/nagios# configuration Apache[[email protected]~]# vi/etc/httpd/conf.d/Nagios.confalias/nagiosql"/usr/local/nagios/nagiosql"<directory"/usr/local/nagios/nagiosql"># Sslrequiressl Options none allowoverride none Order Allow,deny allow from All</Directory># Edit the Nagios configuration file, comment the configuration starting with CFG, and add vim/usr/local/nagios/etc/nagios.cfg## Timeperiodscfg_file=/etc/nagiosql/timeperiods.cfg## Commandscfg_file=/etc/nagiosql/commands.cfg## Contactscfg_file=/etc/nagiosql/Contacts.cfgcfg_file=/etc/nagiosql/Contactgroups.cfgcfg_file=/etc/nagiosql/contacttemplates.cfg## Hostscfg_dir=/etc/nagiosql/Hostscfg_file=/etc/nagiosql/Hosttemplates.cfgcfg_file=/etc/nagiosql/Hostgroups.cfgcfg_file=/etc/nagiosql/Hostextinfo.cfgcfg_file=/etc/nagiosql/Hostescalations.cfgcfg_file=/etc/nagiosql/hostdependencies.cfg## Servicescfg_dir=/etc/nagiosql/Servicescfg_file=/etc/nagiosql/Servicetemplates.cfgcfg_file=/etc/nagiosql/Servicegroups.cfgcfg_file=/etc/nagiosql/Serviceextinfo.cfgcfg_file=/etc/nagiosql/Serviceescalations.cfgcfg_file=/etc/nagiosql/servicedependencies.cfg# Install page http://192.168.88.128/nagiosql/install/

Nagios plug-in Nagiosql installation configuration

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.