NRDP stops sending emails - NagiosXi

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dpsupport
Posts: 3
Joined: Sun Apr 29, 2018 10:42 pm

NRDP stops sending emails - NagiosXi

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: NRDP stops sending emails - NagiosXi

Post by Box293 »

As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
dpsupport
Posts: 3
Joined: Sun Apr 29, 2018 10:42 pm

Re: NRDP stops sending emails - NagiosXi

Post by dpsupport »

Double Post - sorry
Last edited by dpsupport on Tue Jan 07, 2020 9:13 pm, edited 1 time in total.
dpsupport
Posts: 3
Joined: Sun Apr 29, 2018 10:42 pm

Re: NRDP stops sending emails - NagiosXi

Post 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
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: NRDP stops sending emails - NagiosXi

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRDP stops sending emails - NagiosXi

Post 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).
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked