Page 1 of 2

Starting nagios, localhost appears DOWN

Posted: Wed Sep 25, 2013 12:23 pm
by volpeadmin
"Starting nagios: This account is currently not available. done."

...not a whole lot of help or insight from its developers but obviously this particular Nagios error sounds like one of permissions, maybe with the "nagios" user or "nagcmd". Well, after a "flawless" install, its the same problem I get when stating up the nagios server, only thing is I've checked in all the right places for owners, users, permissions and didn't find any discrepancies, not with the cfg files, nor with the php files. Aside from this, Apache does allow a connection to the web front end but the localhost appears down when checking the hosts. So I'm wondering if The Management team will have any more intuition or acumen as to suggest some other probabilities? ;)

Re: Starting nagios, localhost appears DOWN

Posted: Wed Sep 25, 2013 12:29 pm
by tmcdonald
Care to post some details? Specifically OS + version, Nagios version, and 32bit/64bit architecture.

Re: Starting nagios, localhost appears DOWN

Posted: Wed Sep 25, 2013 12:39 pm
by volpeadmin
Red Hat Enterprise Linux Server release 6.4 (Santiago)
NagiosĀ® Coreā„¢ Version 3.5.1
64bit
...and I'll do you one more, my good friend (if it helps)...
Linux Kernel: 2.6.32-358.18.1.el6.x86_64
nagios-plugins 1.4.16

Re: Starting nagios, localhost appears DOWN

Posted: Wed Sep 25, 2013 2:57 pm
by abrist
Lets check groups:

Code: Select all

grep nag /etc/group
The nagios account:

Code: Select all

chage -l nagios
Is nagios running?

Code: Select all

service nagios status
Can you ping and lookup localhost?

Code: Select all

ping localhost
nslookup localhost

Re: Starting nagios, localhost appears DOWN

Posted: Fri Sep 27, 2013 12:51 pm
by volpeadmin
# grep nag /etc/group
nagios:x:503:
nagcmd:x:504:nagios,apache
nagiosadmin:x:505:

# chage -l nagios
Last password change : Sep 18, 2013
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7

# service nagios status
nagios (pid 9966) is running...

# ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.082 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.019 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.015 ms
--- localhost ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2273ms
rtt min/avg/max/mdev = 0.015/0.038/0.082/0.031 ms

# nslookup localhost
Server: 152.122.15.149
Address: 152.122.15.149#53

Non-authoritative answer:
Name: localhost
Address: 127.0.0.1

Re: Starting nagios, localhost appears DOWN

Posted: Fri Sep 27, 2013 1:13 pm
by lmiltchev
Modify the "/etc/group" by changing this line:

Code: Select all

nagios:x:503:
to this:

Code: Select all

nagios:x:503:nagios,apache
I am not sure why you have the following line in there:

Code: Select all

nagiosadmin:x:505:

Re: Starting nagios, localhost appears DOWN

Posted: Fri Sep 27, 2013 1:39 pm
by volpeadmin
# tail -2 /etc/group
nagios:x:503:nagios,apache
nagcmd:x:504:nagios,apache

# service nagios restart
Running configuration check...done.
Stopping nagios: done.
Starting nagios:This account is currently not available.
done.

(...didn't effect it...)

Re: Starting nagios, localhost appears DOWN

Posted: Fri Sep 27, 2013 1:48 pm
by abrist
Lets check the settings on the nagios account:

Code: Select all

grep nagios /etc/passwd

Re: Starting nagios, localhost appears DOWN

Posted: Fri Sep 27, 2013 2:02 pm
by volpeadmin
nagios:x:503:503::/home/nagios:/sbin/nologin

Re: Starting nagios, localhost appears DOWN

Posted: Fri Sep 27, 2013 5:29 pm
by scottwilkerson
I think we're going to need to see the /etc/init.d/nagios file to see what user and group nagios is trying to start as