Page 1 of 1

Nagios Core failing to start

Posted: Thu Oct 13, 2016 5:48 am
by L2BEH
Hello,

Not sure if anyone can help me but when trying to start nagios core - systemctl start nagios - I get an error.
When running journalctl -xe I have the following:

nagios.service: Control process exited, code=exited status=8
Oct 13 11:45:55 SERVERNAME systemd[1]: Failed to start LSB: Starts and stops the Nagios monitoring server.
-- Subject: Unit nagios.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit nagios.service has failed.
--
-- The result is failed.
Oct 13 11:45:55 SERVERNAME systemd[1]: nagios.service: Unit entered failed state.
Oct 13 11:45:55 SERVERNAME systemd[1]: nagios.service: Failed with result 'exit-code'.
Oct 13 11:45:55 SERVERNAME polkitd(authority=local)[1322]: Unregistered Authentication Agent for unix-process:2928:96

Any help is appreciated.

Re: Nagios Core failing to start

Posted: Thu Oct 13, 2016 6:31 am
by nozlaf
what does tail /usr/local/nagios/var/nagios.log display?
what does /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg display?

Re: Nagios Core failing to start

Posted: Thu Oct 13, 2016 9:12 am
by L2BEH
what does [code[ tail /usr/local/nagios/var/nagios.log [/code] display?
what does
CODE: SELECT ALL
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
display?
Thank you! you helped me fix my problem. It was an issue in the templates.cfg file, I am trying to define a service on nagios graphs for used disk space on a windows machine.
I have already done it for ping (it works):

Code: Select all

define service {
use generic-service,nagiosgraph
host_name VIRTUALMACHINETEST
service_description PING
check_command check_ping!100,10%!200,20%
But I can't figure out how to do it for the used disk space, I know it would look something along the lines of

Code: Select all

define service {
use generic-service,nagiosgraph
host_name VIRTUALMACHINETEST
service_description C:\ Drive Space
check_command check_nt!USEDDISKSPACE!
but I am not entirely sure what switches I need to add after to get the graph to work..

Re: Nagios Core failing to start

Posted: Thu Oct 13, 2016 10:27 am
by dwhitfield
What version of Nagios Core are you running? Did you install it from repos or did you compile it? On what OS are you running Nagios? This will help us give precise instructions for getting your disk space graph to work. Thanks!