Need help to use Nuvola on updated nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
skyerjoe
Posts: 56
Joined: Thu Mar 22, 2012 2:57 am

Need help to use Nuvola on updated nagios

Post by skyerjoe »

Hello Folks,

We use the nuvola theme for many years .. to our satisafaction.

Now we updated nagios on version 3.5.1 and some Problems with the nuvola style occurs ...

So after a Little bit research i found out (https://www.monitoringexchange.org/inve ... vola-Style) that the fileshave to be changed that the php construct from nagios fits in.

But i don't know anything about php ...

Does anyone can help me to Setup nuvola for the updated Nagios ?

Thanks for help !!

regards fireskyer
Nagios Core 3.5.1

Checkmk 1.2.4p5
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Need help to use Nuvola on updated nagios

Post by tmcdonald »

You would need to talk to the developer of that addon for this. Also, it looks quite old:

Code: Select all

Last Modified:    2010-05-21 12:28:35
And moving this to the general core forum as this is not a plugins-related question.
Former Nagios employee
skyerjoe
Posts: 56
Joined: Thu Mar 22, 2012 2:57 am

Re: Need help to use Nuvola on updated nagios

Post by skyerjoe »

@tmcdonald

Hello

I think the developer is ethan

I don't know where i can reach him ....

so .. i searching for People which still uses nuvola in their enviroment

regards skyerjoe
Nagios Core 3.5.1

Checkmk 1.2.4p5
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Need help to use Nuvola on updated nagios

Post by sreinhardt »

I don't actually believe that ethan developed this one, but he's not in for me to ask at the moment. Are you getting any errors you can show, we really need a description or logs other than it doesn't work to get you the best help possible.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Need help to use Nuvola on updated nagios

Post by Box293 »

The readme in the download has the authors email address:

Nagios Nuvola Style (gael.pourriel@gmail.com)

Also, at the top of the page it says:
Works with nagios 3.2 (php based) if you rename the side.html to side.php and add <?php ?> tags.
Have you tried this?
In the side.php file, make the first line:

Code: Select all

<?php
And the last line:

Code: Select all

?>
Check /var/log/httpd/error_log for any problems.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
skyerjoe
Posts: 56
Joined: Thu Mar 22, 2012 2:57 am

Re: Need help to use Nuvola on updated nagios

Post by skyerjoe »

Hello again,
Have you tried this?
In the side.php file, make the first line:
i tried this .. nothing works ....


the Apache error log does't Show anything which is related to the nagios Website only some Infos about checkmk ( ips's are not real ):

Code: Select all

[Sun Aug 03 22:02:17 2014] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.22 with Suhosin-Patch mod_python/3.3.1 Python/2.6.5 configured -- resuming normal operations
[Mon Aug 04 10:50:32 2014] [error] [client 192.168.235.135] File does not exist: /var/www/pnp4nagios, referer: http://192.168.235.128/check_mk/view.py?view_name=service&site=&service=Water%20Alert%20level%202&host=ow-server
[Mon Aug 04 10:50:32 2014] [error] [client 192.168.235.135] File does not exist: /var/www/pnp4nagios, referer: http://192.168.235.128/check_mk/view.py?view_name=service&site=&service=Water%20Alert%20level%202&host=ow-server
[Mon Aug 04 10:50:32 2014] [error] [client 192.168.235.135] File does not exist: /var/www/pnp4nagios, referer: http://192.168.235.128/check_mk/view.py?view_name=service&site=&service=Water%20Alert%20level%202&host=ow-server
[Mon Aug 04 10:50:32 2014] [error] [client 192.168.235.135] File does not exist: /var/www/pnp4nagios, referer: http://192.168.235.128/check_mk/view.py?view_name=service&site=&service=Water%20Alert%20level%202&host=ow-server
[Mon Aug 04 10:50:32 2014] [error] [client 192.168.235.135] File does not exist: /var/www/pnp4nagios, referer: http://192.168.235.128/check_mk/view.py?view_name=service&site=&service=Water%20Alert%20level%202&host=ow-server
[Mon Aug 04 10:50:32 2014] [error] [client 192.168.235.135] File does not exist: /var/www/pnp4nagios, referer: http://192.168.235.128/check_mk/view.py?view_name=service&site=&service=Water%20Alert%20level%202&host=ow-server
[Mon Aug 04 10:50:32 2014] [error] [client 192.168.235.135] File does not exist: /var/www/pnp4nagios, referer: http://192.168.235.128/check_mk/view.py?view_name=service&site=&service=Water%20Alert%20level%202&host=ow-server
[Mon Aug 04 10:50:32 2014] [error] [client 192.168.235.135] File does not exist: /var/www/pnp4nagios, referer: http://192.168.235.128/check_mk/view.py?view_name=service&site=&service=Water%20Alert%20level%202&host=ow-server
[Mon Aug 04 10:50:32 2014] [error] [client 192.168.235.135] File does not exist: /var/www/pnp4nagios, referer: http://192.168.235.128/check_mk/view.py?view_name=service&site=&service=Water%20Alert%20level%202&host=ow-server
/usr/lib/python2.6/dist-packages/mod_python/importer.py:32: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
/usr/lib/python2.6/dist-packages/mod_python/importer.py:32: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
/usr/lib/python2.6/dist-packages/mod_python/util.py:119: DeprecationWarning: object.__init__() takes no parameters
  str.__init__(self, value)
/usr/lib/python2.6/dist-packages/mod_python/importer.py:32: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
/usr/lib/python2.6/dist-packages/mod_python/util.py:119: DeprecationWarning: object.__init__() takes no parameters
  str.__init__(self, value)
/usr/lib/python2.6/dist-packages/mod_python/importer.py:32: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
/usr/lib/python2.6/dist-packages/mod_python/importer.py:32: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
/usr/lib/python2.6/dist-packages/mod_python/util.py:119: DeprecationWarning: object.__init__() takes no parameters
  str.__init__(self, value)
/usr/lib/python2.6/dist-packages/mod_python/importer.py:32: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
/usr/lib/python2.6/dist-packages/mod_python/importer.py:32: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
/usr/lib/python2.6/dist-packages/mod_python/util.py:119: DeprecationWarning: object.__init__() takes no parameters
  str.__init__(self, value)
/usr/lib/python2.6/dist-packages/mod_python/importer.py:32: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
/usr/lib/python2.6/dist-packages/mod_python/importer.py:32: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
/usr/lib/python2.6/dist-packages/mod_python/util.py:119: DeprecationWarning: object.__init__() takes no parameters
  str.__init__(self, value)
"/var/log/apache2/error.log" 263L, 29442C
So here is my side.php from the actual nuvola theme:

Code: Select all

<?php
include_once(dirname(__FILE__).'/includes/utils.inc.php');

$link_target="main";

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>

<head>
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
<TITLE>Nagios Core</TITLE>
<link href="stylesheets/common.css" type="text/css" rel="stylesheet">
</head>

<body class='navbar'>



<div class="navbarlogo">
<a href="http://www.nagios.org" target="_blank"><img src="images/sblogo.png" height="39" width="140" border="0" alt="Nagios" /></a>
</div>

<div class="navsection">
<div class="navsectiontitle">General</div>
<div class="navsectionlinks">
<ul class="navsectionlinks">
<li><a href="main.php" target="<?php echo $link_target;?>">Home</a></li>
<li><a href="http://go.nagios.com/nagioscore/docs" target="_blank">Documentation</a></li>
</ul>
</div>
</div>


<div class="navsection">
<div class="navsectiontitle">Current Status</div>
<div class="navsectionlinks">
<ul class="navsectionlinks">
<li><a href="<?php echo $cfg["cgi_base_url"];?>/tac.cgi" target="<?php echo $link_target;?>">Tactical Overview</a></li>
<li><a href="<?php echo $cfg["cgi_base_url"];?>/statusmap.cgi?host=all" target="<?php echo $link_target;?>">Map</a></li>
<li><a href="<?php echo $cfg["cgi_base_url"];?>/status.cgi?hostgroup=all&style=hostdetail" target="<?php echo $link_target;?>">Hosts</a></li>
<li><a href="<?php echo $cfg["cgi_base_url"];?>/status.cgi?host=all" target="<?php echo $link_target;?>">Services</a></li>
<li>
<a href="<?php echo $cfg["cgi_base_url"];?>/status.cgi?hostgroup=all&style=overview" target="<?php echo $link_target;?>">Host Groups</a>
<ul>
<li><a href="<?php echo $cfg["cgi_base_url"];?>/status.cgi?hostgroup=all&style=summary" target="<?php echo $link_target;?>">Summary</a></li>
<li><a href="<?php echo $cfg["cgi_base_url"];?>/status.cgi?hostgroup=all&style=grid" target="<?php echo $link_target;?>">Grid</a></li>
</ul>
</li>
<li>
<a href="<?php echo $cfg["cgi_base_url"];?>/status.cgi?servicegroup=all&style=overview" target="<?php echo $link_target;?>">Service Groups</a>
<ul>
<li><a href="<?php echo $cfg["cgi_base_url"];?>/status.cgi?servicegroup=all&style=summary" target="<?php echo $link_target;?>">Summary</a></li>
<li><a href="<?php echo $cfg["cgi_base_url"];?>/status.cgi?servicegroup=all&style=grid" target="<?php echo $link_target;?>">Grid</a></li>
</ul>
</li>
<li>
<a href="<?php echo $cfg["cgi_base_url"];?>/status.cgi?host=all&servicestatustypes=28" target="<?php echo $link_target;?>">Problems</a>
<ul>
<li>
<a href="<?php echo $cfg["cgi_base_url"];?>/status.cgi?host=all&servicestatustypes=28" target="<?php echo $link_target;?>">Services</a> (<a href="<?php echo $cfg["cgi_base_url"];?>/status.cgi?host=all&type=detail&hoststatustypes=3&serviceprops=42&servicestatustypes=28" target="<?php echo $link_target;?>">Unhandled</a>)
</li>
<li>
<a href="<?php echo $cfg["cgi_base_url"];?>/status.cgi?hostgroup=all&style=hostdetail&hoststatustypes=12" target="<?php echo $link_target;?>">Hosts</a> (<a href="<?php echo $cfg["cgi_base_url"];?>/status.cgi?hostgroup=all&style=hostdetail&hoststatustypes=12&hostprops=42" target="<?php echo $link_target;?>">Unhandled</a>)
</li>
<li><a href="<?php echo $cfg["cgi_base_url"];?>/outages.cgi" target="<?php echo $link_target;?>">Network Outages</a></li>
</ul>
</li>
</ul>
</div>


<div class="navbarsearch">
<form method="get" action="<?php echo $cfg["cgi_base_url"];?>/status.cgi" target="<?php echo $link_target;?>">
<fieldset>
<legend>Quick Search:</legend>
<input type='hidden' name='navbarsearch' value='1'>
<input type='text' name='host' size='15' class="NavBarSearchItem">
</fieldset>
</form>
</div>

</div>


<div class="navsection">
<div class="navsectiontitle">Reports</div>
<div class="navsectionlinks">
<ul class="navsectionlinks">
<li><a href="<?php echo $cfg["cgi_base_url"];?>/avail.cgi" target="<?php echo $link_target;?>">Availability</a></li>
<li><a href="<?php echo $cfg["cgi_base_url"];?>/trends.cgi" target="<?php echo $link_target;?>">Trends</a></li>

<li>
<a href="<?php echo $cfg["cgi_base_url"];?>/history.cgi?host=all" target="<?php echo $link_target;?>">Alerts</a>
<ul>
<li><a href="<?php echo $cfg["cgi_base_url"];?>/history.cgi?host=all" target="<?php echo $link_target;?>">History</a></li>
<li><a href="<?php echo $cfg["cgi_base_url"];?>/summary.cgi" target="<?php echo $link_target;?>">Summary</a></li>
<li><a href="<?php echo $cfg["cgi_base_url"];?>/histogram.cgi" target="<?php echo $link_target;?>">Histogram</a></li>
</ul>
</li>
<li><a href="<?php echo $cfg["cgi_base_url"];?>/notifications.cgi?contact=all" target="<?php echo $link_target;?>">Notifications</a></li>
<li><a href="<?php echo $cfg["cgi_base_url"];?>/showlog.cgi" target="<?php echo $link_target;?>">Event Log</a></li>
</ul>
</div>
</div>


<div class="navsection">
<div class="navsectiontitle">System</div>
<div class="navsectionlinks">
<ul class="navsectionlinks">
<li><a href="<?php echo $cfg["cgi_base_url"];?>/extinfo.cgi?type=3" target="<?php echo $link_target;?>">Comments</a></li>
<li><a href="<?php echo $cfg["cgi_base_url"];?>/extinfo.cgi?type=6" target="<?php echo $link_target;?>">Downtime</a></li>
<li><a href="<?php echo $cfg["cgi_base_url"];?>/extinfo.cgi?type=0" target="<?php echo $link_target;?>">Process Info</a></li>
<li><a href="<?php echo $cfg["cgi_base_url"];?>/extinfo.cgi?type=4" target="<?php echo $link_target;?>">Performance Info</a></li>
<li><a href="<?php echo $cfg["cgi_base_url"];?>/extinfo.cgi?type=7" target="<?php echo $link_target;?>">Scheduling Queue</a></li>
<li><a href="<?php echo $cfg["cgi_base_url"];?>/config.cgi" target="<?php echo $link_target;?>">Configuration</a></li>
</ul>
</div>
</div>




</BODY>
</HTML>

?>

May some one with php knowledge know what i have to do ...

thanks for help

regards skyerjoe
Nagios Core 3.5.1

Checkmk 1.2.4p5
skyerjoe
Posts: 56
Joined: Thu Mar 22, 2012 2:57 am

Re: Need help to use Nuvola on updated nagios

Post by skyerjoe »

Hello again

So after a littlbe bit research i found this website: http://perishablepress.com/advanced-php ... g-via-php/

So I set a few settings in my php.ini:

Code: Select all

;;; php error handling for production servers
display_startup_errors = true
display_errors = true
html_errors = true
log_errors = true
ignore_repeated_errors = false
ignore_repeated_source = false
report_memleaks = true
track_errors = true
docref_root = 0
docref_ext = 0
error_log = /var/log/php-error.log
error_reporting = 999999999
log_errors_max_len = 0
suPHP_ConfigPath  /usr/local/nagios/share

I'm not sure if it's the right direction

regards skyerjoe
Nagios Core 3.5.1

Checkmk 1.2.4p5
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Need help to use Nuvola on updated nagios

Post by sreinhardt »

Unfortunately as stated above, this isn't really something we support, so I am going to lock this thread. Please contact the developer at gael.pourriel@gmail.com for further help, hopefully they have not abandoned the project.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked