Starting nagios, localhost appears DOWN

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.
volpeadmin
Posts: 21
Joined: Wed Sep 25, 2013 9:44 am

Starting nagios, localhost appears DOWN

Post 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? ;)
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Starting nagios, localhost appears DOWN

Post by tmcdonald »

Care to post some details? Specifically OS + version, Nagios version, and 32bit/64bit architecture.
Former Nagios employee
volpeadmin
Posts: 21
Joined: Wed Sep 25, 2013 9:44 am

Re: Starting nagios, localhost appears DOWN

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

Re: Starting nagios, localhost appears DOWN

Post 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
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.
volpeadmin
Posts: 21
Joined: Wed Sep 25, 2013 9:44 am

Re: Starting nagios, localhost appears DOWN

Post 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
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Starting nagios, localhost appears DOWN

Post 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:
Be sure to check out our Knowledgebase for helpful articles and solutions!
volpeadmin
Posts: 21
Joined: Wed Sep 25, 2013 9:44 am

Re: Starting nagios, localhost appears DOWN

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

Re: Starting nagios, localhost appears DOWN

Post by abrist »

Lets check the settings on the nagios account:

Code: Select all

grep nagios /etc/passwd
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.
volpeadmin
Posts: 21
Joined: Wed Sep 25, 2013 9:44 am

Re: Starting nagios, localhost appears DOWN

Post by volpeadmin »

nagios:x:503:503::/home/nagios:/sbin/nologin
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Starting nagios, localhost appears DOWN

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked