Unable To Install Nagios Plugins

Padmanabh Padaki padmanabh_padaki at gymboree.com
Thu Apr 14 02:13:50 CEST 2005


Thanks to everyone for providing the necessary information in the
installation of nagios.  I am done with installing nagios

Installed nagios and plugins
Installed apache
Integrated apache with nagios
Made changes to configuration files, hosts.cfg, hostgroups.cfg, contact.cfg,
contactgroups.cfg and services.cfg

I can monitor PING, disk usage on the nagios server.  I am on to the next
step. TO monitor disk usage(as an example) on a remote host.  

Installed nrpe on the remote host.
Made changes to inetd.conf and services file.
Copied nrpe and nrpe.cfg to a different dir
Started inetd

On the Nagios server, copied the check_nrpe to the ../libexec directory

Added this new host to hosts.cfg and services.file to monitor the disk
usage.

Added the following lines to ../libexeccommands.cfg

define command{
        command_name    check_nrpe
        command_line    /usr/local/nagios/libexec/check_nrpe -H
$HOSTADDRESS$ -c
 $ARG1$
        }

When I login to the website and check for services.

I get an error message that the file system is not mounted or non-existent.

I have read the manual but somehow not able to find the answer

What am I missing?

Thanks

- padaki


-----Original Message-----
From: Subhendu Ghosh [mailto:sghosh at sghosh.org] 
Sent: Tuesday, April 12, 2005 2:41 PM
To: Padmanabh Padaki
Cc: nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Unable To Install Nagios Plugins

On Tue, 12 Apr 2005, Padmanabh Padaki wrote:

> I was able to compile the plugins by using the source code without
> downloading the module from CPAN. If I look at CPAN module list, I find
that
> for Net::SNMP, the module is listed as
>  Net::SNMP                        v5.0.1  D/DT/DTOWN/Net::SNMP
> v5.0.1  D/DT/DTOWN/Net-SNMP-5.0.1.tar.gz.tar.gz.  
> 
> I already have  Net-SNMP-5.x.x installed on my system.  Is this different
> from what I see on CPAN?  Do I still need to install this perl module from
> CPAN?

These are two different projects and code set.

Net-SNMP from Sourceforge is a set of C based agent and manager apps.  
It's original name was UCD-SNMP but the name was changed as the authors 
are no longer affiliated with UCDavis.  This set of code also has a perl 
interface to the core functions that is present in the perl modules called 
"SNMP" and it is distributed with the C apps.

Net::SNMP by David Town is an all Perl implementation of the manager 
functionality of SNMP and is distributed thru CPAN only.


Unfortunately the NagiosPlugins project use both the packages.
check_snmp is dependent on the C apps and check_if*status/check_ups /etc 
are dependent on the perl module.

It has been easier for use to develop functionality in perl and based on 
usage start converting to C code for speed.


> 
> A related question - 
> 
> After compiling the plugins without downloading the module from CPAN,  the
> nagios daemon is not starting. 
> 
> Running in verbose mode, Nagios does not detect any problem with the
> configuration files.  However,when I want to start the daemon, I get the
> following errors.
> 
>  [root at nagios modules]# service nagios start
> Starting network monitor: nagios
> No lock file found in /var/run/nagios.pid
> 
> If I touch this file, then the error is 
> 
> [root at nagios local]# service nagios start
> Starting network monitor: nagios
> NAGIOS CRITICAL - could not find status log: /var/log/nagios/status.log
> 
> If I touch the above file, then the error is 
> 
> [root at nagios run]# service nagios start
> Starting network monitor: nagios
> NAGIOS CRITICAL - could not find proc file: /proc/1836672814
> 
> - padaki

normally Nagios will create its own nagios.pid and status.log files - you 
should not have to touch them.  This seems to point to some permisssion 
issues.

If you installed from RPM - make sure that the rpm created the appropriate 
user/group entries and changed ownership of the direcotries.


Also with Fedora 3 - if you are using SELinux - you may have to add some 
entries to configure SELinux...


--

-sg





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list