Page 1 of 1

NagVis Host downtime not recognized

Posted: Wed Jan 27, 2016 5:35 am
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

Re: NagVis Host downtime not recognized

Posted: Wed Jan 27, 2016 11:29 am
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?

Re: NagVis Host downtime not recognized

Posted: Wed Jan 27, 2016 1:37 pm
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

Re: NagVis Host downtime not recognized

Posted: Wed Jan 27, 2016 4:59 pm
by rkennedy
Thanks for adding to this @SteveBeauchemin. Willem - let us know when you get a chance to review this.