Nagios Core failing to start

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.
Locked
L2BEH
Posts: 4
Joined: Wed Oct 05, 2016 6:41 am

Nagios Core failing to start

Post 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.
User avatar
nozlaf
Posts: 172
Joined: Sun Nov 09, 2014 9:50 pm
Location: Victoria, Australia

Re: Nagios Core failing to start

Post 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?
Last edited by avandemore on Thu Oct 13, 2016 9:24 am, edited 1 time in total.
Reason: Fixed syntax highlighting.
Looking forward to seeing you all at #NagiosCon2019?
-Dedicated Lover of Nconf,PNP4Nagios and Nagvis
L2BEH
Posts: 4
Joined: Wed Oct 05, 2016 6:41 am

Re: Nagios Core failing to start

Post 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..
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Nagios Core failing to start

Post 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!
Locked