Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pnp4nagios advice
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
brent_weaver
Guru
Guru


Joined: 01 Jul 2004
Posts: 510
Location: Burlington, VT

PostPosted: Mon Aug 03, 2009 6:04 pm    Post subject: pnp4nagios advice Reply with quote

Hello all. Has anyone sucessfully set up pnp4nagios? If so is there a guide on how to do so or any advice you could sahre. I am also open to suggestions on something that might be better/easier.

Let me know. Thanks!
_________________
Brent Weaver
Back to top
View user's profile Send private message
born2chill
n00b
n00b


Joined: 14 Aug 2006
Posts: 10

PostPosted: Tue Aug 11, 2009 2:50 pm    Post subject: Reply with quote

hi there,

sorry for the late reply, i've got a working nagios 3.0.6 and the ~x86 pnp4nagios plugin (because of the nice mouse-over graphs) installation. if you still got trouble getting yours to work, shoot.

br,
b2c
Back to top
View user's profile Send private message
brent_weaver
Guru
Guru


Joined: 01 Jul 2004
Posts: 510
Location: Burlington, VT

PostPosted: Sat Aug 15, 2009 1:18 am    Post subject: Reply with quote

Hey there... Thanks SOO much for the response. I have since gotten mine working but would love to have another user that I can use as a sounding board. I am an engineer at GE Healthcare and wow'ing people with nagios and pnp is exactly what managers want :)

I can be reached on yahoo IM as rootvgusr anytime you are interested in chatting.
_________________
Brent Weaver
Back to top
View user's profile Send private message
dertobi123
Retired Dev
Retired Dev


Joined: 19 Nov 2002
Posts: 2679
Location: Oberhausen, Germany

PostPosted: Mon Sep 28, 2009 10:52 pm    Post subject: Reply with quote

I'm using pnp4nagios as well (oh, what a surprise :P) - nice to hear from other people successfully running their monitoring based on nagios on Gentoo :)
_________________
Ganz frisch: Praxisbuch Nagios
Gentoo Linux - Die Metadistribution (2. Auflage)
Back to top
View user's profile Send private message
pavelliano
n00b
n00b


Joined: 24 Mar 2011
Posts: 2

PostPosted: Thu Mar 24, 2011 3:39 pm    Post subject: Reply with quote

anybody solved the ssi files for pnp4nagios? after emerging i can't find the ssi files for popups...
i'm goin nuts to use pnp4nagios with popups :)
_________________
In La'kech!
Back to top
View user's profile Send private message
mcimaster
n00b
n00b


Joined: 21 Sep 2004
Posts: 71

PostPosted: Tue Mar 29, 2011 8:12 pm    Post subject: Reply with quote

Hello, I can't get pnp4nagios working.

My system runs with:
- www-servers/apache-2.2.17
- net-analyzer/nagios-3.2.1
- net-analyzer/pnp4nagios-0.6.7

Nagios works fine. After installing pnp4nagios I have restarted apache and nagios. I've tried to login via http://192.168.1.10/pnp4nagios, but I only get 404 Not found Error.

Can anybody help me please? Do you need any other information?

Thanks in advance.
_________________
System: Acer TravelMate 4002LMi, Intel Pentium M 725 1,6GHz
60GB HDD, 512MB DDR, ATI Mobility Radeon 9700 64 MB
Back to top
View user's profile Send private message
Majed17
Apprentice
Apprentice


Joined: 31 Aug 2011
Posts: 261
Location: Minsk, Belarus

PostPosted: Tue Sep 13, 2011 1:38 pm    Post subject: Reply with quote

try
Code:
/etc/init.d/apache2 restart
i had an error when i restarted apache and now i'm investigation the error.
i got :
Code:
 Stopping apache2 ...
apache2: Syntax error on line 148 of /etc/apache2/httpd.conf: Syntax error on line 4 of /etc/apache2/modules.d/70_mod_php5.conf: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory                              [ ok ]
 * apache2 has detected a syntax error in your configuration files:
apache2: Syntax error on line 148 of /etc/apache2/httpd.conf: Syntax error on line 4 of /etc/apache2/modules.d/70_mod_php5.conf: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory
Back to top
View user's profile Send private message
dertobi123
Retired Dev
Retired Dev


Joined: 19 Nov 2002
Posts: 2679
Location: Oberhausen, Germany

PostPosted: Fri Sep 16, 2011 6:33 pm    Post subject: Reply with quote

Looks like your PHP5 installation is screwed up, try re-installing it.
_________________
Ganz frisch: Praxisbuch Nagios
Gentoo Linux - Die Metadistribution (2. Auflage)
Back to top
View user's profile Send private message
Majed17
Apprentice
Apprentice


Joined: 31 Aug 2011
Posts: 261
Location: Minsk, Belarus

PostPosted: Mon Sep 19, 2011 5:51 am    Post subject: Reply with quote

yes you are right i had sockets disabled in php so i added sockets to use in /etc/make.conf
and now it looks like this:
Code:
USE="3dnow 3dnowext aalib acpi apache2 apm calendar cgi dhcpcd dict ftp ftpd
     fuse gd gzip jpeg jpeg2k jpgraph nagios-dns nagios-game nagios-ntp
     nagios-ping nagios-ssh ntfs pdf php png postfix rar reiser4 reiserfs
     rrdcgi rrdtool sendmail snmp splash sse sse2 sse3 ssh svg winbind
     wireshark xml zip [color=darkred]sockets[/color] -X -alsa -bittorrent -doc -ipv6"

then i
Code:
emerge php
and now errors disappeared in the http:server/pnp4nagios as shown below:
Code:
PNP4Nagios Environment Tests

The following options are determined by "configure". If any of the tests have failed, consult the documentation for more information on how to correct the problem.
PNP4Nagios Version    pnp4nagios-0.6.13
Prefix    /usr/local/pnp4nagios
Configure Arguments    ./configure '--with-rrdtool=/usr/local/rrdtool/bin/rrdtool' '--with-httpd-conf=/usr/local/apache2/conf/extra' '--with-perl_lib_path=/usr/local/rrdtool/lib/perl/5.8.8/i386-linux-thread-multi' '--with-perfdata-dir=/var/nagios/perfdata'
RRD Storage    /var/nagios/perfdata is readable.
RRDtool Binary    /usr/local/rrdtool/bin/rrdtool is executable by PHP
PHP GD extension    Pass
PHP function proc_open()    Pass
PHP zlib extension    Pass
PHP session extension    Pass
PHP JSON extension    Pass
PHP magic_quotes_gpc    Off
PHP socket extension    Pass
Apache Rewrite Module    Pass
Kohana Environment Tests

The following tests have been run to determine if Kohana will work in your environment. If any of the tests have failed, consult the documentation for more information on how to correct the problem.
PHP Version    5.3.8-pl0-gentoo
System Directory    /usr/local/pnp4nagios/lib/kohana/system/
Application Directory    /usr/local/pnp4nagios/share/application/
Reflection Enabled    Pass
Iconv Extension Loaded    Pass
Mbstring Not Overloaded    Pass
URI Determination    Pass

Your environment passed all requirements. Remove or rename the /usr/local/pnp4nagios/share/install.php file now.

after renaming the install.php to install.ignore
i click on the graph of ping but instead of the graph i get the following error:
Code:
PNP4Nagios Version 0.6.13
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
   
Actions
Loaded in 0.0382 seconds, using 1.79MB of memory. Generated by Kohana v2.3.4.

is this still a problem with php or some configuration in apache? thanks for your help :)
Back to top
View user's profile Send private message
Majed17
Apprentice
Apprentice


Joined: 31 Aug 2011
Posts: 261
Location: Minsk, Belarus

PostPosted: Mon Sep 19, 2011 11:46 am    Post subject: Reply with quote

according to the configuration guide npcd should be started in the end. but when i try
Code:

/etc/init.d/npcd start

i get:
Code:

* Starting npcd ...
An Error occured while reading your config on line 0
Message was: "ERROR - Could not open config file - No such file or directory"
 * start-stop-daemon: failed to start `/usr/bin/npcd'
 * Failed to Start npcd                                                   [ !! ]
 * ERROR: npcd failed to start

i don't know were this configuration file should be.
i tried
Code:

emerge --search npcd

i got
Code:

Searching...    srvmonm libexec # emerge --search npcd
Searching...
[ Results for search key : npcd ]
[ Applications found : 0 ]

can anyone help with this?.

i thought it was essential for pnp4nagios but the problem turned out to be as i read on another forum that:
Code:
(USE="apache2" and -D PNP in /etc/conf.d/apache2)

so i added -D PNP to /etc/conf.d/apache2 and now it looks like this:
Code:
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -D PHP5 -D PERL -D NAGIOS -D PNP"

and after restarting apache i was amazed to see it work at last :)
but i wonder how did you solve the npcd problem on you configuration?
Back to top
View user's profile Send private message
Majed17
Apprentice
Apprentice


Joined: 31 Aug 2011
Posts: 261
Location: Minsk, Belarus

PostPosted: Tue Sep 20, 2011 8:41 am    Post subject: Reply with quote

i had forgotten that there are modes in pnp4nagios and since i was using sync mode and not bulk mode with npcd then i didn't need npcd.
for people who get the error http not found then check your host and service configuration, it should look like this:
Code:

define service{
        name                            generic-service    ; The 'name' of this service template
        active_checks_enabled           1             ; Active service checks are enabled
        max_check_attempts              5         ; Re-check the service up to 4 times in order to determine its final (hard) state
        normal_check_interval           5         ; Check the service every 5 minutes under normal conditions
        retry_check_interval            1         ; Re-check the service every minute until a hard state can be determined
        passive_checks_enabled          1                ; Passive service checks are enabled/accepted
        parallelize_check               1             ; Active service checks should be parallelized (disabling this can lead to major performance problems)
        obsess_over_service             1             ; We should obsess over this service (if necessary)
        check_freshness                 0             ; Default is to NOT check service 'freshness'
        notifications_enabled           1             ; Service notifications are enabled
        event_handler_enabled           1             ; Service event handler is enabled
        flap_detection_enabled          1             ; Flap detection is enabled
        failure_prediction_enabled      1             ; Failure prediction is enabled
        process_perf_data               1             ; Process performance data
        retain_status_information       1             ; Retain status information across program restarts
        retain_nonstatus_information    1             ; Retain non-status information across program restarts
        is_volatile                     0             ; The service is not volatile
        check_period                    24x7         ; The service can be checked at any time of the day
        max_check_attempts              5         ; Re-check the service up to 3 times in order to determine its final (hard) state
        normal_check_interval           10         ; Check the service every 10 minutes under normal conditions
        retry_check_interval            2         ; Re-check the service every two minutes until a hard state can be determined
        contact_groups                  admins         ; Notifications get sent out to everyone in the 'admins' group
   notification_options      w,c,r         ; Send notifications about warning, unknown, critical, and recovery events
   #action_url          /nagios/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDISPLAYNAME$
   #action_url          /nagios/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
   action_url            /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=$SERVICEDESC$
    #action_url             /pnp4nagios/graph?host=$HOSTNAME$&srv=$SERVICEDESC$
        notification_interval           1440         ; Re-notify about service problems every hour
        notification_period             workhours         ; Notifications can be sent out at any time
         register                        0             ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
        }

graphs say hhtp not found when action_url= /pnp4nagios/graph?host=$HOSTNAME$&srv=$SERVICEDESC$
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum