Page 1 of 2

Active Host Check Are Disabled

Posted: Wed Oct 26, 2011 1:04 am
by debrite
Dear Admin,

My machine installed

RHEL 5.5
Nagios XI 2011R1.7

After fresh installation I got thit error. Had tried to pressed the Process Start action button but still not running.
I cant find this similiar issue in this forum and please help me how to fix this issue.

Thanks, Hendri

Re: Active Host Check Are Disabled

Posted: Wed Oct 26, 2011 10:14 am
by mguthrie
Are you running SSL, Proxy, or NAT on your system?

Can you access the Admin page and show us the status of the "XI System Component Status"?

Try running:

Code: Select all

 service nagios restart
From the command-line and send us the output if you get an error.

Re: Active Host Check Are Disabled

Posted: Thu Oct 27, 2011 12:02 am
by debrite
mguthrie wrote:Are you running SSL, Proxy, or NAT on your system?

Can you access the Admin page and show us the status of the "XI System Component Status"?

Try running:

Code: Select all

 service nagios restart
From the command-line and send us the output if you get an error.
No i dont used SSL,Proxy or NAT..
no error for restart the nagios services.

heres capture of system status..

Thanks,Hendri

Re: Active Host Check Are Disabled

Posted: Thu Oct 27, 2011 9:54 am
by lmiltchev
debrite,

Run in command line:

Code: Select all

# killall -9 nagios
# service nagios start
Click on "Home", then click on "Process Info" under the "Monitoring Process" from the left panel menu and send us a screenshot.

Re: Active Host Check Are Disabled

Posted: Sun Oct 30, 2011 10:31 pm
by debrite
lmiltchev wrote:debrite,

Run in command line:

Code: Select all

# killall -9 nagios
# service nagios start
Click on "Home", then click on "Process Info" under the "Monitoring Process" from the left panel menu and send us a screenshot.
I am sorry for late reply, I just upgrading to newer version Nagios XI 2011R1.8
and executed those command also..and the Process Info still in Red status..
please see the screen capture..for detail.
thanks before hands..

Re: Active Host Check Are Disabled

Posted: Mon Oct 31, 2011 11:30 am
by nscott
hendri,

Is there a nagios.lock, ndo2db.lock in your /usr/local/nagios/var directory? Also what are the permissions set in that directory?

ll /usr/local/nagios/var

Also, whats the permissions on the nagios.cmd file?

ll /usr/local/nagios/var/rw

Re: Active Host Check Are Disabled

Posted: Mon Oct 31, 2011 8:38 pm
by debrite
nscott wrote:hendri,

Is there a nagios.lock, ndo2db.lock in your /usr/local/nagios/var directory? Also what are the permissions set in that directory?

ll /usr/local/nagios/var

Also, whats the permissions on the nagios.cmd file?

ll /usr/local/nagios/var/rw
nscott,

here's my capture file..
[root@ncsismon ~]# ll /usr/local/nagios/var
total 11308
drwxrwxr-x 2 nagios nagios 4096 Nov 1 00:00 archives
-rw-r--r-- 1 nagios nagios 6 Oct 31 10:23 nagios.lock
-rw-rw-r-- 1 nagios nagios 16581 Nov 1 07:53 nagios.log
-rw-r--r-- 1 nagios nagios 5 Oct 31 10:08 ndo2db.lock
srwxr-xr-x 1 nagios nagios 0 Oct 31 10:08 ndo.sock
-rw-r--r-- 1 nagios nagios 891112 Nov 1 08:31 npcd.log
-rw-r--r-- 1 nagios nagios 10485794 Oct 31 23:05 npcd.log.old
-rw-r--r-- 1 nagios nagios 32681 Oct 31 10:32 objects.cache
-rw------- 1 nagios nagios 47461 Nov 1 07:32 retention.dat
drwxrwsr-x 2 nagios nagcmd 4096 Oct 31 10:32 rw
drwxrwxr-x 5 nagios nagios 4096 Oct 25 12:46 spool
drwxr-xr-x 2 nagios nagios 4096 Oct 25 12:48 stats
-rw-rw-r-- 1 nagios nagios 46976 Nov 1 08:31 status.dat
[root@ncsismon ~]#
[root@ncsismon ~]# ll /usr/local/nagios/var/rw
total 0
srw-rw---- 1 nagios nagcmd 0 Oct 31 10:32 live
[root@ncsismon ~]#

I thing I don't have nagios.cmd file :( should i create it manually ?

Re: Active Host Check Are Disabled

Posted: Tue Nov 01, 2011 11:42 am
by nscott
The nagios.cmd file does not exist if nagios isn't running.

What I'm curious about is that you have the nagios.lock file, but not the nagios.cmd file. Both should only exist when nagios is running. Can you do the following:

killall -9 nagios #You already did this, but this is just to make absolutely sure
rm /usr/local/nagios/var/nagios.lock -f
service nagios start

Now can you check and see if you have the nagios.cmd and nagios.lock file?

Re: Active Host Check Are Disabled

Posted: Wed Nov 02, 2011 9:21 pm
by debrite
nscott wrote:The nagios.cmd file does not exist if nagios isn't running.

What I'm curious about is that you have the nagios.lock file, but not the nagios.cmd file. Both should only exist when nagios is running. Can you do the following:

killall -9 nagios #You already did this, but this is just to make absolutely sure
rm /usr/local/nagios/var/nagios.lock -f
service nagios start

Now can you check and see if you have the nagios.cmd and nagios.lock file?
morning,
nscott , I just did what you suggest..and I got nagios.cmd now.. but in Monitoring Engine Process on Precess State values still Red alert..
I thing I found the problem, I had Nagios Core and Nagvis running in my machine also, after I did those command Nagvis graph showing error said " maybe your nagios didnt running and so on ".. so I reload nagios once again .. then nagios.cmd is gone..

fyi: nagvis is stand alone installation.. not using script from nagiosxi .

[root@ncsismon ~]# killall -9 nagios
You have new mail in /var/spool/mail/root
[root@ncsismon ~]# rm /usr/local/nagios/var/nagios.lock -f
[root@ncsismon ~]# service nagios start
Starting nagios: done.
[root@ncsismon ~]# ll /usr/local/nagios/var/rw
total 0
srw-rw---- 1 nagios nagcmd 0 Nov 3 08:56 live
prw-rw---- 1 nagios nagcmd 0 Nov 3 08:56 nagios.cmd
[root@ncsismon ~]# ll /usr/local/nagios/var
total 15780
drwxrwxr-x 2 nagios nagios 4096 Nov 3 00:00 archives
-rw-r--r-- 1 nagios nagios 6 Nov 3 08:57 nagios.lock
-rw-rw-r-- 1 nagios nagios 17336 Nov 3 08:57 nagios.log
-rw-r--r-- 1 nagios nagios 5 Oct 31 10:08 ndo2db.lock
srwxr-xr-x 1 nagios nagios 0 Oct 31 10:08 ndo.sock
-rw-r--r-- 1 nagios nagios 5460130 Nov 3 08:58 npcd.log
-rw-r--r-- 1 nagios nagios 10485794 Oct 31 23:05 npcd.log.old
-rw-r--r-- 1 nagios nagios 32681 Nov 3 08:57 objects.cache
-rw------- 1 nagios nagios 47459 Nov 3 08:57 retention.dat
drwxrwsr-x 2 nagios nagcmd 4096 Nov 3 08:57 rw
drwxrwxr-x 5 nagios nagios 4096 Oct 25 12:46 spool
drwxr-xr-x 2 nagios nagios 4096 Oct 25 12:48 stats
-rw-rw-r-- 1 nagios nagios 46943 Nov 3 08:58 status.dat
You have new mail in /var/spool/mail/root
[root@ncsismon ~]#

Re: Active Host Check Are Disabled

Posted: Thu Nov 03, 2011 11:07 am
by mguthrie
Ok, I have a feeling that this is being caused either by DB table corruption or a permissions issue somewhere on the system. Can you run the following procedure:

http://assets.nagios.com/downloads/nagi ... p#fixperms

And then also run the DB repair procedure:
http://assets.nagios.com/downloads/nagi ... irdatabase

Also make sure your system time is up to date, having that off can cause unpredictable results.