12.07.2011, 04:17 UTC+2

Sie sind nicht angemeldet.

pnp 0.6 not working on nagios 3.x

Majed

Anfänger

Beiträge: 17

Anzahl Nagios-Server: 3

Nagios-Version(en): 3.x

Verteiltes Monitoring: Nein

Redundantes Monitoring: Ja

Anzahl-Hosts: 30

Anzahl Services: 15

Betriebssystem(e): gentoo

Plugin-Version(en): don't know

NDO-Version: 3

21

04.07.2011, 10:45

install.php page

here's were i last reached. i added:
Alias /pnp4nagios "/usr/local/pnp4nagios/share"

Options ExecCGI
AllowOverride AuthConfig
Order allow,deny
Allow from all


instead of Alias /pnp /usr/share/pnp/


to the 99_nagios3.conf file and got the result shown in the first attached file: (magicquotes.png)
so i did as mentioned in the documentations and switched magic_quotes_gpc = Off (from on to off) and now i get the result as shown in the second attached file (socket.png) [PHP socket extension PHP socket extension not available]
after renaming intall.php to install.ignore
i get the following error when checking any host or service:

Fatal error: Call to undefined function simplexml_load_file() in /usr/local/pnp4nagios/share/application/models/data.php on line 270

so far googling this error is not providing any promising results so if you have any knowledge about this error please share and any help is appreciated.
»Majed« hat folgende Bilder angehängt:
  • magicquotes.png
  • socket.png

Bastian Kuhn

Fortgeschrittener

Beiträge: 367

Geschlecht: Männlich

Wohnort: München

Anzahl Nagios-Server: 8

Hobbys: Jiu Jitsu, Klettern, MTB, Reisen

Nagios-Version(en): OMD 0.48

Verteiltes Monitoring: Ja

Redundantes Monitoring: Ja

Anzahl-Hosts: >4.000

Anzahl Services: >80.000

Betriebssystem(e): Linux, AIX, Windows

Plugin-Version(en): OMD 0.48

22

04.07.2011, 10:55

Zitat von »Majed«

Fatal error: Call to undefined function simplexml_load_file() in /usr/local/pnp4nagios/share/application/models/data.php on line 270

so far googling this error is not providing any promising results so if you have any knowledge about this error please share and any help is appreciated.


http://lmgtfy.com/?q=Fatal+error%3A+Call…lexml_load_file()
bastian-kuhn.de Mein Blog (Rund um Monitoring und mit deutschen Anleitungen zu check_mk)

Majed

Anfänger

Beiträge: 17

Anzahl Nagios-Server: 3

Nagios-Version(en): 3.x

Verteiltes Monitoring: Nein

Redundantes Monitoring: Ja

Anzahl-Hosts: 30

Anzahl Services: 15

Betriebssystem(e): gentoo

Plugin-Version(en): don't know

NDO-Version: 3

23

05.07.2011, 09:54

hi, thanks for the help, i was trying to search google for the same thing except with a more specific phrase any way all the results say the same thing which is simplexml must be enable and it is not present in php4 but is enabled by default in php5. my php version is 5.2 and i checked to see about simplexml and it truns out that it was disabled so I installed php5.3 with arguments but i removed the --without simplexml and now the error of xml is gone but the situation is not resolved yet, now a new error appears, first in the test page of http://host/pnp4nagios still gives the same error of
PHP socket extension: PHP socket extension not available
after renaming install.php to install.ignore now the following error appears:


Please check the documentation for information about the following error.
Object of class stdClass could not be converted to string
file [line]:
application/views/template.php [100]:
back
error shown in attachment.
please note that i installed php 5.3 through first, tar -xvf file.tar.gz, then browsing to that directory and typing ./configure with lots of arguments that were present in the past installation some of the argument are:
--disable-sockets' '--without-sybase-ct' '--disable-sysvmsg' '--disable-sysvsem' '--disable-sysvshm' '--without-tidy' '--disable-tokenizer' '--disable-wddx' '--disable-xmlreader' '--disable-xmlwriter'
i am inclined to think that the --disable-sockets should not be present perhaps because the error has socket extensions unavailable is because of it.
after the configure i typed make then make install. did i do anything wrong or something, any help is appreciated if you think you know the answer.
»Majed« hat folgendes Bild angehängt:
  • error.png

Majed

Anfänger

Beiträge: 17

Anzahl Nagios-Server: 3

Nagios-Version(en): 3.x

Verteiltes Monitoring: Nein

Redundantes Monitoring: Ja

Anzahl-Hosts: 30

Anzahl Services: 15

Betriebssystem(e): gentoo

Plugin-Version(en): don't know

NDO-Version: 3

24

07.07.2011, 10:30

mod rewrite

i read in google that for pnp4nagios 0.6 to work it needs mode rewrite to be enabled in apache 2, is that true and if so how to do it on gentoo?

Ähnliche Themen