we have an Icinga2 Installed in our environment , we would like to send Icinga monitoring report ( server Uptime ) to Email Id on weekly basis, i am new to this monitoring tool and need assistance to configure this setup perfectly , can anyone please asssist.
To be able to send notifications you need a package that provides the mail command and a MTA (like postfix) on your master server that relays the messages to a mail server.
Icinga will trigger the notification script based on your defined notification rules (see docs for a first start: Notifications)
There should be plenty guides on the net/youtube that walk you through the whole setup. Be sure to use a fairly recent guide, as things might/will have changed over time.
In case you stumble into problems then, feel free to ask here again!
This one looks pretty good, apart from the fact that it uses other notification scripts than the standard ones provided by Icinga itself.
Instead of creating the notification commands from scratch, like the guide does, I would suggest using the one from the Icinga example configuration by adding the following line to /etc/icinga2/icinga2.conf
include "conf.d/commands.conf"
(systemctl reload icinga2 is needed afterwards)
And then run the Icinga Director Kickstart Wizard from the web interface @ .../director/dashboard?name=infrastructure#!/director/kickstart to have them available in the Director.
You would then use them instead of the Host Alarm By Email and Service Alarm By Email commands from the guide.
AS the last screenshot tells you, you have a duplicate definition of the notification commands.
Either do not include the conf.d/commands.conf file or delete your own commands-perspectium.conf
Then, as @moreamazingnick saif, have a look at the reporting module, that sound more like what you need in regard to Emails for host/service SLA reports.