You can find the above configuration details from /usr/local/nagios/etc/nagios.cfg. If you are keeping the same configuration, you will find difficulty to add new servers in it. usr/local/nagios/etc/objects/localhost.cfg usr/local/nagios/etc/objects/timeperiods.cfg usr/local/nagios/etc/objects/contacts.cfg usr/local/nagios/etc/objects/commands.cfg 2.3 Nagios configuration file creation The following configuration files will be created after the Also add the plugin NDOUtils to setup the nagios with database. If you want to setup the nagios data in database, use “–with-mysql” option along with “./configure”. You can verify the nagios localhost entry using the with the nagiosadmin login details. configure and give the proper ownership after the installation of plugins. configure with –with option above, do the configuration using. usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg configure -with-nagios-user=nagios -with-nagios-group=nagiosĪdd Nagios to the list of system services and have it automaticallyĬheck whether the nagios configurations using following command: 2.2 Installation of Nagios pluginĭo the following steps to install nagios plugin. After the installation of nagios plugin as explained below, the relevant files will be created. htpasswd -c /usr/local/nagios/etc/ers nagiosadminĪfter the completion of the above steps, you can see that apache is running fine but there are no contents in the folder /usr/local/nagios/libexec/. The “nagiosadmin” login details to web interface can be setup using htpasswd. Run the following command to setup the web interface. Modify the email address in /usr/local/nagios/etc/objects/contacts.cfg. You need to customise the nagios configuration, according to your requirement. You can do the following steps to install and configure the nagios. I used nagios-3.0b5 for the setup of distributed nagios. Add both the nagios user and the apache user to the group. “nagcmd” group is required for external commands to be submitted through the web interface. If they are not present, you need to do the installation using the following step: yum install httpd gcc glibc glibc-common gd gd-develĬreate the nagios user account: /usr/sbin/useradd nagios
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |