Page 5 of 5
Re: SSL and Email issues with nagios
Posted: Tue Nov 26, 2013 1:12 pm
by vivithemage
So I think this is what's going on ... the html email notification was expecting env variables but the new nagios doesn't do that, even when enabled.
Re: SSL and Email issues with nagios
Posted: Tue Nov 26, 2013 4:33 pm
by lmiltchev
Re: SSL and Email issues with nagios
Posted: Tue Nov 26, 2013 4:42 pm
by vivithemage
that is definitely the problem them.
Re: SSL and Email issues with nagios
Posted: Wed Nov 27, 2013 12:37 pm
by slansing
On that tracker post would ryanhoskin's posted solution be a temporary fix for you? I believe that this is being worked on right now.
Re: SSL and Email issues with nagios
Posted: Wed Nov 27, 2013 12:51 pm
by vivithemage
The command is listed like this:
Code: Select all
# 'notify-service-by-email' command definition
define command{
command_name notify-service-by-email
command_line /usr/bin/php -q /u01/app/nagios/bin/nagios_mail.php
}
Looking at the .php file, I don't think I can edit it to include/change the variables.
Re: SSL and Email issues with nagios
Posted: Wed Nov 27, 2013 3:59 pm
by sreinhardt
I may have missed it, but could you link to or post that php file please? If you are using core 4 and the script is expecting environmental variables, lmiltchevs comment would definitely match the issue.
Re: SSL and Email issues with nagios
Posted: Wed Nov 27, 2013 4:11 pm
by vivithemage
I am actually using another script that does not require env variables, it has enough of what I need ... and I was able to add in a few funky links I needed... thanks all, we can close this.