Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Depending on which way mysql is starting via the init system, that might have just shown us what we are looking for. Could you change ndo2db.cfg so that db_host is 127.0.0.1 instead of localhost. (Yes I know they should be the same, but some systems are picky)
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
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.
though i didn't understand what would that link as my.cnf is in /etc/mysql/my.cnf
then restarted mysql, nagios and ndoutils.
Got the following in nagios log:
[1395682094] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully.
[1395682094] Finished daemonizing... (New PID=9956)
[1395682110] ndomod: Still unable to connect to data sink. 326 items lost, 50000 queued items to flush.
So I assume that didn't help.
Seek and you shall find, knock and it shall be opened, cry and you shall find comfort
For some reason ndo cannot find the mysql sock file, so we are trying to link the my.cnf config to where ndo expects as default.
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.
[1395776334] Event broker module '/usr/local/nagios/bin/ndomod.o' initialized successfully.
[1395776334] Finished daemonizing... (New PID=6186)
[1395776350] ndomod: Still unable to connect to data sink. 354 items lost, 50000 queued items to flush.
Seek and you shall find, knock and it shall be opened, cry and you shall find comfort
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.
Well, I am running out of ideas, that was the location declared in your configs. Maybe you have 2 nagios installs and the configuration is split between them? Lets do some searches, but first, install mlocate:
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.