Starting nagios, localhost appears DOWN
-
- Posts: 21
- Joined: Wed Sep 25, 2013 9:44 am
Starting nagios, localhost appears DOWN
"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?
...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
Care to post some details? Specifically OS + version, Nagios version, and 32bit/64bit architecture.
Former Nagios employee
-
- Posts: 21
- Joined: Wed Sep 25, 2013 9:44 am
Re: Starting nagios, localhost appears DOWN
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
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
Lets check groups:
The nagios account:
Is nagios running?
Can you ping and lookup localhost?
Code: Select all
grep nag /etc/group
Code: Select all
chage -l nagios
Code: Select all
service nagios status
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.
"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.
-
- Posts: 21
- Joined: Wed Sep 25, 2013 9:44 am
Re: Starting nagios, localhost appears DOWN
# grep nag /etc/group
nagios503:
nagcmd504:nagios,apache
nagiosadmin505:
# 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
nagios503:
nagcmd504:nagios,apache
nagiosadmin505:
# 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
Modify the "/etc/group" by changing this line:
to this:
I am not sure why you have the following line in there:
Code: Select all
nagios:x:503:
Code: Select all
nagios:x:503:nagios,apache
Code: Select all
nagiosadmin:x:505:
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 21
- Joined: Wed Sep 25, 2013 9:44 am
Re: Starting nagios, localhost appears DOWN
# tail -2 /etc/group
nagios503:nagios,apache
nagcmd504: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...)
nagios503:nagios,apache
nagcmd504: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
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.
"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.
-
- Posts: 21
- Joined: Wed Sep 25, 2013 9:44 am
Re: Starting nagios, localhost appears DOWN
nagios503:503::/home/nagios:/sbin/nologin
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Starting nagios, localhost appears DOWN
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