Graphs and Email problem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nagarjuna
Posts: 133
Joined: Mon Dec 09, 2013 2:11 am

Graphs and Email problem

Post by nagarjuna »

Hi Nagiox Team
I configured nagios xi Appx 400 hosts and 5000 services
All working fine except graphs and emails

1. GraphsR(Reports) genertaing too slow appx it taking more than 10 min per one machine. how to slove it reduce time ?

2. I have diffrent groups : AIX, Linux , windows..etc
For windows emails are working fine i am able to receive to gmail yahoo..etc But Aix servers i am not able to recive mails..
In Nagios log file and notification panel in nagios core it showing like mails sent to the particular useres i created ( created user and assinged mail ids) ? don't know my mails are getting struck i am not able to receive all my mails to mail ids ??

Please do needful

Thanks,
NAG
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Graphs and Email problem

Post by tmcdonald »

What version of Nagios XI is this? And do you mean alerts for Windows hosts/services are working but alerts for AIX hosts/services are not?
Former Nagios employee
nagarjuna
Posts: 133
Joined: Mon Dec 09, 2013 2:11 am

Re: Graphs and Email problem

Post by nagarjuna »

Hi tmcdonald,

Yes mails are configured with proxy setting in nagiosxi system. We are able to receive mails from windows system as well as suse linux systems. but AIX, we are not able to receive mails in our mail box.

We are using NagiosXI 2014 R1.3. In half of the AIX systems we have more than 50 disk partitions and we have configured them in nagiosxi for warning and alert.

One more thing i want to mention here, in /usr/local/nagios/etc/hosts and /usr/local/nagios/etc/services--> when we are giving apply configuration for any update this AIX system files are not updating (with time stamps) all files are changing their times in specified hosts and services folder.

let me clear more:
when we are apply any configuration all files which is hosts files in /usr/local/nagios/etc/hosts/ and /usr/local/nagios/etc/services/ should be update. but except AIX system files all files updating. means when we checked in specified folders times changed for all hosts except AIX servers.

Thanks in advance
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Graphs and Email problem

Post by abrist »

What types of reports are you running for how long of a time interval? 50 partitions = 50rrds. With a long enough time period for the report and slow disk io/heavy usage may cause the report to time out.
nagarjuna wrote:when we are apply any configuration all files which is hosts files in /usr/local/nagios/etc/hosts/ and /usr/local/nagios/etc/services/ should be update. but except AIX system files all files updating. means when we checked in specified folders times changed for all hosts except AIX servers.
The behavior for apply config changed in 2014. It no longer writes all config files out, just those that have changed in the CCM since the last write out. This drastically reduces the apply config time. If you are noticing changes in the CCM are no longer getting written out, you may have a time mismatch between the system and mysql. Verify the system time and then restart mysql to sync it to the system time.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
nagarjuna
Posts: 133
Joined: Mon Dec 09, 2013 2:11 am

Re: Graphs and Email problem

Post by nagarjuna »

Hi

I am not getting emails . But nagios notifiaction showing notification sent to particular user. I created user and contacts with mail ids .Please check the screens attached.. Don't know where mails going struck

I am attaching reference pictures /usr/logmaillog and mails coming to the mail ids..

when host getting shutdown emails not sending ? please guide me the following
You do not have the required permissions to view the files attached to this post.
nagarjuna
Posts: 133
Joined: Mon Dec 09, 2013 2:11 am

Re: Graphs and Email problem

Post by nagarjuna »

I am able to send test mails to all users mail ids successfully...
But host and services down critical,Warning mail alersta are not coming to mail ids.. Please help on this

more attachments ...
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Graphs and Email problem

Post by abrist »

1) What notification handlers are your contacts/users using?
2) What email method are you using? sendmail or smtp?
3) You may find the following document of interest as it will outline the differences between the core and xi notification handlers, core contacts and xi users, and sendmail vs smtp (phpmailer):
http://assets.nagios.com/downloads/nagi ... ntacts.pdf
And some definitions:
A Few Definitions
Core Contact:
A contact created through the CCM or imported from a text config.

XI User Contact:
A contact created through the "Add New User" Admin interface by checking the box labeled "Create as a Monitoring Contact".

Core Notification Handlers:
Nagios Core notification commands - "notify-host-by-email" and "notify-service-by-email". The handlers use sendmail
exclusively and will not work with the XI SMTP settings.

XI Notification Handlers:
Nagios XI notification commands - "xi_host_notification_handler" and "xi_service_notification_handler". These handlers
use the Nagios XI SMTP settings but require that the contact was created as an XI User Contact.

Sendmail:
A linux binary that sends mail. By default, Core contact notification handlers use sendmail.

Phpmailer (SMTP):
The library that XI uses to send mail using the settings from the "Manage Email Settings" Admin interface – it includes support
for SMTP relays.

A Few Notes Concerning Notification Methods

Contacts can be configured in two different way in XI. The first method is to create an XI user as a monitoring contact by checking the
"Create as Monitoring Contact" checkbox from the "Add New User" interface (Admin → Manage Users → Add New User). Creating a
contact using this method will link the contact to the XI User. This provides the contact with the configuration from the User Settings
and more importantly allows the contact to use the XI host and services notification handlers. This is important to those environments
that use an SMTP relay server as XI's email configuration usually requires the XI notification handlers in order to send mail using the
phpmailer SMTP options.

The second method to create contacts is by creating a new contact through the CCM. Contacts created this way will not be associated
to an XI user and by default, will not work with the XI notification handlers nor the SMTP server settings in the "Manage Email Settings"
interface. Core contacts, by default, will only work with the sendmail option.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
nagarjuna
Posts: 133
Joined: Mon Dec 09, 2013 2:11 am

Re: Graphs and Email problem

Post by nagarjuna »

Hi,

1) What notification handlers are your contacts/users using?
A. xi_host_notification_handler" and "xi_service_notification_handler"

2) What email method are you using? sendmail or smtp?
A. SMTP. Test mail working

But i am not able to receive notifications .

??
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Graphs and Email problem

Post by lmiltchev »

Go to Admin->Manage Email Settings and show us a screenshot of this page.
Be sure to check out our Knowledgebase for helpful articles and solutions!
nagarjuna
Posts: 133
Joined: Mon Dec 09, 2013 2:11 am

Re: Graphs and Email problem

Post by nagarjuna »

Dear Team,

After taking backup and restore with immediate backup, mails are started and we are able to receive mails for all systems.
Thank you very much for you kind support and help us to resolve this issue.


You can close this thread.
Locked