Nagvis NDO Error
-
- Posts: 85
- Joined: Fri Mar 28, 2014 6:18 am
Nagvis NDO Error
Just updated from core 3.x to 4.x and it works ok.
But nagvis is bringing 'ERROR: Problem (Backend:ndomy_1): NDO Claims that nagios did no status update ... Make sure that nagios and NDO daemons are running.'
I have tried to manually start ndo2db service but all it does is restart nagios.
And the error persists in nagvis.
I understand that ndomod2x is for Nagios2x and ndomod3x is for Nagios3x.
Pleeeeeease tell me there is Nagios4x support for this module.
Please advise.
But nagvis is bringing 'ERROR: Problem (Backend:ndomy_1): NDO Claims that nagios did no status update ... Make sure that nagios and NDO daemons are running.'
I have tried to manually start ndo2db service but all it does is restart nagios.
And the error persists in nagvis.
I understand that ndomod2x is for Nagios2x and ndomod3x is for Nagios3x.
Pleeeeeease tell me there is Nagios4x support for this module.
Please advise.
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagvis NDO Error
What version of NDO are you running? NDO2 is located at:
http://sourceforge.net/projects/nagios/ ... utils-2.x/
What command were you using to try and restart NDO?
http://sourceforge.net/projects/nagios/ ... utils-2.x/
What command were you using to try and restart NDO?
-
- Posts: 85
- Joined: Fri Mar 28, 2014 6:18 am
Re: Nagvis NDO Error
Was Runnig version ndomod1.4. Was using 'service ndo2db start' command.
I have done the update to 4x.using this manual.
But i skipped the part about initializing the sql database because the db already exists.
From the log this is what i get after restarting nagios using and starting daemon ndo2db using :
Strangely when i do a this i what i see for ndo2db
Please advise.
I have done the update to 4x.using this manual
Code: Select all
http://sourceforge.net/p/nagios/ndoutils/ci/ndoutils-2-0/tree/
But i skipped the part about initializing the sql database because the db already exists.
From the log this is what i get after restarting nagios using
Code: Select all
service nagios restart
Code: Select all
/usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg
Code: Select all
ndomod: NDOMOD 2.0.0 (02-28-2014) Copyright (c) 2009 Nagios Core Development Team and Community Contributors
[1408611287] ndomod: Could not open data sink! I'll keep trying, but some output may get lost...
[1408611287] ndomod registered for contact data'
[1408611287] ndomod registered for contact notification data'
[1408611287] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully.
Code: Select all
service --status-all
Code: Select all
[ ? ] ndo2db
Re: Nagvis NDO Error
The sourceforge repo is actually old - it has not been updated since Feb. The actual ndo2 release can be found on github:
https://github.com/NagiosEnterprises/nd ... its/master
https://github.com/NagiosEnterprises/nd ... its/master
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
- Posts: 85
- Joined: Fri Mar 28, 2014 6:18 am
Re: Nagvis NDO Error
I have updated my ndomod.cfg file as per the link provided,but still 'Could not open data sink!'.
Please advise.
Please advise.
-
- Posts: 85
- Joined: Fri Mar 28, 2014 6:18 am
Re: Nagvis NDO Error
It worked!!!,yeeeii ...I had to change the attributes for ndomod.cfg and ndo2db.cfg. I changed owner and group to nagios and changed permissions to 666, to match the nagios configuration files.And now ndo2db is populating the db.
But one more problem, seems NDO is not processing all data,i have commented out the all the other DATA PROCESSING OPTIONS in ndomod.cfg and added: so that all data is processed,but still seems as though not all data is being processed.
Reason for this,is,i have nagvis which depends on the mysql db,but at the moment all am getting from nagvis is 'Object does not exist'.Which means whatever object its looking for has not been inserted into the db yet.
Please advise on any other setting that i need to look at.
Please note,nagvis was working well before i upgraded,in the process i never changed it or its settings,same goes for the db.
But one more problem, seems NDO is not processing all data,i have commented out the all the other DATA PROCESSING OPTIONS in ndomod.cfg and added:
Code: Select all
data_processing_options=-1
Reason for this,is,i have nagvis which depends on the mysql db,but at the moment all am getting from nagvis is 'Object does not exist'.Which means whatever object its looking for has not been inserted into the db yet.
Please advise on any other setting that i need to look at.
Please note,nagvis was working well before i upgraded,in the process i never changed it or its settings,same goes for the db.
Re: Nagvis NDO Error
What version of nagvis are you running? I assume you are using the ndomy backend?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
- Posts: 85
- Joined: Fri Mar 28, 2014 6:18 am
Re: Nagvis NDO Error
Yes I am using ndomy.
Point is am not using nagvis only,there are a number of applications that were getting data from db previously before the upgrade,that is why I was so carefull not to touch the db.But these application are only getting portion of the data now,not all as before.
When I look at at the syslogs,i see errors 'unable to insert due to non-existing fields'.
Does ndoutils2.0.0 change number of fileds which it inserts?
Please advise,this is really a pain,because I am on a production environment.
Point is am not using nagvis only,there are a number of applications that were getting data from db previously before the upgrade,that is why I was so carefull not to touch the db.But these application are only getting portion of the data now,not all as before.
When I look at at the syslogs,i see errors 'unable to insert due to non-existing fields'.
Does ndoutils2.0.0 change number of fileds which it inserts?
Please advise,this is really a pain,because I am on a production environment.
Re: Nagvis NDO Error
No, but Nagios Core 4 added some fields so the DB needs to be updated so the new fields can be inserted. Do you have a more verbose error - specifically which fields are non-existent?tariqondego wrote:Does ndoutils2.0.0 change number of fileds which it inserts?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
- Posts: 85
- Joined: Fri Mar 28, 2014 6:18 am
Re: Nagvis NDO Error
That was the cause,some tables had also crashed,plus the non-existant fileds in hosts and services tables,was causing failure in insert all over the place.
Upgrdaing DBto 2.0.0 solved this.But ndomod-4x is very unstable,causing nagios to crush.
A downgrade to more stable versions nagios3.5.1 and ndoutils1.49b seem to be working out for me.
Thanks for the help.
Upgrdaing DBto 2.0.0 solved this.But ndomod-4x is very unstable,causing nagios to crush.
A downgrade to more stable versions nagios3.5.1 and ndoutils1.49b seem to be working out for me.
Thanks for the help.