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.
I've installed nagios 3.3.1 on a gentoo server. Currently running fine. I wanted to install mk-livestatus for nagvis and pnp options, but have run into an issue with either nagios or mk-livestatus, and I'd like to see if someone could possibly shed some light on it.
Basically nagios is failing to load the module with an error of "File Not Found". I've configured a false path in nagios and confirmed that the error I received then was "No such file exists". So I know this is related to the actual livestatus.0 module, but I can't seem to figure out what the issue is with it. I've compiled it manually, as well as via emerge etc. I can't find much information on this and could use ideas as to what to check into further. All the dependencies are installed. Permissions were verified... unless they should be something other than "nagios, apache, root", which all have access to the module (and I'd expect to see "permission denied") if it was an issue with permissions.
Nagios Log Error when trying to load the module:
[1400861283] Nagios 3.3.1 starting... (PID=29457)
[1400861283] Local time is Fri May 23 12:08:03 EDT 2014
[1400861283] LOG VERSION: 2.0
[1400861283] Error: Could not load module '/usr/lib64/mk-livestatus/livestatus.o' -> file not found
Nagios Config file:
broker_module=/usr/lib64/mk-livestatus/livestatus.o /var/nagios/rw/live
event_broker_options=-1
Location of mk-livestatus
mon1 ~ # ls -l /usr/lib64/mk-livestatus/livestatus.o [/align]
-rwxrwxrwx 1 root root 547160 May 23 11:30 /usr/lib64/mk-livestatus/livestatus.o
My presumption is that livestatus is having an issue creating the rw/live socket file. Can you post the full output of a nagios startup from the shell?
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.
[1401295603] Caught SIGHUP, restarting...
[1401295603] Nagios 3.3.1 starting... (PID=1538)
[1401295603] Local time is Wed May 28 12:46:43 EDT 2014
[1401295603] LOG VERSION: 2.0
[1401295603] Error: Could not load module '/usr/lib/mk-livestatus/livestatus.o' -> file not found
[1401295614] HOST DOWNTIME ALERT: fs218.site.com;STARTED; Host has entered a period of scheduled downtime
[1401295614] HOST DOWNTIME ALERT: fs217.site.com;STARTED; Host has entered a period of scheduled downtime
[1401295614] HOST DOWNTIME ALERT: fs2.site.com;STARTED; Host has entered a period of scheduled downtime
[1401295614] HOST DOWNTIME ALERT: fs0.site.com;STARTED; Host has entered a period of scheduled downtime
*snippet*
Rest of the log just rolls through my polling and not another "error" related to "livestatus" shows up.
I found your post on the nagvis forums while looking for solutions to this problem. You are in unique company, just you and yourself
You may want to try the newest version of livestatus: http://mathias-kettner.com/download/mk- ... 4p2.tar.gz
Some compiling required, but as a gentoo user, you will be fine
There was some mention on the other forums about a symlink, could you clarify?
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.
abrist wrote:I found your post on the nagvis forums while looking for solutions to this problem. You are in unique company, just you and yourself
You may want to try the newest version of livestatus: http://mathias-kettner.com/download/mk- ... 4p2.tar.gz
Some compiling required, but as a gentoo user, you will be fine
There was some mention on the other forums about a symlink, could you clarify?
I downloaded and compiled this and have the same issue as I did with the older version. I'm genuinely at a loss. Frustration doesn't really cover this currently.
I ma going to look into this. My main gentoo box runs unstable 64bit, but I doubt there will be many relevant differences from your install. I will create the symlink just as you have done and give it a test. Were any of the nagios related packages installed from portage, or were all source installs?
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.