Page 2 of 2

Re: Linux Server Plugin

Posted: Tue Aug 15, 2017 2:39 pm
by scottwilkerson
What did you see when you ran the commands at the top of this document?

Also, what is the output of the following:

Code: Select all

chage -l nagios
service crond status

Re: Linux Server Plugin

Posted: Wed Aug 16, 2017 8:35 am
by sarpione
scottwilkerson wrote:What did you see when you ran the commands at the top of this document?

Also, what is the output of the following:

Code: Select all

chage -l nagios
service crond status
What commands do you refer to?

chage -l nagios:
[root@nagiossrv ~]# chage -l nagios
Last password change : May 31, 2017
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 crond status:
crond (pid 1649) is running...

When i try this :

cd /usr/local/nagiosxi/scripts
su nagios
./reconfigure_nagios.sh


CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password=70CMW8PdGH7o' -O nagiosql.login--2017-08-16 10:35:38-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... failed: Name or service not known.
wget: unable to resolve host address “localhost”
NAGIOSQL LOGIN FAILED!

Re: Linux Server Plugin

Posted: Wed Aug 16, 2017 10:20 am
by scottwilkerson
sarpione wrote:When i try this :

cd /usr/local/nagiosxi/scripts
su nagios
./reconfigure_nagios.sh


CMDLINE
/usr/bin/wget --save-cookies nagiosql.cookies --keep-session-cookies http://localhost/nagiosxi/includes/components/ccm/ --no-check-certificate --post-data 'submit=Login&hidelog=true&loginSubmitted=true&backend=1&username=nagiosxi&password=70CMW8PdGH7o' -O nagiosql.login--2017-08-16 10:35:38-- http://localhost/nagiosxi/includes/components/ccm/
Resolving localhost... failed: Name or service not known.
wget: unable to resolve host address “localhost”
NAGIOSQL LOGIN FAILED!
This says a ton. You need localhost to resolve.

run the following

Code: Select all

echo "127.0.0.1   localhost localhost.localdomain" >> /etc/hosts
And this may resolve all your problems

Re: Linux Server Plugin

Posted: Wed Aug 16, 2017 10:51 am
by sarpione
Excelent! it fixed the problem.
thx a lot!

Re: Linux Server Plugin

Posted: Wed Aug 16, 2017 11:06 am
by scottwilkerson
Awesome! I am closing the thread!