Search found 19 matches

Return to advanced search

Re: set up email alerts using mailx

If you look at the previous commands.cfg file in this thread, already contains the following commands . Please see attached commands.cfg file. "notify-service-by-email" "notify-host-by-email" Could you explain to me more what do you mean by "Edit this command" and "...
by nib01
Fri Jan 25, 2019 4:51 pm
 
Forum: Nagios Core
Topic: set up email alerts using mailx
Replies: 33
Views: 744

Re: set up email alerts using mailx

I checked the nagios.cfg config file and confirmed that it's set to "enable_notifications=1 "

The commands and services it seem to be working as shown in nagios.log, except the email Notification alerts.

See attached nagios.log
by nib01
Fri Jan 25, 2019 12:32 pm
 
Forum: Nagios Core
Topic: set up email alerts using mailx
Replies: 33
Views: 744

Re: set up email alerts using mailx

See attached generic-contact template and lnux-server template config. As far as I can see Host and Service Notifications are both enabled. Also, Id like to verify if this free version of Nagios able to support VM instances because all of the servers that we have to monitor are mostly VMs (ProxMox V...
by nib01
Thu Jan 24, 2019 12:56 pm
 
Forum: Nagios Core
Topic: set up email alerts using mailx
Replies: 33
Views: 744

Re: set up email alerts using mailx

Please see attached nagios config files. For the Services and Groups config file, these two config files are combined with the hosts to be monitored. Please let me know if you need additional information.
by nib01
Wed Jan 23, 2019 12:52 pm
 
Forum: Nagios Core
Topic: set up email alerts using mailx
Replies: 33
Views: 744

Re: set up email alerts using mailx

This is an all-in-one command that sends email to $TO_EMAIL_ADDRESS . You need to also replace these $FROM_EMAIL_ADDRESS and $FRIENDLY_NAME variables with your email and name. $ mailx -v -s "$EMAIL_SUBJECT" \ -S smtp=smtp://smtp.ust.hk \ -S from="$FROM_EMAIL_ADDRESS($FRIENDLY_NAME)&q...
by nib01
Tue Jan 22, 2019 5:08 pm
 
Forum: Nagios Core
Topic: set up email alerts using mailx
Replies: 33
Views: 744

Re: set up email alerts using mailx

Do you mean copy the Contact information from contact.cfg file to linuxhosts.cfg file where rancid host is?
by nib01
Tue Jan 15, 2019 12:45 pm
 
Forum: Nagios Core
Topic: set up email alerts using mailx
Replies: 33
Views: 744

Re: set up email alerts using mailx

Ive made all the changes on the command.cfg file as instructed, and finally email notification it works but only on certain object file or hostgroup. Ive created another object file called "linuxhosts.cfg" within object directory and added some hosts in this file. Ive configured nagios.cfg...
by nib01
Mon Jan 14, 2019 1:32 pm
 
Forum: Nagios Core
Topic: set up email alerts using mailx
Replies: 33
Views: 744

Re: set up email alerts using mailx

Could you please help me here? Where should I put the information for smtp server and from address in the command.cfg file? Please see attached command.cfg config file. Thanks!
by nib01
Thu Jan 10, 2019 6:36 pm
 
Forum: Nagios Core
Topic: set up email alerts using mailx
Replies: 33
Views: 744

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...
by nib01
Thu Jan 10, 2019 5:48 pm
 
Forum: Nagios Core
Topic: set up email alerts using mailx
Replies: 33
Views: 744

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$...
by nib01
Thu Dec 20, 2018 4:58 pm
 
Forum: Nagios Core
Topic: set up email alerts using mailx
Replies: 33
Views: 744
Next

Return to advanced search