NagVis Host downtime not recognized

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

NagVis Host downtime not recognized

Post by WillemDH »

Hello,

Ii'm still using the default NagVis provided by Nagios with default settings. (1.5.9) As I was trying to make a legend with all the possible icons, I was in need of a host icon which shows the host in downtime. So I tried setting a host in downtime, but the icon on my test NagVis map never updated and stayed green or ok.

Also when I right click the icon and choose 'Schedule downtime' I get

Code: Select all

Not Found

The requested URL /nagiosxi/includes/components/xicore/cmd.cgi was not found on this server.
Are the above 2 issues known or can someone try to reproduce? I tried with HTTP and HTTPS, same issue.

Grtz and tx.

Willem
Nagios XI 5.8.1
https://outsideit.net
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NagVis Host downtime not recognized

Post by rkennedy »

Just to make sure we're on the same page, I tried to replicate this and didn't see an issue. Here's the steps I followed -

1. Navigate to http://192.168.4.254/nagvis/ (I could of done this through XI, but to skip the frames I went this route)
2. Open -> Default Automap
3. Right click localhost -> Schedule downtime

The link ends up sending me to http://192.168.4.254/nagios/cgi-bin/cmd ... =localhost (which opens fine)

While all of this is going on, the localhost icon was green. I then changed the address in localhost to 128.0.0.1 (to bring to a down state), and the localhost icon changed accordingly. I wasn't able to replicate this one either.

What is the component version for Nagvis that you are using? Can you provide some clarification if I did something different from you to replicate this?
Former Nagios Employee
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

Re: NagVis Host downtime not recognized

Post by SteveBeauchemin »

Willem,

In one of my older posts, I cover running the new version of NagVis. The NagVis default works fine with Nagios Core. In Nagios XI it needs a little help. Included at the tail of that doc is information on how to make the right click in NagVis work for Nagios XI. I do not think that the data is NagVis Version specific. It should work for your right click question. Right-Click uses the context menu, and is controlled by the context template in NagVis.

Also in /usr/local/nagvis/etc/nagvis.ini.php there are some items that need to change from using .cgi to .php

make sure of the following
[paths]
htmlcgi="/nagiosxi/includes/components/xicore"

and
hosturl="[htmlcgi]/status.php?host=[host_name]"
hostgroupurl="[htmlcgi]/status.php?show=services&hostgroup=[hostgroup_name]"
serviceurl="[htmlcgi]/status.php?show=servicedetail&host=[host_name]&service=[service_description]&dest=auto"
servicegroupurl="[htmlcgi]/status.php?show=services&servicegroup=[servicegroup_name]"

I also made some custom variables in the back end section that are used by the template I attached.
custom_1="/nagiosxi/includes/components/nagioscore/ui"
custom_2="/nagiosxi/includes/components/xicore"

Take a look at the old post.
https://support.nagios.com/forum/viewto ... 16&t=36519

Steve B
Last edited by SteveBeauchemin on Wed Jan 27, 2016 5:12 pm, edited 1 time in total.
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: NagVis Host downtime not recognized

Post by rkennedy »

Thanks for adding to this @SteveBeauchemin. Willem - let us know when you get a chance to review this.
Former Nagios Employee
Locked