Nagios Stopped checking services and hosts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Nagios Stopped checking services and hosts

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios Stopped checking services and hosts

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: Nagios Stopped checking services and hosts

Post 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...
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Stopped checking services and hosts

Post by scottwilkerson »

lets run

Code: Select all

service nagios start
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: Nagios Stopped checking services and hosts

Post by srikanth.kallu »

[root@nagiosxi ~]# service nagios start
Starting nagios:CONFIG ERROR! Start aborted. Check your Nagios configuration.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Stopped checking services and hosts

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
srikanth.kallu
Posts: 243
Joined: Thu Jul 26, 2012 10:48 am

Re: Nagios Stopped checking services and hosts

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Stopped checking services and hosts

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