Как я могу отправлять уведомления о nagios в мой gmail?

Пакет gnome-shell-extensions-user-theme из PPA команды WebUpd8 в качестве сломанных зависимостей лучше использует https://extensions.gnome.org для расширений.

Но сначала вы должны получить избавиться от старых файлов.

sudo rm -r /usr/share/gnome-shell/extensions/*
rm -r ~/.local/share/gnome-shell/extensions/*

Это очистит все расширения gnome-shell. Затем перезапустите gnome-shell, и вы готовы к работе.

6
задан 24 June 2012 в 06:44

8 ответов

Сначала установите sSMTP, так как в этом случае постфикс переполняется. Да, это удалит postfix. Мы заботимся? Не действительно.

sudo apt-get install ssmtp
  1. Настроить sSMTP, отредактировав /etc/ssmtp/ssmtp.conf
#Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=yourusername@gmail.com
#I recommend setting this 

mailhub=smtp.gmail.com:587

# Where will the mail seem to come from?
rewriteDomain=

#The full hostname
hostname=[some hostname here]
UseTLS=YES
UseSTARTTLS=YES
AuthMethod=LOGIN
AuthUser=yourusername@gmail.com
AuthPass=yourpassword

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
# This is optional if you're going to use revaliases - I didn't
FromLineOverride=YES

Теперь нам нужно установить Разрешения на /etc/ssmtp/ssmtp.conf, чтобы помочь (это не безопасно), защищают ваш пароль открытого текста.

sudo chown root:nagios /etc/ssmtp/ssmtp.conf
sudo chmod 640 /etc/ssmtp/ssmtp.conf

Перезапустите nagios, и вы должны быть установлены.

sudo service nagios3 restart
6
ответ дан 25 July 2018 в 18:20

Сначала установите sSMTP, так как в этом случае постфикс переполняется. Да, это удалит postfix. Мы заботимся? Не действительно.

sudo apt-get install ssmtp
  1. Настроить sSMTP, отредактировав /etc/ssmtp/ssmtp.conf
#Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=yourusername@gmail.com
#I recommend setting this 

mailhub=smtp.gmail.com:587

# Where will the mail seem to come from?
rewriteDomain=

#The full hostname
hostname=[some hostname here]
UseTLS=YES
UseSTARTTLS=YES
AuthMethod=LOGIN
AuthUser=yourusername@gmail.com
AuthPass=yourpassword

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
# This is optional if you're going to use revaliases - I didn't
FromLineOverride=YES

Теперь нам нужно установить Разрешения на /etc/ssmtp/ssmtp.conf, чтобы помочь (это не безопасно), защищают ваш пароль открытого текста.

sudo chown root:nagios /etc/ssmtp/ssmtp.conf
sudo chmod 640 /etc/ssmtp/ssmtp.conf

Перезапустите nagios, и вы должны быть установлены.

sudo service nagios3 restart
6
ответ дан 31 July 2018 в 12:22

Сначала установите sSMTP, так как в этом случае постфикс переполняется. Да, это удалит postfix. Мы заботимся? Не действительно.

sudo apt-get install ssmtp
  1. Настроить sSMTP, отредактировав /etc/ssmtp/ssmtp.conf
#Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=yourusername@gmail.com
#I recommend setting this 

mailhub=smtp.gmail.com:587

# Where will the mail seem to come from?
rewriteDomain=

#The full hostname
hostname=[some hostname here]
UseTLS=YES
UseSTARTTLS=YES
AuthMethod=LOGIN
AuthUser=yourusername@gmail.com
AuthPass=yourpassword

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
# This is optional if you're going to use revaliases - I didn't
FromLineOverride=YES

Теперь нам нужно установить Разрешения на /etc/ssmtp/ssmtp.conf, чтобы помочь (это не безопасно), защищают ваш пароль открытого текста.

sudo chown root:nagios /etc/ssmtp/ssmtp.conf
sudo chmod 640 /etc/ssmtp/ssmtp.conf

Перезапустите nagios, и вы должны быть установлены.

sudo service nagios3 restart
6
ответ дан 2 August 2018 в 00:33

Сначала установите sSMTP, так как в этом случае постфикс переполняется. Да, это удалит postfix. Мы заботимся? Не действительно.

sudo apt-get install ssmtp
  1. Настроить sSMTP, отредактировав /etc/ssmtp/ssmtp.conf
#Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=yourusername@gmail.com
#I recommend setting this 

mailhub=smtp.gmail.com:587

# Where will the mail seem to come from?
rewriteDomain=

#The full hostname
hostname=[some hostname here]
UseTLS=YES
UseSTARTTLS=YES
AuthMethod=LOGIN
AuthUser=yourusername@gmail.com
AuthPass=yourpassword

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
# This is optional if you're going to use revaliases - I didn't
FromLineOverride=YES

Теперь нам нужно установить Разрешения на /etc/ssmtp/ssmtp.conf, чтобы помочь (это не безопасно), защищают ваш пароль открытого текста.

sudo chown root:nagios /etc/ssmtp/ssmtp.conf
sudo chmod 640 /etc/ssmtp/ssmtp.conf

Перезапустите nagios, и вы должны быть установлены.

sudo service nagios3 restart
6
ответ дан 4 August 2018 в 16:03

Сначала установите sSMTP, так как в этом случае постфикс переполняется. Да, это удалит postfix. Мы заботимся? Не действительно.

sudo apt-get install ssmtp
  1. Настроить sSMTP, отредактировав /etc/ssmtp/ssmtp.conf
#Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=yourusername@gmail.com
#I recommend setting this 

mailhub=smtp.gmail.com:587

# Where will the mail seem to come from?
rewriteDomain=

#The full hostname
hostname=[some hostname here]
UseTLS=YES
UseSTARTTLS=YES
AuthMethod=LOGIN
AuthUser=yourusername@gmail.com
AuthPass=yourpassword

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
# This is optional if you're going to use revaliases - I didn't
FromLineOverride=YES

Теперь нам нужно установить Разрешения на /etc/ssmtp/ssmtp.conf, чтобы помочь (это не безопасно), защищают ваш пароль открытого текста.

sudo chown root:nagios /etc/ssmtp/ssmtp.conf
sudo chmod 640 /etc/ssmtp/ssmtp.conf

Перезапустите nagios, и вы должны быть установлены.

sudo service nagios3 restart
6
ответ дан 6 August 2018 в 00:40

Сначала установите sSMTP, так как в этом случае постфикс переполняется. Да, это удалит postfix. Мы заботимся? Не действительно.

sudo apt-get install ssmtp
  1. Настроить sSMTP, отредактировав /etc/ssmtp/ssmtp.conf
#Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=yourusername@gmail.com
#I recommend setting this 

mailhub=smtp.gmail.com:587

# Where will the mail seem to come from?
rewriteDomain=

#The full hostname
hostname=[some hostname here]
UseTLS=YES
UseSTARTTLS=YES
AuthMethod=LOGIN
AuthUser=yourusername@gmail.com
AuthPass=yourpassword

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
# This is optional if you're going to use revaliases - I didn't
FromLineOverride=YES

Теперь нам нужно установить Разрешения на /etc/ssmtp/ssmtp.conf, чтобы помочь (это не безопасно), защищают ваш пароль открытого текста.

sudo chown root:nagios /etc/ssmtp/ssmtp.conf
sudo chmod 640 /etc/ssmtp/ssmtp.conf

Перезапустите nagios, и вы должны быть установлены.

sudo service nagios3 restart
6
ответ дан 7 August 2018 в 18:06

Сначала установите sSMTP, так как в этом случае постфикс переполняется. Да, это удалит postfix. Мы заботимся? Не действительно.

sudo apt-get install ssmtp
  1. Настроить sSMTP, отредактировав /etc/ssmtp/ssmtp.conf
#Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=yourusername@gmail.com
#I recommend setting this 

mailhub=smtp.gmail.com:587

# Where will the mail seem to come from?
rewriteDomain=

#The full hostname
hostname=[some hostname here]
UseTLS=YES
UseSTARTTLS=YES
AuthMethod=LOGIN
AuthUser=yourusername@gmail.com
AuthPass=yourpassword

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
# This is optional if you're going to use revaliases - I didn't
FromLineOverride=YES

Теперь нам нужно установить Разрешения на /etc/ssmtp/ssmtp.conf, чтобы помочь (это не безопасно), защищают ваш пароль открытого текста.

sudo chown root:nagios /etc/ssmtp/ssmtp.conf
sudo chmod 640 /etc/ssmtp/ssmtp.conf

Перезапустите nagios, и вы должны быть установлены.

sudo service nagios3 restart
6
ответ дан 10 August 2018 в 06:53

Сначала установите sSMTP, так как в этом случае постфикс переполняется. Да, это удалит postfix. Мы заботимся? Не действительно.

sudo apt-get install ssmtp
  1. Настроить sSMTP, отредактировав /etc/ssmtp/ssmtp.conf
#Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=yourusername@gmail.com
#I recommend setting this 

mailhub=smtp.gmail.com:587

# Where will the mail seem to come from?
rewriteDomain=

#The full hostname
hostname=[some hostname here]
UseTLS=YES
UseSTARTTLS=YES
AuthMethod=LOGIN
AuthUser=yourusername@gmail.com
AuthPass=yourpassword

# Are users allowed to set their own From: address?
# YES - Allow the user to specify their own From: address
# NO - Use the system generated From: address
# This is optional if you're going to use revaliases - I didn't
FromLineOverride=YES

Теперь нам нужно установить Разрешения на /etc/ssmtp/ssmtp.conf, чтобы помочь (это не безопасно), защищают ваш пароль открытого текста.

sudo chown root:nagios /etc/ssmtp/ssmtp.conf
sudo chmod 640 /etc/ssmtp/ssmtp.conf

Перезапустите nagios, и вы должны быть установлены.

sudo service nagios3 restart
6
ответ дан 15 August 2018 в 18:50

Другие вопросы по тегам:

Похожие вопросы: