Page 3 of 7

Re: Nagios XI Don't Send E-Mail

Posted: Mon Jan 25, 2016 5:20 pm
by Bone8Head
hsmith wrote:Only the test email will send then?

Can you go to the Admin Page, and see if you have any checkmarks that are not green under system status?
Yes, and they are all green (always green).
Yes, ONLY the Test E-Mail (I receveid all of them).

Re: Nagios XI Don't Send E-Mail

Posted: Mon Jan 25, 2016 5:29 pm
by hsmith
Can I take a look at your profile?

Go to Admin --> System Config --> System Profile
Click "Download Profile"
Save the .zip file and send it to me as a PM.
Do not attach it to this forum post, it will contain sensitive information.

Re: Nagios XI Don't Send E-Mail

Posted: Tue Jan 26, 2016 11:05 am
by hsmith
I've received the profile, I am going to take a look through it.

Re: Nagios XI Don't Send E-Mail

Posted: Tue Jan 26, 2016 11:16 am
by hsmith
Can I see the output of an ipcs -q command?

Re: Nagios XI Don't Send E-Mail

Posted: Tue Jan 26, 2016 4:12 pm
by Bone8Head
hsmith wrote:Can I see the output of an ipcs -q command?

Code: Select all

[root@nagiosfe /]# ipcs -q

------ Message Queues --------
key        msqid      owner      perms      used-bytes   messages
0x20000002 65536      nagios     600        131072000    128000

Re: Nagios XI Don't Send E-Mail

Posted: Tue Jan 26, 2016 4:26 pm
by hsmith
It looks like your message queue is maxing out. Can we follow these steps taken from the Nagios XI FAQ

Open /etc/sysctl.conf with a text editor. Edit the file to match the following values:

Code: Select all

 # Controls the maximum size of a message, in bytes
 kernel.msgmnb = 131072000
 
 # Controls the default maxmimum size of a mesage queue
 kernel.msgmax = 131072000
 
 # Controls the maximum shared segment size, in bytes
 kernel.shmmax = 4294967295
 
 # Controls the maximum number of shared memory segments, in pages
 kernel.shmall = 268435456

 ## The maximum number of messages allowed in any one message queue
 kernel.msgmni = 256000
Then run this command:

Code: Select all

sysctl -p
We also should make sure we restart ndo2db.

Code: Select all

service ndo2db restart

Re: Nagios XI Don't Send E-Mail

Posted: Tue Jan 26, 2016 4:42 pm
by Bone8Head
hsmith wrote:It looks like your message queue is maxing out. Can we follow these steps taken from the Nagios XI FAQ

Open /etc/sysctl.conf with a text editor. Edit the file to match the following values:
Done.

Code: Select all

sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 131072000
kernel.msgmnb = 131072000
kernel.shmmax = 4294967295
kernel.shmall = 268435456
kernel.msgmni = 256000
[root@nagiosfe /]# service ndo2db restart
Stopping ndo2db: .done.
Starting ndo2db: done.
[root@nagiosfe /]#
E-Mail are not coming now, unfortunately :(

Re: Nagios XI Don't Send E-Mail

Posted: Tue Jan 26, 2016 5:09 pm
by hsmith
Does your message queue look better now, at least?

Code: Select all

ipcs -q

Re: Nagios XI Don't Send E-Mail

Posted: Tue Jan 26, 2016 5:22 pm
by Bone8Head
hsmith wrote:Does your message queue look better now, at least?

Code: Select all

ipcs -q

Code: Select all

------ Message Queues --------
key        msqid      owner      perms      used-bytes   messages
0x20000002 65536      nagios     600        131072000    128000
0xe0000002 98305      nagios     600        131072000    128000

Re: Nagios XI Don't Send E-Mail

Posted: Tue Jan 26, 2016 5:41 pm
by hsmith
How many CPUs do you have on this machine?