catci not working with Http and Nagios.

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
novinjaiswal
Posts: 8
Joined: Fri Oct 31, 2008 1:37 pm

catci not working with Http and Nagios.

Post by novinjaiswal »

Hi I am new to cacti.

I have installed it on my red hat linux4 which stage5 which already has Nagios up and running..

I have already setup
1) apache
2) php
3) my sql
4)net-snmp

I have installed cacti as per installation instruction and restarted my http server. when I hit http://stage5/cacti. It is showing blank page.

My goal is to integrate cacti with nagios and create performance graphs using it.

Pls let me know wht is wrong.

net-snmp server is up and running and monitoring the ips which are monitored by my nagios server on stage5(the lunux box).

Is it manadatory to install rrdtools to make cacti work with nagios. I didn't installed RRDtools.

your help is aprreciated.
Thanks
Novin
novinjaiswal
Posts: 8
Joined: Fri Oct 31, 2008 1:37 pm

Post by novinjaiswal »

Hi Friends,

When I try to start my apache it is failing with following error.

[root@stage5 nagios]# /etc/rc.d/init.d/httpd start
Starting httpd: Syntax error on line 6 of /etc/httpd/conf.d/php.conf:
Cannot load /etc/httpd/modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: cannot open shared object file: No such file or directory



when i try to find this file
find / -name libphp4.so

no such file is found. looks like there some thing wrong or missing from php installation.

when I run following cmd

[root@stage5 /]# /usr/local/php/bin/php -version
PHP 5.2.6 (cli) (built: Jun 5 2008 17:07:46)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies


Pls help me.

thanks
Novin
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This seems to be a misconfigured httpd when it comes to php.
WHich version of php do you use? Did you already search apache FAQs?
Reinhard
novinjaiswal
Posts: 8
Joined: Fri Oct 31, 2008 1:37 pm

Post by novinjaiswal »

Hi I have solved the problem.

PHP was not properly installed on my rhel3 box.

Just tell me one thing will it make any difference if I installed rhel4 packages on rhel3?


I was getting following warning message while installing rhel4 packages

warning: only V3 signatures can be verified, skipping V4 signature


I have installed following packages
====================================
php-5.2.6-1.el4.remi.i386.rpm
php-cli-5.2.6-1.el4.remi.i386.rpm
php-common-5.2.6-1.el4.remi.i386.rpm
php-devel-5.2.6-1.el4.remi.i386.rpm
php-gd-5.2.6-1.el4.remi.i386.rpm
php-imap-5.2.6-1.el4.remi.i386.rpm
php-mysql-5.2.6-1.el4.remi.i386.rpm
php-pdo-5.2.6-1.el4.remi.i386.rpm

sqlite2-2.8.17-2.el4.remi.i386.rpm

Thanks for your help.

Novin
novinjaiswal
Posts: 8
Joined: Fri Oct 31, 2008 1:37 pm

Post by novinjaiswal »

Hi but still

when I hit http://stage5/cacti. It is showing blank page.

cacti is not working with apache.

Is there any thing special I have to do for cacti to work with apache.

I remember for nagios integration with apache there is nagios.conf file under/etc/httpd/conf.d folder.

I have followed standard cacti installation steps but when I hit
following url not working

http://stage5/cacti
http://IP-address/cacti
http://stage5.ishisystems.com/cacti

Pls let me know wht is wrong.

my snmp is working

[root@stage5 alchemist]# snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex
IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1
IP-MIB::ipAdEntIfIndex.172.16.12.25 = INTEGER: 2
[root@stage5 alchemist]#

Only one thing is peding to install is php-snmp

Let me know wht is wrong with my configuration.

Your help is appreciated.

Thanks
Novin
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please view your httpd's error_log to find more help
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests