Hi All,
We are getting frequent connection lost between Nagios XI and Service Now.
Automatic ticket is created in service now if any alert is there on nagios .
But in past days we are receiving no tickets in Service Now
Kindly suggest any solution for the above.
Thanks,
Hoegh
No Ticket generation through Nagios
No Ticket generation through Nagios
Thanks
Höegh
Höegh
Re: No Ticket generation through Nagios
Hi Team,
We are getting this error message from the log file: /usr/local/nagiosxi/tmp/phpmailer.log
2018-12-17 16:40:20 SERVER -> CLIENT: 220 Hoegh SMTP service ready at Mon, 17 Dec 2018 17:40:22 +0100 2018-12-17 16:40:20 CLIENT -> SERVER: EHLO oslms018 2018-12-17 16:40:20 SERVER -> CLIENT: 250-osldo015.lhc4net.lhc.com Hello oslms018 ([10.202.21.19]), pleased to meet you 250-TLS 250-HELP 250-VRFY 250-STARTTLS 250-DSN 250-SIZE 52428800 250-8BITMIME 250 PIPELINING 2018-12-17 16:40:20 CLIENT -> SERVER: STARTTLS 2018-12-17 16:40:20 SERVER -> CLIENT: 220 Ready to start TLS 2018-12-17 16:40:20 SMTP Error: Could not connect to SMTP host. 2018-12-17 16:40:20 CLIENT -> SERVER: QUIT 2018-12-17 16:40:20 SERVER -> CLIENT: 2018-12-17 16:40:20 SMTP ERROR: QUIT command failed: 2018-12-17 16:40:20 SMTP connect() failed.
Regards,
Hoegh
We are getting this error message from the log file: /usr/local/nagiosxi/tmp/phpmailer.log
2018-12-17 16:40:20 SERVER -> CLIENT: 220 Hoegh SMTP service ready at Mon, 17 Dec 2018 17:40:22 +0100 2018-12-17 16:40:20 CLIENT -> SERVER: EHLO oslms018 2018-12-17 16:40:20 SERVER -> CLIENT: 250-osldo015.lhc4net.lhc.com Hello oslms018 ([10.202.21.19]), pleased to meet you 250-TLS 250-HELP 250-VRFY 250-STARTTLS 250-DSN 250-SIZE 52428800 250-8BITMIME 250 PIPELINING 2018-12-17 16:40:20 CLIENT -> SERVER: STARTTLS 2018-12-17 16:40:20 SERVER -> CLIENT: 220 Ready to start TLS 2018-12-17 16:40:20 SMTP Error: Could not connect to SMTP host. 2018-12-17 16:40:20 CLIENT -> SERVER: QUIT 2018-12-17 16:40:20 SERVER -> CLIENT: 2018-12-17 16:40:20 SMTP ERROR: QUIT command failed: 2018-12-17 16:40:20 SMTP connect() failed.
Regards,
Hoegh
Thanks
Höegh
Höegh
-
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: No Ticket generation through Nagios
Hello, @hoegh. Looks like your XI server is unable to connect to the SMTP server. Please go to the Admin menu in XI GUI, then click on Manage Mail Settings menu in the left column, make sure that you selected TLS or SSL option and entered correct username and password to authenticate against this SNMP server.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: No Ticket generation through Nagios
Hi npolovenko,
We are neither using TLS os SSL for SMTP server.
Regards,
Hoegh
We are neither using TLS os SSL for SMTP server.
Regards,
Hoegh
You do not have the required permissions to view the files attached to this post.
Thanks
Höegh
Höegh
Re: No Ticket generation through Nagios
Hi Team,
We have made no changes and still have error with the SMTP mail.
We need an immediate solution , if something can be suggested that will be useful.
Attached profile and system log files.
Regards,
Hoegh
We have made no changes and still have error with the SMTP mail.
We need an immediate solution , if something can be suggested that will be useful.
Attached profile and system log files.
Regards,
Hoegh
You do not have the required permissions to view the files attached to this post.
Thanks
Höegh
Höegh
-
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: No Ticket generation through Nagios
@hoegh, The messages from the phpmailer.log indicate that your SMTP is using STARTTLS. Please double check with your SMTP server provider because it looks like it does require SSL authentication, and Nagios is failing to authenticate.
As an option, you can switch your mailing settings to Sendmail and not use SMTP. A built-in php send mailer script will be used.
Also, looks like you have corruption in the database. Please run the following command:
As an option, you can switch your mailing settings to Sendmail and not use SMTP. A built-in php send mailer script will be used.
Also, looks like you have corruption in the database. Please run the following command:
/usr/local/nagiosxi/scripts/repair_databases.sh
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: No Ticket generation through Nagios
Repaired database as mentioned.
===============
REPAIR COMPLETE
===============
Stopping ndo2db: done.
Starting ndo2db: done.
Stopping nagios: .done.
Starting nagios: done.
=======================
nagios database repair succeeded
nagiosql database repair succeeded
nagiosxi database repair succeeded
Thanks
===============
REPAIR COMPLETE
===============
Stopping ndo2db: done.
Starting ndo2db: done.
Stopping nagios: .done.
Starting nagios: done.
=======================
nagios database repair succeeded
nagiosql database repair succeeded
nagiosxi database repair succeeded
Thanks
Thanks
Höegh
Höegh
Re: No Ticket generation through Nagios
DB has been repaired.
We confirmed with Messaging team regarding SMTP Settings. But Still we are getting SMTP Connect() Failed error.
We tried Sendmail, it showing that mail will be sent to entered email ID. but no mail is received on recipient side.
Please suggest what need to be done now.
Thanks & Regards
Hoegh
We confirmed with Messaging team regarding SMTP Settings. But Still we are getting SMTP Connect() Failed error.
We tried Sendmail, it showing that mail will be sent to entered email ID. but no mail is received on recipient side.
Please suggest what need to be done now.
Thanks & Regards
Hoegh
You do not have the required permissions to view the files attached to this post.
Thanks
Höegh
Höegh
-
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: No Ticket generation through Nagios
@hoegh, You could put the setting back to SMTP and then run the TCP dump command while Nagios is trying to send a message/connect to the SMTP server.
Also please go to the page where you attempted to send a test email with the Sendmail script, insert a different test email address(preferably on Gmail), and then let me know if that address receives a test message.
That way we could analyze at what point the connection between the Nagios and SMTP server breaks.tcpdump -i any -s 0 port 25 -w /tmp/nagios.pcap
Also please go to the page where you attempted to send a test email with the Sendmail script, insert a different test email address(preferably on Gmail), and then let me know if that address receives a test message.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: No Ticket generation through Nagios
Hi ,
[root@OSLMSnagios ~]# tcpdump -i any -s 0 port 25 -w /tmp/nagios.pcap
tcpdump: listening on any, link-type LINUX_SLL (Linux cooked), capture size 65535 bytes
Also Changed mail to gmail account, but no mail received.
Test Email Settings
A test email was sent to vjhamtani@gmail.com
----
Mailer said: [12-21-2018 11:45:19] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=smtp.hoegh.com;port=25;smtpauth=true;security=none), Referer: admin/testemail.php
An error occurred sending a test email!
[root@OSLMSnagios ~]# tcpdump -i any -s 0 port 25 -w /tmp/nagios.pcap
tcpdump: listening on any, link-type LINUX_SLL (Linux cooked), capture size 65535 bytes
Also Changed mail to gmail account, but no mail received.
Test Email Settings
A test email was sent to vjhamtani@gmail.com
----
Mailer said: [12-21-2018 11:45:19] SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/ ... leshooting (method=smtp;host=smtp.hoegh.com;port=25;smtpauth=true;security=none), Referer: admin/testemail.php
An error occurred sending a test email!
Thanks
Höegh
Höegh