PHP Notice: Undefined variable: err

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

PHP Notice: Undefined variable: err

Post by benhank »

Hey guys
i
I happened to run

Code: Select all

tail -f /usr/local/nagiosxi/var/cmdsubsys.log
while doing an apply config. The apply config ran and completed quickly, however this was the results:

Code: Select all

CMDLINE=php /usr/local/nagiosxi/html/includes/components/nagiosbpi/api_tool.php                                                                                                              --cmd=syncall
PHP Notice:  Undefined variable: err in /usr/local/nagiosxi/html/includes/compon                                                                                                             ents/nagiosbpi/api_tool.php on line 146
CMD: syncall
MSG: Could not get data for objects. NDO or Core may not be running.
OUTPUT=MSG: Could not get data for objects. NDO or Core may not be running.
Should I be concerned about this?
this is on my Nagios XI 5.5.7 server.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: PHP Notice: Undefined variable: err

Post by npolovenko »

@benhank, What is the output of:
service nagios status
service ndo2db status
Also, please run: ps -ef > /tmp/support.txt and upload the support.txt file from the /tmp/ folder.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: PHP Notice: Undefined variable: err

Post by benhank »

the results are a little disturbing....

Code: Select all

[root@lkennagiost01 ~]# service nagios status
>=D
[root@lkennagiost01 ~]# service ndo2db status
you're screwed bro...
[root@lkennagiost01 ~]#

nah jk here you go:

Code: Select all

[root@lkennagiost01 ~]# service nagios status
nagios (pid 8913) is running...
[root@lkennagiost01 ~]# service ndo2db status
ndo2db (pid 8821) is running...
[root@lkennagiost01 ~]#

You do not have the required permissions to view the files attached to this post.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: PHP Notice: Undefined variable: err

Post by npolovenko »

@benhank, Can you upload this config file?
/usr/local/nagiosxi/html/includes/components/nagiosbpi/bpi.conf
[root@lkennagiost01 ~]# service ndo2db status
you're screwed bro...
:D
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: PHP Notice: Undefined variable: err

Post by benhank »

here you go
You do not have the required permissions to view the files attached to this post.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: PHP Notice: Undefined variable: err

Post by npolovenko »

@benhank No, wrong file. I need to see the bpi.conf. It's in the same folder.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: PHP Notice: Undefined variable: err

Post by benhank »

WHOOPS! there you go
You do not have the required permissions to view the files attached to this post.
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: PHP Notice: Undefined variable: err

Post by npolovenko »

@benhank, I spoke to my colleagues and that PHP notice likely means that when you restarted the Core/applied configuration ndo hasn't gotten in sync with the BPI component(for a short period of time). This notice is normal and can be ignored.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: PHP Notice: Undefined variable: err

Post by benhank »

Awesome thanks for the all the help man!
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: PHP Notice: Undefined variable: err

Post by npolovenko »

@benhank, You're welcome!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked