I'm doing a trial of Nagios Network Analyzer for possible purchase and trying to integrate NagiosNA (2014R1.7) with Nagios Core (3.5.1) for alerting. Both pieces of software are on the same box. I can add a new Nagios Server with an NRDP Token and it doesn't seem to have a problem, but when I try to add in a Service/Host, it fails with "Unable to contact Nagios server component". Checking the logs, I see the following:
ERROR - 2014-05-21 17:33:42 --> Severity: Notice --> Trying to get property of non-object /var/www/html/nagiosna/application/models/ion_auth_model.php 180
ERROR - 2014-05-21 17:33:42 --> Severity: Notice --> Undefined property: Hostservices::$data /var/www/html/nagiosna/system/core/Model.php 51
ERROR - 2014-05-21 17:33:42 --> Severity: Notice --> Indirect modification of overloaded property Ion_auth_model::$data has no effect /var/www/html/nagiosna/application/models/ion_auth_model.php 182
ERROR - 2014-05-21 17:33:42 --> Severity: Notice --> Undefined property: Hostservices::$data /var/www/html/nagiosna/system/core/Model.php 51
ERROR - 2014-05-21 17:33:42 --> Severity: Notice --> Indirect modification of overloaded property Ion_auth_model::$data has no effect /var/www/html/nagiosna/application/models/ion_auth_model.php 187
ERROR - 2014-05-21 17:33:42 --> Severity: Warning --> file_get_contents(http://localhost/nagiosxi/includes/comp ... ame=Flows2): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
/var/www/html/nagiosna/application/libraries/Hostservice.php 58
ERROR - 2014-05-21 17:33:42 --> Severity: Notice --> Trying to get property of non-object /var/www/html/nagiosna/application/models/ion_auth_model.php 180
ERROR - 2014-05-21 17:33:42 --> Severity: Notice --> Undefined property: System::$data /var/www/html/nagiosna/system/core/Model.php 51
ERROR - 2014-05-21 17:33:42 --> Severity: Notice --> Indirect modification of overloaded property Ion_auth_model::$data has no effect /var/www/html/nagiosna/application/models/ion_auth_model.php 182
ERROR - 2014-05-21 17:33:42 --> Severity: Notice --> Undefined property: System::$data /var/www/html/nagiosna/system/core/Model.php 51
ERROR - 2014-05-21 17:33:42 --> Severity: Notice --> Indirect modification of overloaded property Ion_auth_model::$data has no effect /var/www/html/nagiosna/application/models/ion_auth_model.php 187
The reference to nagiosxi is what bothers me the most. If I try and take a look at Hostservice.php, it seems that you have decided to encrypt that file, so I can't fix the reference myself.
And ideas of how to fix this?
Thanks,
Hugh
Nagios NA and Nagios Core
Re: Nagios NA and Nagios Core
The actual connection between the Nagios monitoring engine and the Nagios Network Analyzer is actually a component that is Nagios XI only. If you want to monitor services in Nagios Network Analyzer with Nagios Core you'll need to setup a check yourself rather than relying on Nagios Network Analyzer to set it up for you, as that behavior requires Nagios XI.
Also, the performance garnered from giving Nagios Network Analyzer its own server is probably going to be worth the effort. Its very IO hungry and other moderately sized Nagios installs will dig into that.
Also, the performance garnered from giving Nagios Network Analyzer its own server is probably going to be worth the effort. Its very IO hungry and other moderately sized Nagios installs will dig into that.
Nicholas Scott
Former Nagios employee
Former Nagios employee
Re: Nagios NA and Nagios Core
Then I might suggest that you remove references to support for Nagios Core from the documentation here:
http://library.nagios.com/library/produ ... -nagios-xi
Because that says it's supported and makes no mention of any difference between Core and XI when setting up the link. It's a shame, though. This pretty much guarantees that we won't be purchasing Nagios NA.
Hugh
http://library.nagios.com/library/produ ... -nagios-xi
Because that says it's supported and makes no mention of any difference between Core and XI when setting up the link. It's a shame, though. This pretty much guarantees that we won't be purchasing Nagios NA.
Hugh
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios NA and Nagios Core
@hriley - Actually, I think there was a misunderstanding. Nagios Network Analyzer should in fact work just fine with Nagios Core, and added functionality to work with Nagios XI.
However, what you have found is in fact a bug in the current version and I am attaching a new Hostservice.php with the correction made, and it will be in all future versions.
Install by unzipping the attached file into /var/www/html/nagiosna/application/libraries/
Sorry for the misunderstanding...
However, what you have found is in fact a bug in the current version and I am attaching a new Hostservice.php with the correction made, and it will be in all future versions.
Install by unzipping the attached file into /var/www/html/nagiosna/application/libraries/
Sorry for the misunderstanding...
You do not have the required permissions to view the files attached to this post.