Page 1 of 1
send Nagvis MAP daily auto via Email
Posted: Mon Sep 02, 2019 4:43 am
by zaji_nms
Dear Expert
FYI, link down/up notification going out perfectly via email from Nagios/NMS server.
We want to send Nagvis MAP to someone automatically on daily basis via Email in morning hours, how possible to do this?
the intention behind this, he/she wants to see all links status graphically UP/DOWN (green/red) as below.
URL :
http://10.20.30.40/nagvis/frontend/nagv ... ites-Links
please note Nagvis opens when providing username and password (requires authentication)
regards
Re: send Nagvis MAP daily auto via Email
Posted: Tue Sep 03, 2019 10:39 am
by lmiltchev
With Nagios XI Enterprise Edition, you can schedule the page
Code: Select all
http://10.20.30.40/nagvis/frontend/nagvis-js/index.php?mod=Map&act=view&show=My-Sites-Links
by clicking
Schedule Page link from the "hamburger" drop-down menu in the upper-right corner. The user who receives the email can click on the URL to access the page (and authenticate if needed).
Let us know if this helped.
Re: send Nagvis MAP daily auto via Email
Posted: Wed Sep 04, 2019 1:14 am
by zaji_nms
sorry, giving error in black/red
Invalid report URL.
if I click / right click the below URL , the page is opening fine (the Nagvis map showing accurately).
Original URL:
http://10.20.30.40/nagvis/frontend/nagv ... ites-Links
regards
Re: send Nagvis MAP daily auto via Email
Posted: Wed Sep 04, 2019 7:59 am
by lmiltchev
sorry, giving error in black/red
Invalid report URL.
Where do you see this error? Can you show us a screenshot?
Re: send Nagvis MAP daily auto via Email
Posted: Wed Sep 04, 2019 8:41 am
by zaji_nms
please find here the error
Re: send Nagvis MAP daily auto via Email
Posted: Wed Sep 04, 2019 10:44 am
by lmiltchev
I haven't been able to reproduce the issue in-house. What is the Nagios XI version that you are currently using?
Can you try loading the page (scheduling the report), then tail the apache error log, and show the output?
Re: send Nagvis MAP daily auto via Email
Posted: Thu Sep 05, 2019 6:18 am
by zaji_nms
dear lmiltchev
XI 5.2.3 (looks having some bug , has been fixed later)
no log at all
# tail /var/log/httpd/error_log
[Thu Sep 05 09:30:38 2019] [error] [client 10.10.10.10] File does not exist: /var/www/html/includes, referer:
http://10.20.30.40/nagiosxi/index.php?
# date
Thu Sep 5 14:07:22 XXX 2019
I tried some other pages and its okay, looks issue with URL itself, as having "Question mark" or "Ampersand" or "Equal sign" in it.
http://10.20.30.40/nagvis/frontend/nagv ... ites-Links
sure there is way, from CLI can be add this in two-three steps, appreciate your guidance
regards
Re: send Nagvis MAP daily auto via Email
Posted: Thu Sep 05, 2019 8:36 am
by lmiltchev
XI 5.2.3 (looks having some bug , has been fixed later)
This is correct. Initially, I didn't know what version of Nagios XI you've been using, so I tried to recreate the issue in Nagios XI 5.6.6. After I found out that you were using Nagios XI 5.2.3, I tried it in this version, and can confirm that there is a bug with scheduling a NagVis page. I would recommend that you upgrade your Nagios XI instance to the latest in order to resolve the issue. The one that you are using is quite old. There are numerous bug fixes and added functionality in newer versions of XI.
Re: send Nagvis MAP daily auto via Email
Posted: Tue Sep 10, 2019 3:07 am
by zaji_nms
Dear lmiltchev
I tried with my friend (XI 5.4.2), however not sending report as PDF attachment
Tactical Overview (able to send as attachment and showing perfectly)
Graph Explorer (sending with attachment but the graph with horizon bars are not showing, attachment not correct)
Any Nagvis Map (not sending any attachment)
Can you please do a favor on your latest (XI 6.x.x), can you plz try different pages (above) as "My Scheduled Reports" , select option send as PDF attachment and let me know if sending as attachment and plz open attachment, the attached showing perfectly?
Note : Please make sure, Nagvis need authentication and please clear cache and check from Mozilla and Chrome both browsers.
regards
Re: send Nagvis MAP daily auto via Email
Posted: Tue Sep 10, 2019 10:08 am
by lmiltchev
When I tested scheduling a NagVis page, I opened the report URL (from the email) into the same browser (that I was logged in), so I was able to view the report just fine. However, opening the link in a different browser didn't work - I was taken to the Nagios XI login page. The PDF also shows the login page. I am sorry about my previous post. I should've tried this in a new browser.

It seems like it is not possible to schedule a NagVis page at the moment, even in the latest version of Nagios XI. I filed an internal bug report on the issue (task_id=14428). I also filed a bug report on scheduling a Graph Explorer page, as the graph gets distorted (task_id=14429). The "Tactical Overview" page scheduled fine.