yum install -y pnp4nagios mk-livestatus --enablerepo=ok-testing
Hello, I just stood up a new Nagios box with Adagios and am getting the follow error when trying to access the status tab. I am still new to Linux, so any help would be appreciated. Thanks.
ParserError: 'Could not find path to livestatus socket file. Please specify one or make sure livestatus broker_module is loaded'
Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/adagios/status/views.py", line 54, in wrapper return fn(*args,**kwargs) File "/usr/lib/python2.6/site-packages/adagios/status/views.py", line 681, in status_index c = adagios.status.utils.get_statistics(request) File "/usr/lib/python2.6/site-packages/adagios/status/utils.py", line 193, in get_statistics l = livestatus(request) File "/usr/lib/python2.6/site-packages/adagios/status/utils.py", line 23, in livestatus livestatus = pynag.Parsers.mk_livestatus(nagios_cfg_file=adagios.settings.nagios_config, authuser=authuser) File "/usr/lib/python2.6/site-packages/pynag/Parsers/__init__.py", line 1423, in __init__ raise ParserError("Could not find path to livestatus socket file. Please specify one or make sure livestatus broker_module is loaded") ParserError: 'Could not find path to livestatus socket file. Please specify one or make sure livestatus broker_module is loaded'--
You received this message because you are subscribed to the Google Groups "adagios" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adagios+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/adagios/status/views.py", line 54, in wrapper return fn(*args,**kwargs) File "/usr/lib/python2.6/site-packages/adagios/status/views.py", line 681, in status_index c = adagios.status.utils.get_statistics(request) File "/usr/lib/python2.6/site-packages/adagios/status/utils.py", line 195, in get_statistics c['service_totals'] = l.query('GET services', 'Stats: state = 0', 'Stats: state = 1', 'Stats: state = 2','Stats: state = 3',columns=False) File "/usr/lib/python2.6/site-packages/pynag/Parsers/__init__.py", line 1507, in query s = self._get_socket() File "/usr/lib/python2.6/site-packages/pynag/Parsers/__init__.py", line 1463, in _get_socket % (e, self.livestatus_socket_path) ParserError: "[Errno 2] No such file or directory while connecting to '/var/spool/nagios/cmd/livestatus'. Make sure nagios is running and mk_livestatus loaded."
pynag config --append "broker_module=/usr/lib64/nagios/brokers/npcdmod.o config_file=/etc/pnp4nagios/npcd.cfg"
pynag config --append "broker_module=/usr/lib64/mk-livestatus/livestatus.o /var/spool/nagios/cmd/livestatus"
pynag config --set "process_performance_data=1"
# Add nagios to apache group so it has permissions to pnp4nagios's session files
usermod -G apache nagios
# We need to restart both apache and nagios so new changes take effect
service nagios restart
service httpd restart
service npcd restart
chkconfig npcd on
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "adagios" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adagios/AKfWPqb9rxM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adagios+u...@googlegroups.com.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/adagios/views.py", line 43, in wrapper
result = view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/adagios/status/views.py", line 650, in status_index
c = adagios.status.utils.get_statistics(request)
File "/usr/lib/python2.7/site-packages/adagios/status/utils.py", line 454, in get_statistics
*arguments
File "/usr/lib/python2.7/site-packages/pynag/Parsers/livestatus.py", line 1116, in get_services
return self.query('GET services', *args, **kwargs)
File "/usr/lib/python2.7/site-packages/pynag/Parsers/multisite.py", line 80, in query
query_result = backend_instance.query(query, *args, **kwargs)
File "/usr/lib/python2.7/site-packages/pynag/Parsers/livestatus.py", line 973, in query
livestatus_response = self.write(livestatus_query.get_query())
File "/usr/lib/python2.7/site-packages/pynag/Parsers/livestatus.py", line 820, in write
livestatus_socket = self._get_socket()
File "/usr/lib/python2.7/site-packages/pynag/Parsers/livestatus.py", line 804, in _get_socket
raise ParserError(msg % (e, self.livestatus_socket_path))
ParserError: "[Errno 2] No such file or directory while connecting to '/var/spool/nagios/cmd/livestatus'. Make sure nagios is running and mk_livestatus loaded."
[1454100262] Error: Could not load module '/usr/lib64/mk-livestatus/livestatus.o' -> /usr/lib64/mk-livestatus/livestatus.o: undefined symbol: last_command_check[1454100262] Error: Failed to load module '/usr/lib64/mk-livestatus/livestatus.o'.[1454100262] Error: Module '/usr/lib64/nagios/brokers/npcdmod.o' is using an old or unspecified version of the event broker API. Module will be unloaded.[1454100262] Event broker module '/usr/lib64/nagios/brokers/npcdmod.o' deinitialized successfully.[1454100262] Error: Failed to load module '/usr/lib64/nagios/brokers/npcdmod.o'.[1454100262] Error: Module loading failed. Aborting.