It seems to be a warning message according to E_DEPRECATED or E_STRICT The index.php in pnp4nagios/kohana sets error_reporting manually (overriding the setting in /etc/php5/apache/php.ini?)
I was able to make the graphs show correctly by commenting out line 90 of /usr/share/pnp4nagios/html/index.php: /** * Set the error reporting level. Unless you have a special need, E_ALL is a * good level for error reporting. */ //error_reporting(E_ALL & ~E_STRICT); This is obviously no real kind of solution but it solved the issue for me. Also worked to change error_reporting here to add ~E_DEPRECATED as in the defaults in php.ini: error_reporting(E_ALL & ~E_STRICT & ~E_DEPRECATED); There must be some fix needed upstream in pnp4nagios for php 5.4 warnings (we are on 5.6 now but this change seems to have been added to E_STRICT in 5.4... maybe it was moved to E_DEPRECATED in 5.6) Hope this helps Kingdon On Sun, Jun 29, 2014 at 12:40 PM, Kingdon Barrett < [email protected]> wrote: > Your report shows two different versions, I don't see any 0.6.22 in > unstable, > > Nonetheless I am able to reproduce your report with 0.6.16-2 on x86 / > debian sid > > After installing check_mk, pnp4nagios, nagios3, etc... configuring to get > past all the FAQ error messages and setting up npcdmod in nagios.cfg, I too > get: > > Please check the documentation for information about the following error. > > Non-static method nagios_Core::SummaryLink() should not be called > statically, assuming $this from incompatible context > file [line]: > > application/views/graph_content.php *[47]:* > > What previous version did it work for you on? 0.6.16-2 was released back > in 2011 and is even present in stable, Wheezy. > > In this only related thread I could find: > https://sourceforge.net/p/pnp4nagios/mailman/pnp4nagios-users/?viewmonth=201308 > > Wolfgang the maintainer seems to be suggesting there is something wrong > with the apache config but not sure what. I am mystified and this 10-month > old thread also didn't seem to have any resolution. > > -- > Kingdon Barrett <[email protected]> > Attention Lens: http://del.icio.us/yebyen > -- Kingdon Barrett <[email protected]> Attention Lens: http://del.icio.us/yebyen

