Integration with nagiosgraph

Information and discussions relating to the Nagios V-Shell web interface.

Integration with nagiosgraph

Postby fireshipjohn » Fri Jul 22, 2011 8:17 am

We are just evaluating V-Shell and have successfully installed it and all seems OK.
We use nagiosgraph and I notice the graph icons do not appear on V-Shell.

Does it handle the 'Extra Service Actions' from Nagios Core?


Posts: 1
Joined: Fri Jul 22, 2011 5:41 am

Re: Integration with nagiosgraph

Postby mguthrie » Fri Jul 22, 2011 8:41 am

Currently that feature doesn't exist yet in V-Shell, but I'll make a note to add support for some of the addon tools like nagiosgraph and pnp in future releases.
Posts: 4384
Joined: Mon Jun 14, 2010 10:21 am

Re: Integration with nagiosgraph

Postby Seapre » Sat Mar 30, 2013 2:11 am

I have the similar issue.
I have integrated pnp4nagios with Nagios Core, and it is working fine with Nagios Core, but does not show in V-Shell.
And OS icons are not shown up as well.
Any ideas to fix the problems?
Posts: 1
Joined: Sat Mar 30, 2013 2:03 am

Re: Integration with nagiosgraph

Postby mguthrie » Thu Apr 04, 2013 2:04 pm

Currently there isn't PNP performance graph integration with V-Shell, however, the project is completely open source, and we accept patches at any time :)
Posts: 4384
Joined: Mon Jun 14, 2010 10:21 am

Re: Integration with nagiosgraph

Postby as300182 » Wed Jun 22, 2016 9:55 am

This worked for me as far Nagiosgraph integration is concerned.

In the vshell/views folder edit the fetch_icons.php file as follows:

Add this function at the bottom of the file.

Code: Select all
function graph_icon()
   $img = '<img src="/nagios/images/action.gif" title="View graph if available" alt="Graph" class="tableIcon" height="15" width="15" />';
   return $img;

Then in the fetch_service_icons function at around line 123 where it says
Code: Select all
$icons = '';
add the following line immediately after:

Code: Select all
$icons .= "<a target='_blank' href='/nagiosgraph/cgi-bin/show.cgi?host=".$service['host_name']."&service=".$service['service_description']."'>".graph_icon()."</a>";

Hopefully this is what you were looking for?
Posts: 36
Joined: Tue May 17, 2016 8:09 am

Re: Integration with nagiosgraph

Postby tmcdonald » Wed Jun 22, 2016 10:03 am

Thank you for the contribution, but this thread is over 3 years old since the last reply, and 5 years old overall. I will be closing this now.
Former Nagios employee
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Return to Nagios V-Shell

Who is online

Users browsing this forum: No registered users and 2 guests