Nagios Important Command Configuration Files Htpasswd


Htpasswd these command is used to store and update http users username and there passwd. –c is used to create the file
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
it will create the user nagiosadmin and save the password in there specified directory /usr/local/nagios/etc/htpasswd.users

Nagios Verification Command
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Using the above command we can verify whether we configure Nagios is perfectly or not. Above command Nagios configuration file located in the directory /usr/local/Nagios/etc/Nagios.cfg it will run the file. If it is cleared it gives
Total Warnings: 0
Total Errors: 0

Add The Nagios client to the Nagios server.
In the Nagios server following directory
/usr/local/Nagios/etc/objects we will create file for the Nagios client system.
In the case we copy the locahost.cfg into remotemachine.cfg.
Then we replace the into server ip.
And local host into Nagios client hostname.

After we configure everything we add these file location into

chown command is used to change the owner of the file
/usr/local/Nagios, /usr/local/nagios/libexec For these two directory we need to give the full permission for the user Nagios so we are using chown command we are change the file ownership to Nagios.
chown –R naigos.nagios /usr/local/nagios/libexec
-R command it will change the all the subdirectory in the file location

Nagios Log file log_file=/usr/local/nagios/var/nagios.log
Nagios Port Number =5666
Nagios.cfg It contains the important configuration file.
Contacts.cfg - > when the problem occur Nagios it will give the alert message.
These file contain contant email address and name to ben notifid should be define.

No comments:
Write comments