Page 3 of 4

Re: beta, 2014R1.0RC3

Posted: Thu Jun 05, 2014 8:15 am
by hanya.radwan
hi,

I did and ok, but no email sent from Nagios

Re: beta, 2014R1.0RC3

Posted: Thu Jun 05, 2014 8:23 am
by scottwilkerson
The last related item in your log was

Code: Select all

Jun  5 10:40:07 nms1 ndo2db: mysql_error: 'MySQL server has gone away'
Jun  5 10:40:07 nms1 ndo2db: Error: Connection to MySQL database has been lost!
Is mysqld still running?

Code: Select all

service mysqld status

Re: beta, 2014R1.0RC3

Posted: Thu Jun 05, 2014 8:28 am
by hanya.radwan
ok,
[root@nms ~]# service mysqld status
mysqld (pid 10753) is running..

and the attached has maillog

Re: beta, 2014R1.0RC3

Posted: Thu Jun 05, 2014 1:10 pm
by lmiltchev
Let's clarify - are you having an issue with restoring from a backup, or you are having an issue with notifications? Which one do you want us to troubleshoot?

Re: beta, 2014R1.0RC3

Posted: Fri Jun 06, 2014 6:24 am
by hanya.radwan
notification

Re: beta, 2014R1.0RC3

Posted: Fri Jun 06, 2014 10:40 am
by abrist
It sure looks like it is sending emails (through sendmail):
Jun 5 16:00:23 nms1 sendmail[48223]: s55D0Cfb048223: from=root, size=3130, class=0, nrcpts=1, msgid=<[email protected]>, relay=root@localhost
Jun 5 16:00:23 nms1 postfix/smtpd[49363]: connect from localhost[127.0.0.1]
Jun 5 16:00:23 nms1 postfix/smtpd[49363]: A8005283778: client=localhost[127.0.0.1]
Jun 5 16:00:23 nms1 postfix/cleanup[49369]: A8005283778: message-id=<[email protected]>
Jun 5 16:00:23 nms1 sendmail[48223]: s55D0Cfb048223: to=root, ctladdr=root (0/0), delay=00:00:11, xdelay=00:00:00, mailer=relay, pri=33130, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as A8005283778)
Jun 5 16:00:23 nms1 postfix/qmgr[1827]: A8005283778: from=<[email protected]>, size=3618, nrcpt=1 (queue active)
Jun 5 16:00:23 nms1 postfix/smtpd[49363]: disconnect from localhost[127.0.0.1]
Jun 5 16:00:23 nms1 postfix/local[49376]: A8005283778: to=<[email protected]>, relay=local, delay=0.17, delays=0.1/0.05/0/0.02, dsn=2.0.0, status=sent (delivered to mailbox)
Jun 5 16:00:23 nms1 postfix/qmgr[1827]: A8005283778: removed
Did you originally use sendmail or smtp?

Re: beta, 2014R1.0RC3

Posted: Fri Jun 06, 2014 12:38 pm
by hanya.radwan
I used sendemail. now it is Ok, but I still received emails and sms for services I disabled them before four hours

Re: beta, 2014R1.0RC3

Posted: Fri Jun 06, 2014 12:40 pm
by slansing
Did you disable the services themselves or did you acknowledge/disable notifications on them? Can you provide an example of one of your emails along with the details page of that host/service which you have had "disabled" for four hours?

Re: beta, 2014R1.0RC3

Posted: Fri Jun 06, 2014 1:01 pm
by hanya.radwan
I disable the services themselves,
this one email:

***** Nagios XI Alert *****

Nagios has detected a problem with this service.

Notification Type: PROBLEM

Service: CPU Load
Host: localhost
Address: 127.0.0.1
State: CRITICAL
Info:
Connection refused
Date/Time: 2014-06-06 20:00:12

Respond: http://10.102.4.10/nagiosxi//rr.php?uid ... 31a1f87b4c
Nagios URL: http://10.102.4.10/nagiosxi/

Re: beta, 2014R1.0RC3

Posted: Fri Jun 06, 2014 2:30 pm
by lmiltchev
I disable the services themselves
Can you describe in details, all of the steps you took?

Also, run the following command and show us the output in code wraps:

Code: Select all

ps -ef | grep bin/nagios