Yea, I ran this command: cat /etc/resolv.conf
I noticed my Nagios network configuration was setup to receive IP Address automatically, I changed to manual & provided ip address / default gateway & our internal DNS server along with domain name to make it full network configuration. I can see the IP address listed on Nagios Xi.
But for some reason, now I can't get to my NagiosXi login access page, says page not found. I have followed this to setup the Manual IP configuration: https://support.nagios.com/kb/article/c ... s-549.html
Please, assist after I get this page to come up, maybe that shall fix the DNS resolution issue for gmail as well.
Setup Postfix on my Nagios Xi for sending the alerts
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Setup Postfix on my Nagios Xi for sending the alerts
Yes, im going http://IP/nagiosxi/ that can't reach the page, although I able to ping the server.
After I change the IP Address configuration to it manually then only the can't get to the page, automatically does work, but that's not best practice.
When I run the following command sudo systemctl restart httpd.service (Get the below error message).
Job for httpd.service failed because a fatal signal was delievered to the control process. See systemctly status httpd.service and journalctl - xe for details.
I did reboot the server all together couple of times, not sure if that can also restart all the services & I know my configuration are 100% correct.
After I change the IP Address configuration to it manually then only the can't get to the page, automatically does work, but that's not best practice.
When I run the following command sudo systemctl restart httpd.service (Get the below error message).
Job for httpd.service failed because a fatal signal was delievered to the control process. See systemctly status httpd.service and journalctl - xe for details.
I did reboot the server all together couple of times, not sure if that can also restart all the services & I know my configuration are 100% correct.
Re: Setup Postfix on my Nagios Xi for sending the alerts
Can you show the output of the following commands?
Code: Select all
systemctly status httpd.service
journalctl - xe
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Setup Postfix on my Nagios Xi for sending the alerts
I have reinstalled the Nagios Xi, now when I sent the Test email, I do receive it. But trying to generate an alert, the notifications are not coming through.
Re: Setup Postfix on my Nagios Xi for sending the alerts
Do you see notifications sent in the Notifications report? Were they sent, but not received by the contacts, or they were never sent? Did you set the "Send From" email under the "Email Settings" page?
Go to Admin > System Config > Email Settings > Enable logging (Logging = checked) > Update Settings
Check for bounced emails/errors in the /usr/local/nagiosxi/tmp/phpmailer.log and/or /var/log/maillog.
Follow the steps, outlined in the KB article below in order to troubleshoot the notification issues on your system:
https://support.nagios.com/kb/article/n ... ms-36.html
Let us know if this helped.
Go to Admin > System Config > Email Settings > Enable logging (Logging = checked) > Update Settings
Check for bounced emails/errors in the /usr/local/nagiosxi/tmp/phpmailer.log and/or /var/log/maillog.
Follow the steps, outlined in the KB article below in order to troubleshoot the notification issues on your system:
https://support.nagios.com/kb/article/n ... ms-36.html
Let us know if this helped.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Setup Postfix on my Nagios Xi for sending the alerts
Hello /usr/local/nagiosxi/tmp/phpmailer.log that logs doesn't show the notification, I do receive the email, when I send the test email, it does make to my inbox, but the regular notifications not coming through. I have couple of my servers added, that has critical, but don't receive the email. The way, I want to setup is to not use a SMTP server, therefore in the email settings, I'm using the send mail method in the Outmail settings, will that work to send out notification? but when I do use a SMTP server / username/password. I do receive the notification. But ill want to setup use Nagios Xi to send the alert which is sendmail method. Please, confirm, if that method shall work.
Re: Setup Postfix on my Nagios Xi for sending the alerts
Either method will work if you configure your system properly. Let's check a few things:
1. Show us the actual config of one of the "problem" services, along with the configs of the any other relevant objects, e.g. service template, and a contact that are added to this service.
Note: You can view the configs of any object in the CCM by clicking on the "View config" actions button.
2. Show us a screenshot of the State History report, showing the "problem" service in a HARD Critical state.
3. Show a screenshot of the Notifications report for the same time period (as in step 2)
4. Go to Admin System Config > Email Settings, and show a screenshot of the page.
5. If your monitoring contact is a xi user, log in (masquerade in) as this user, click on the username in the upper right corner, click on the Notification Preferences, then on Notification Methods, and show screenshots of both pages.
6. Upload the /var/log/maillog file to the forum.
1. Show us the actual config of one of the "problem" services, along with the configs of the any other relevant objects, e.g. service template, and a contact that are added to this service.
Note: You can view the configs of any object in the CCM by clicking on the "View config" actions button.
2. Show us a screenshot of the State History report, showing the "problem" service in a HARD Critical state.
3. Show a screenshot of the Notifications report for the same time period (as in step 2)
4. Go to Admin System Config > Email Settings, and show a screenshot of the page.
5. If your monitoring contact is a xi user, log in (masquerade in) as this user, click on the username in the upper right corner, click on the Notification Preferences, then on Notification Methods, and show screenshots of both pages.
6. Upload the /var/log/maillog file to the forum.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Setup Postfix on my Nagios Xi for sending the alerts
Yea, actually. No for some reason, I started to get the notifications. By the way, I'm not using any SMTP just under the email settings, just using the send mail method & using a send from email address & that's all, but its working that way. Just curious, is that send mail option using still using an internal SMTP from Nagios or that's just a Postfix feature already built-in NagiosXi to send out the alerts? Please, explain.
Also, I need to have my Text/SMS notification to able to come to my cell phone, when ever there is an alert or notification.
I have put in my phone number, when I click send verification key it doesn't make it to my text, I have tried with a different phone number & different service, still no luck. Please, let me know how to resolve it, just FYI I have MetroPCS service that's part of T-Mobile.
Also, I need to have my Text/SMS notification to able to come to my cell phone, when ever there is an alert or notification.
I have put in my phone number, when I click send verification key it doesn't make it to my text, I have tried with a different phone number & different service, still no luck. Please, let me know how to resolve it, just FYI I have MetroPCS service that's part of T-Mobile.
Re: Setup Postfix on my Nagios Xi for sending the alerts
I am glad that your issue has been resolved.No for some reason, I started to get the notifications.
Sendmail just uses postfix - it has nothing to do with SMTP.Just curious, is that send mail option using still using an internal SMTP from Nagios or that's just a Postfix feature already built-in NagiosXi to send out the alerts? Please, explain.
You need to do a few things:Also, I need to have my Text/SMS notification to able to come to my cell phone, when ever there is an alert or notification.
I have put in my phone number, when I click send verification key it doesn't make it to my text, I have tried with a different phone number & different service, still no luck. Please, let me know how to resolve it, just FYI I have MetroPCS service that's part of T-Mobile.
1. Make sure that your mobile carrier is added under the Mobile Carriers page (Admin > System Config > Mobile Carriers) and the Email-To-Text Address Format is correctly defined. Most probably, you will have to add something like this: 2. Make sure that your user is setup to receive SMS messages. Click on the username in the upper-right corner, go to:
- Notification Options > Notification Preferences > Mobile Text (SMS), and make sure all types of alerts are selected (the ones that you would like to receive that is)
- Notification Options > Notification Methods > Mobile Text (SMS), and make sure that the "Receive text alerts to your cellphone" check-box is selected, your phone number is entered into the "Mobile Phone Number" field, and the MetroPCS carrier is selected from the "Mobile Phone Carrier" drop-down menu.
3. Make sure that your mobile carrier is not blocking Email-To-Text messages. Call them to find out.
4. See if you can send an email to xxxxxxxxxx@mymetropcs.com, where you substitute xxxxxxxxxx with your actual phone number. Can you send a test notification in Nagios XI?
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!