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