Page 1 of 1

Nagios Stopped checking services and hosts

Posted: Wed Jan 23, 2013 3:05 pm
by srikanth.kallu
NAgios Stopped checking services, hosts and sending notifications

What action need to be taken now, i have rebooted nagios server thinking that if it will be ok, but did not work

Re: Nagios Stopped checking services and hosts

Posted: Wed Jan 23, 2013 3:08 pm
by lmiltchev
To rule out a database corruption, you can run in terminal:

Code: Select all

/usr/local/nagiosxi/scripts/repairmysql.sh nagios
Can you check if these services are running?

Code: Select all

service nagios status
service crond status
service ndo2db status

Re: Nagios Stopped checking services and hosts

Posted: Wed Jan 23, 2013 3:30 pm
by srikanth.kallu
i ran this command

/usr/local/nagiosxi/scripts/repairmysql.sh nagios

at the end it shows repair complete.

[root@nagiosxi ~]# service nagios status
nagios is not running
[root@nagiosxi ~]# service crond status
crond (pid 5212) is running...
[root@nagiosxi ~]# service ndodb status
ndodb: unrecognized service
[root@nagiosxi ~]# service ndo2db status
ndo2db (pid 5287) is running...

Re: Nagios Stopped checking services and hosts

Posted: Wed Jan 23, 2013 3:34 pm
by scottwilkerson
lets run

Code: Select all

service nagios start

Re: Nagios Stopped checking services and hosts

Posted: Wed Jan 23, 2013 3:37 pm
by srikanth.kallu
[root@nagiosxi ~]# service nagios start
Starting nagios:CONFIG ERROR! Start aborted. Check your Nagios configuration.

Re: Nagios Stopped checking services and hosts

Posted: Wed Jan 23, 2013 3:39 pm
by scottwilkerson
In the Web UI go to Configure -> CCM -> Tools -> Write config files
Click Write
Click Verify


Report errors or fix them in the CCM and then repeat until errors = 0

Then

Code: Select all

service nagios start

Re: Nagios Stopped checking services and hosts

Posted: Wed Jan 23, 2013 3:53 pm
by srikanth.kallu
This is fixed, This happened because when i tried to add a new service to one of my host and i made a mistake there.

I was looking hard to find a document to learn how to add a new service to any host. Can you help

Re: Nagios Stopped checking services and hosts

Posted: Wed Jan 23, 2013 4:05 pm
by abrist
Start with the manuals. There are so many possible host/service configurations that it is nearly impossible to document all permutations.
http://library.nagios.com/library/produ ... xi/manuals