Add postfix SMTP sasl authentication with dovecot

In order to allow the clients to send emails using SMTP authentication, update the following files:

/etc/postfix/main.cf
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
/etc/dovecot/conf.d/10-master.conf
service auth {
  unix_listener /var/spool/postfix/private/auth {
    mode = 0600
    user = postfix
    group = postfix
    user = $default_internal_user
  }

reload posfix
service restart dovecot

This will allow a client like Outlook to authenticate for sending emails.

Nagios “Service check command ‘check_nrpe’ not defined anywhere” fix

Fix for :

Checking services…
Error: Service check command ‘check_nrpe’ specified in service ‘LOAD’ for host ‘server_name’ not defined anywhere!

In order to make check_nrpe working on the configuration file need to add the following lines on the  /etc/nagios/objects/commands.cfg

define command{
                                command_name check_nrpe
                                command_line /usr/lib64/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
                                }

Restart the nagios service after.

The configuration on the server will look like:

define service {
        use                                    generic-service
        host_name                      server_name
        service_description       LOAD
        check_command           check_nrpe!check_load
        }

To test if the configuration is working: