unable to start Nagios service
-
ericsson_att
- Posts: 23
- Joined: Mon Nov 01, 2010 11:07 am
Re: unable to start Nagios service
We were successful in creating the db. Not having NagiosXI in tmp folder, will it be a problem down the line ?
Re: unable to start Nagios service
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
once we move the nagiosxi folder to /tmp, do you think it will work with no issues?
Re: unable to start Nagios service
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.
./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
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
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?
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?
Re: unable to start Nagios service
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.
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
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.
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
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
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
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