Scripting notification email

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Scripting notification email

Post by BanditBBS »

I am trying to write a script to send email, but prefer to use SMTP but I need to use TLS and supply username and password. I tried looking through XI's code but couldn't find anything.

Anyone care to help me google? :)
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Scripting notification email

Post by sreinhardt »

Our smtp stuff is generally done via the phpmailer script, did you take a look at that? Are you trying to pull information from nagios\postgres or just have the command pass all needed information to your script?
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.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Scripting notification email

Post by BanditBBS »

sreinhardt wrote:Our smtp stuff is generally done via the phpmailer script, did you take a look at that? Are you trying to pull information from nagios\postgres or just have the command pass all needed information to your script?
phpmailer will work for my needs I think. Thanks for pointing it out!
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Scripting notification email

Post by sreinhardt »

Ya no problem!
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.
Locked