check_naf PNP Template

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
morsel
Posts: 1
Joined: Wed Jan 09, 2013 5:33 am

check_naf PNP Template

Post by morsel »

After implementing check_naf.py in a XI installation I stumbled upon the following error wenn using the check_naf.php (+check_naf_helper.php) PNP Template that comes with it.

apache error.log:

Code: Select all

PHP Fatal error: Using $this when not in object context in check_naf.php on line 19
Is it possible this is due to the "old" PNP Frontend Version used in XI? AFAIK a 0.4x version is used as the frontend part of PNP.
I was informed that this version of the plugin/template is working in Core with the latest stable PNP Version.

System:

Nagios XI Version : 2012R1.2
2.6.32-279.el6.x86_64 x86_64
CentOS release 6.3 (Final)
Gnome is not installed
Apache Information

PHP Version: 5.3.3
Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11

Nagios XI Data

nagios (pid 40197) is running...
NPCD running (pid 1590).
ndo2db (pid 1646) is running...
CPU Load 15: 0.52
Total Hosts: 87
Total Services: 216
check_naf.php.txt
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: check_naf PNP Template

Post by scottwilkerson »

morsel wrote:AFAIK a 0.4x version is used as the frontend part of PNP
As XI impliments it's own graph API this would take a rewrite of the API among other things.

Please feel free to add a feature request to the tracker.
http://tracker.nagios.com/
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart