unable to start Nagios service

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ericsson_att
Posts: 23
Joined: Mon Nov 01, 2010 11:07 am

Re: unable to start Nagios service

Post by ericsson_att »

We were successful in creating the db. Not having NagiosXI in tmp folder, will it be a problem down the line ?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: unable to start Nagios service

Post by mguthrie »

I'm not sure of what steps you did on that, so I don't know for sure. I haven't worked as much with the install scripts, but I have run through the scripts by accident before from the /root directory and it does cause issues with the 'E' script that imports the initial config files. I'd recommend copying the nagiosxi directory to /tmp and re-running the scripts.
ericsson_att
Posts: 23
Joined: Mon Nov 01, 2010 11:07 am

Re: unable to start Nagios service

Post by ericsson_att »

once we move the nagiosxi folder to /tmp, do you think it will work with no issues?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: unable to start Nagios service

Post by mguthrie »

I checked it on my CentOS 5.5 install. I had run the install scripts from the root folder by accident. So I re-ran them from the /tmp directory starting with 2-usergroups just to be safe. My configuration check on the E-importnagiosql script passed ok. The only snag I ran into was at the very end of that script, it stalled out on me for some reason. So I just manually ran the last part of that script, which was:

./restart_nagios_with_export.sh

if it restarts ok, then do:
./nom_create_nagioscore_checkpoint.sh

Not sure why that hung up, our tech who writes the scripts isn't in at the moment. But you should be ok if you follow the above steps. From there you just follow the normal install steps for the web interface. You may get an sql error at the very beginning because it tried to create duplicate tables, but after that you should ok.

I'll watch the forum, send a reply if you hit any other roadblocks.
ericsson_att
Posts: 23
Joined: Mon Nov 01, 2010 11:07 am

Re: unable to start Nagios service

Post by ericsson_att »

Thanks! We really appreciate your quick response and will post an update.
ericsson_att
Posts: 23
Joined: Mon Nov 01, 2010 11:07 am

Re: unable to start Nagios service

Post by ericsson_att »

nagiosql was never deployed in apache, hence E-importnagiosql fails to import all required configuration files.

here is the error log:

http://localhost/nagiosql/admin/import.php
Connecting to 10.7.0.140:8081... connected.
Proxy request sent, awaiting response... 503 Service Unavailable
2010-11-12 10:14:30 ERROR 503: Service Unavailable.

Please let us know what the issue is?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: unable to start Nagios service

Post by mguthrie »

If you're running through all of the install scripts from the /tmp directory now instead of the root and you're getting this error, then it would appear that the issue is related to the proxy configuration.

The E-nagiosql scripts uses wget via php for some of it's processes. It's looking like the proxy is preventing these from being successful.
ericsson_att
Posts: 23
Joined: Mon Nov 01, 2010 11:07 am

Re: unable to start Nagios service

Post by ericsson_att »

because we use proxy server we set the following:

Added the following in /etc/wgetrc :
http_proxy=http://10.7.0.140:8081/
no_proxy=localhost,127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16

please let us know if there is any issue with this.
ericsson_att
Posts: 23
Joined: Mon Nov 01, 2010 11:07 am

Re: unable to start Nagios service

Post by ericsson_att »

this is a new installation from /tmp folder.
ericsson_att
Posts: 23
Joined: Mon Nov 01, 2010 11:07 am

Re: unable to start Nagios service

Post by ericsson_att »

After we ran into the issue with the E script.

We removed the no_proxy from this file and re-started the server.

Added the following in /etc/wgetrc :
http_proxy=http://10.7.0.140:8081/
no_proxy=localhost,127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
Locked