Get your Servers to Call you for HELP!!

SysAdmGirl
SysAdmGirl
13.4 هزار بار بازدید - 8 سال پیش - A tutorial on how to
A tutorial on how to configure Nagios Core Server Notification System. Shows modification to the Nagios Server Configuration files on how to get a text message or email send within moments of host or service status change/faiure. Nagios Core is a monitoring and alerting software package that notify system administrators of any system or server issues.

Download Nagios Core: http://nag.is/coresys
Download Nagios XI: http://nag.is/xisys
Download Nagios Plugins: http://nag.is/plugsys
Website: https://www.nagios.com


Thank you for watching!! Don't forget to let yours servers call for help!

Please subscribe to get updates on new videos :)

Twitter: sysadmgirl
Facebook: sysadmgirl


Used Commands:

Check Nagios Configuration File Syntax
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Troubleshoot Permissions
usermod -G nagcmd nagios
usermod -G nagcmd apache
chown nagios:nagcmd /usr/local/nagios/var/rw
chown nagios:nagcmd /usr/local/nagios/var/rw/nagios.cmd

usermod -a -G nagios apache
chmod 666 /usr/local/nagios/var/rw/nagios.cmd
chown nagios.nagcmd /usr/local/nagios/var/rw
chmod u+rwx /usr/local/nagios/var/rw
chmod g+rwx /usr/local/nagios/var/rw  
chmod g+s /usr/local/nagios/var/rw

setenforce 0
vi /etc/sysconfig/selinux


Nagios Notification Options:

host_notifications_enabled: This directive is used to determine whether or not the contact will receive notifications about host problems and recoveries. Values: 0 = don't send notifications, 1 = send notifications.

service_notifications_enabled: This directive is used to determine whether or not the contact will receive notifications about service problems and recoveries. Values: 0 = don't send notifications, 1 = send notifications.

host_notification_period: This directive is used to specify the short name of the time period during which the contact can be notified about host problems or recoveries. You can think of this as an "on call" time for host notifications for the contact. Read the documentation on time periods for more information on how this works and potential problems that may result from improper use.

service_notification_period: This directive is used to specify the short name of the time period during which the contact can be notified about service problems or recoveries. You can think of this as an "on call" time for service notifications for the contact. Read the documentation on time periods for more information on how this works and potential problems that may result from improper use.

host_notification_commands: This directive is used to define a list of the short names of the commands used to notify the contact of a host problem or recovery. Multiple notification commands should be separated by commas. All notification commands are executed when the contact needs to be notified. The maximum amount of time that a notification command can run is controlled by the notification_timeout option.

host_notification_options: This directive is used to define the host states for which notifications can be sent out to this contact. Valid options are a combination of one or more of the following: d = notify on DOWN host states, u = notify on UNREACHABLE host states, r = notify on host recoveries (UP states), f = notify when the host starts and stops flapping, and s = send notifications when host or service scheduled downtime starts and ends. If you specify n (none) as an option, the contact will not receive any type of host notifications.

service_notification_options: This directive is used to define the service states for which notifications can be sent out to this contact. Valid options are a combination of one or more of the following: w = notify on WARNING service states, u = notify on UNKNOWN service states, c = notify on CRITICAL service states, r = notify on service recoveries (OK states), and f = notify when the service starts and stops flapping. If you specify n (none) as an option, the contact will not receive any type of service notifications.
8 سال پیش در تاریخ 1395/03/11 منتشر شده است.
13,479 بـار بازدید شده
... بیشتر