Page 1 of 1

NRDP stops sending emails - NagiosXi

Posted: Tue Jan 07, 2020 6:43 pm
by dpsupport
Hi,
Apologies in advance, I am new to Nagios system administration and am trying to figure out which direction to go troubleshooting a problem that occurs sporadically. Nagios version is 5.5.8

Basically, we have some users who use the NRDP interface to run XML code which should trigger the generation of an email alert. As I say, this works most of the time, but will stop working. When this stops sending email, other users who are not using the NRDP component continue to receive email alerts with no problem.

An example of the XML code is:

Code: Select all

<checkresults>
	<checkresult type='service' checktype='1'>
		<hostname>stage_3</hostname>
		<servicename>dev_test_2</servicename>
		<state>1</state>
		<output>Report is ready</output>
	</checkresult>
</checkresults>
When we click Submit XML Check Result, there is an OK confirmation, and an email is sent.
It has been reported that when email messages fail to send, the NRDP interface also doesn't return an OK after clicking Submit XML Check Result.

On one recent test where an email failed to send, it did arrive after the machine was rebooted, possibly it is queueing somewhere, but we haven't been able to work out if there is a queue of emails and how it can be monitored.

We have monitored phpmailer.log and maillog but are not sure specifically what to look for.

I apologize for the lack of details and specifics here, but if you can point us in the right direction for logs to check, information to capture, etc.. we will know what to check/capture next time to help narrow this down.

Thanks in advance.

Luke

Re: NRDP stops sending emails - NagiosXi

Posted: Tue Jan 07, 2020 6:56 pm
by Box293

Re: NRDP stops sending emails - NagiosXi

Posted: Tue Jan 07, 2020 8:24 pm
by dpsupport
Double Post - sorry

Re: NRDP stops sending emails - NagiosXi

Posted: Tue Jan 07, 2020 8:41 pm
by dpsupport
Thanks for your reply. I checked the articles and found that none of them applied:
[*] Permissions on /usr/local/nagios/var/spool/checkresults are set as: drwxrwsr-x 2 nagios nagios 8192 Jan 8 11:52 checkresults
[*] The group nagcmd contains the following: /etc/group - nagcmd:x:1002:nagios,apache,snmptt
[*] php-xml is already installed: php-xml-5.4.16-43.el7_4.x86_64

In terms of email settings, the system is using sendmail by default. As mentioned, email does work for a while before it comes to a halt for the users using NRDP only. All other Nagios users continue to recieve email from Nagios and have not experienced any email problems like this.

Thanks again,

Luke

Re: NRDP stops sending emails - NagiosXi

Posted: Wed Jan 08, 2020 3:46 am
by tacolover101
assuming that the nrdp part is working properly, and firing to nagios - then i think the issue lies in mail somewhere.

if you're using sendmail by default, and not a smtp server, then the phpmailer log is irrelevant as this is only used for smtp based settings.

these two files might contain a timestamp, or more information around a throttle at a queue layer for sendmail:

Code: Select all

/var/log/maillog
/var/log/mail.log
do these NRDP alerts send a lot of emails out generally? any chance they could be flooding by chance?

Re: NRDP stops sending emails - NagiosXi

Posted: Wed Jan 08, 2020 9:39 am
by lmiltchev
Thanks @tacolover101!

@dpsupport, @tacolover101 is correct. Check the mail logs for clues. It's possible that emails sent via sendmail were not delivered (got bounced).