SSL and Email issues with nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
vivithemage
Posts: 102
Joined: Tue May 21, 2013 2:52 pm

Re: SSL and Email issues with nagios

Post 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.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: SSL and Email issues with nagios

Post by lmiltchev »

Be sure to check out our Knowledgebase for helpful articles and solutions!
vivithemage
Posts: 102
Joined: Tue May 21, 2013 2:52 pm

Re: SSL and Email issues with nagios

Post by vivithemage »

that is definitely the problem them.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: SSL and Email issues with nagios

Post 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.
vivithemage
Posts: 102
Joined: Tue May 21, 2013 2:52 pm

Re: SSL and Email issues with nagios

Post 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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: SSL and Email issues with nagios

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
vivithemage
Posts: 102
Joined: Tue May 21, 2013 2:52 pm

Re: SSL and Email issues with nagios

Post 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.
Locked