I'm installing NagiosQL, and it's not displaying the http://mybox.com/nagiosql/index.php page, so I suspect that PHP isn't working correctly. "
On 7/2/07, Rogelio Bastardo scubacuda@gmail.com wrote:
I'm installing NagiosQL, and it's not displaying the http://mybox.com/nagiosql/index.php page, so I suspect that PHP isn't working correctly.
Okay. Let's start small then.
1. Do you have php installed? 2. Do you have php-mysql and the other likely php packages which may be required, installed. (rpm -qa php*) 3. Have you looked in your logs to see WHY it's not working? (what error messages are being generated) 4. Is selinux affecting your page loads? Do you have selinux enabled/disabled/permissive?
I actually posted several of these details, but for whatever reason, they didn't show up in the email when it hit the listserv.
- Do you have php installed? 2. Do you have php-mysql and the other
likely php packages which may be required, installed. (rpm -qa php*)
[root@nagios-server init.d]# rpm -qa php* php-mysql-4.3.9-3.22.5 php-pgsql-4.3.9-3.22.5 php-odbc-4.3.9-3.22.5 php-pear-4.3.9-3.22.5 php-imap-4.3.9-3.22.5 php-4.3.9-3.22.5 php-ldap-4.3.9-3.22.5 [root@nagios-server init.d]#
- Have you looked in your logs to see WHY it's not working? (what
error messages are being generated)
[root@nagios-server logs]# tail error_log [Wed Jun 27 13:57:49 2007] [notice] Digest: generating secret for digest authentication ... [Wed Jun 27 13:57:49 2007] [notice] Digest: done [Wed Jun 27 13:57:49 2007] [notice] LDAP: Built with OpenLDAP LDAP SDK [Wed Jun 27 13:57:49 2007] [notice] LDAP: SSL support unavailable [Wed Jun 27 13:57:49 2007] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads. [Wed Jun 27 13:57:49 2007] [notice] Apache/2.0.52 (CentOS) configured -- resuming normal operations [Wed Jun 27 13:58:30 2007] [error] [client 10.200.200.54] File does not exist: /var/www/html/nagiosql [Wed Jun 27 14:04:51 2007] [error] [client 10.200.200.54] File does not exist: /var/www/html/nagiosql [Wed Jun 27 14:05:01 2007] [error] [client 10.200.200.54] File does not exist: /var/www/html/nagiosql [Wed Jun 27 14:21:19 2007] [error] [client 10.200.200.54] File does not exist: /var/www/html/nagiosql
4. Is selinux affecting your page loads? Do you have selinux
enabled/disabled/permissive?
I actually disabled it (I found that it was enabled by the person who previously installed it).
I suspect that it's a permissions issue, as index.php *does* exist in that spot. Should I perhaps chown or chmod (using Apache?)
On 7/2/07, Rogelio Bastardo scubacuda@gmail.com wrote:
[Wed Jun 27 13:58:30 2007] [error] [client 10.200.200.54] File does not exist: /var/www/html/nagiosql [Wed Jun 27 14:04:51 2007] [error] [client 10.200.200.54] File does not exist: /var/www/html/nagiosql
This is your problem right here. Since you say the file exists in that location, and apache says it doesn't, it's most likely a permissions error. Who currently owns those files.
I suspect that it's a permissions issue, as index.php *does* exist in that spot. Should I perhaps chown or chmod (using Apache?)
You'll need to make sure that apache can read (and possibly write) depending on what your needs are, to those files. chown and chmod are your friends here, yes.
You'll need to make sure that apache can read (and possibly write) depending on what your needs are, to those files. chown and chmod are your friends here, yes.
In the NagiosQL documentation, it says to do the following:
# chown nagios.www /usr/local/nagios/var/rw/nagios.cmd # chmod 660 /usr/local/nagios/var/rw/nagios.cmd
I do a "locate nagios.cmd", and it turns up nothing. I wasn't sure if the /var/ part of the path meant that it had to do something with the fact that my html files are in /var/www/html.
On 7/2/07, Rogelio Bastardo scubacuda@gmail.com wrote:
# chown nagios.www /usr/local/nagios/var/rw/nagios.cmd
Replace www with apache, and the /usr/local/foo with path to nagios.cmd
# chmod 660 /usr/local/nagios/var/rw/nagios.cmd
I do a "locate nagios.cmd", and it turns up nothing. I wasn't sure if the /var/ part of the path meant that it had to do something with the fact that my html files are in /var/www/html.
This part depends on how you have nagios set up. The nagios.cmd file doesn't get created until nagios is actually running. It's the file which houses commands issued from the web front-end to nagios.
Given the last few emails it sounds like you're not overly familiar with linux. Adding nagios to that, and you're very truly jumping in at the deep end. If you survive this trial by fire you've chosen for yourself, you'll come out quite linux literate... or quite insane... Best of luck to you
:-P
Given the last few emails it sounds like you're not overly familiar with linux. Adding nagios to that, and you're very truly jumping in at the deep end. If you survive this trial by fire you've chosen for yourself, you'll come out quite linux literate... or quite insane... Best of luck to you
My problem here turned out to be something insanely stupid.
I cp'd the .tar file to /var/www/html and untarred it, and when I did, it made nagiosQL. All my permissions were ok, it's just that nagiosQL needed to be mv'd to nagiosql (b/c it was case sensitive).
All seems to be working ok (from a Nagios point of view). Now all I need to do is mod my .ini file in NagiosQL.
Thanks again for your help, Jim.
I do a "locate nagios.cmd", and it turns up nothing. I wasn't sure if the /var/ part of the path meant that it had to do something with the fact
that
my html files are in /var/www/html.
This part depends on how you have nagios set up. The nagios.cmd file doesn't get created until nagios is actually running. It's the file which houses commands issued from the web front-end to nagios.
I found it. For others with this problem:
[root@nagios-server nagios]# cat /etc/redhat-release CentOS release 4.5 (Final) [root@nagios-server nagios]# pwd /etc/nagios [root@nagios-server nagios]# grep nagios.cmd * -n nagios.cfg:183:command_file=/var/log/nagios/rw/nagios.cmd