Search found 31 matches
- Thu Jan 10, 2019 5:48 pm
- Forum: Open Source Nagios Projects
- Topic: set up email alerts using mailx
- Replies: 33
- Views: 15559
Re: set up email alerts using mailx
Ive generated a test email by sending a custom notification as shown below: [nagios@nagioscore objects]$ mailx -v -s "Test2" -S smtp=mailrelay.int.company.com -S from=alerts.gainspeed@company.com ricson.liberato@company.com . EOT Null message body; hope that's ok Resolving host mailrelay.i...
- Thu Dec 20, 2018 4:58 pm
- Forum: Open Source Nagios Projects
- Topic: set up email alerts using mailx
- Replies: 33
- Views: 15559
Re: set up email alerts using mailx
I noticed there are two "n" on the "Address" and "Additional" field below. Is that a typo? define command { command_name notify-host-by-email command_line /usr/bin/printf "%b" "***** Nagios Monitor Core Alert *****\n\nNotification Type: $NOTIFICATIONTYPE$...
- Thu Dec 20, 2018 2:12 pm
- Forum: Open Source Nagios Projects
- Topic: set up email alerts using mailx
- Replies: 33
- Views: 15559
Re: set up email alerts using mailx
Ive attached command.cfg file.
Here's the output.
[root@nagioscore ~]# ls -l /usr/bin/printf
-rwxr-xr-x. 1 root root 49776 Apr 11 2018 /usr/bin/printf
[root@nagioscore ~]# ls -l /usr/bin/mailx
-rwxr-xr-x. 1 root root 392880 Apr 11 2018 /usr/bin/mailx
[root@nagioscore ~]#
Here's the output.
[root@nagioscore ~]# ls -l /usr/bin/printf
-rwxr-xr-x. 1 root root 49776 Apr 11 2018 /usr/bin/printf
[root@nagioscore ~]# ls -l /usr/bin/mailx
-rwxr-xr-x. 1 root root 392880 Apr 11 2018 /usr/bin/mailx
[root@nagioscore ~]#
- Thu Dec 20, 2018 1:10 pm
- Forum: Open Source Nagios Projects
- Topic: set up email alerts using mailx
- Replies: 33
- Views: 15559
Re: set up email alerts using mailx
I've removed "-v" from the command. I checked/review /etc/mail.rc config file, in fact I never edit this file before since nagios core was installed on the system. I've attached the mail.rc file as well as reference.
- Tue Dec 18, 2018 3:43 pm
- Forum: Open Source Nagios Projects
- Topic: set up email alerts using mailx
- Replies: 33
- Views: 15559
Re: set up email alerts using mailx
The below link is facing the same issue and he removed all the 'n" on both host /service command. So, I've removed all the extra "\n" within "command.cfg config file", but same results. Please see attached file about the nagios error log file . From this: define command { co...
- Mon Dec 17, 2018 4:45 pm
- Forum: Open Source Nagios Projects
- Topic: set up email alerts using mailx
- Replies: 33
- Views: 15559
Re: set up email alerts using mailx
It finally worked after modifying the /etc/mail.rc config file (I've removed previously added config file in this file). The test email using mailx it sent successfully to my corporate email. However, email notification still didn't work after doing some testing by shutting down the target machine. ...
- Mon Dec 17, 2018 2:36 pm
- Forum: Open Source Nagios Projects
- Topic: set up email alerts using mailx
- Replies: 33
- Views: 15559
Re: set up email alerts using mailx
Initially postfix was used to send and receive but couldn't make it to work so I tried to using mailx instead. We are not using any type of SMTP authentication. Internal smtp mailrelay used is below: SMTP Hostname: mailrelay.int.company.com Port: 25 Here's ~/.mailrc config file: set -S smtp=mailrela...
- Fri Dec 14, 2018 7:21 pm
- Forum: Open Source Nagios Projects
- Topic: set up email alerts using mailx
- Replies: 33
- Views: 15559
set up email alerts using mailx
Im trying to set up email notifications using mailx on Centos 7.5. However, test mail failed to send due to AUTH LOGIN error as shown below. Please help! [nagios@nagioscore objects]$ mailx -v -s "test email" john.smith@company.com . EOT Null message body; hope that's ok Password: Resolving...
- Wed Oct 17, 2018 12:35 pm
- Forum: Open Source Nagios Projects
- Topic: Setup Email Notifications in Nagios Core
- Replies: 6
- Views: 9709
Re: Setup Email Notifications in Nagios Core
Im able to configure postfix server relay section by following this guide: https://www.lisenet.com/2018/configure-postfix-to-relay-mail-to-an-external-smtp-server-on-centos-7/ But Im confused whether I need to create the following file. Create a new file /etc/postfix/sasl_passwd and add the authenti...
- Tue Oct 16, 2018 9:22 am
- Forum: Open Source Nagios Projects
- Topic: Setup Email Notifications in Nagios Core
- Replies: 6
- Views: 9709
Re: Setup Email Notifications in Nagios Core
So I've added "-r nagios-email_alert@company.com -s" in the command.conf file of nagioscore as shown below. My nagioscore which the smarthost is currently running on Centos 7, and would like to setup up a mail relay from this host (Centos 7) to office 365 Internal mail relay server as show...