Facing issues and errors when i want to install nagiosgraph
Posted: Wed Nov 05, 2014 3:12 am
Hi Team,
I am facing the issue and errors when i want to install nagiosgraph on rhel linux 6.4.Please give your valuable suggestions to sort out this issue.
# cd /usr/local/nagios/libexec/
# ./insert.pl
Can't locate loadable object for module RRDs in @INC (@INC contains: /usr/local/nagios/etc/nagiosgraph/ /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/nagios/etc/nagiosgraph//ngshared.pm line 30
Compilation failed in require at /usr/local/nagios/etc/nagiosgraph//ngshared.pm line 30.
BEGIN failed--compilation aborted at /usr/local/nagios/etc/nagiosgraph//ngshared.pm line 30.
Compilation failed in require at ./insert.pl line 35.
BEGIN failed--compilation aborted at ./insert.pl line 35.
# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.0.2
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 11-25-2013
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Duplicate definition found for service 'PING' on host 'hshrc01' (config file '/usr/local/nagios/etc/objects/commands.cfg', starting on line 293)
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 339 services.
Checked 73 hosts.
Checked 5 host groups.
Checked 1 service groups.
Checked 7 contacts.
Checked 4 contact groups.
Checked 30 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 73 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
#Vi /usr/local/nagios/libexec/insert.pl
#!/usr/bin/perl
# $Id$
# License: OSI Artistic License
# http://www.opensource.org/licenses/artistic-license.php
# Author: (c) Soren Dossing, 2005
# Author: (c) Alan Brenner, Ithaka Harbors, 2008
# Author: (c) Matthew Wall, 2010
#
# NAME
# insert.pl - Store performance data returned by Nagios plugins using rrdtool.
#
# USAGE
# There are two standard processing configurations: batch and immediate.
#
# Batch Mode
# Nagios periodically invokes insert.pl. Data are extracted from the Nagios
# perflog file.
#
# Immediate Mode
# Nagios invokes insert.pl on each service check. Data are extracted from the
# command line.
#
# CONFIGURATION
# The nagiosgraph.conf file controls the behavior of this script.
#
# DIAGNOSTICS
# Use the debug_insert setting in nagiosgraph.conf to control the amount of
# logging information that will be emitted by this script. Output will go
# to the nagiosgraph log file.
# The configuration file and ngshared.pm must be in this directory:
use lib '/usr/local/nagios/etc/nagiosgraph/';
use ngshared;
use strict;
use warnings;
use constant MINPOLL => 30; ## no critic (ProhibitConstantPragma)
use vars qw($VERSION);
$VERSION = '2.0.2';
my $errmsg = readconfig('insert');
if ( $errmsg ne q() ) { croak $errmsg; }
debug( DBDEB, 'insert.pl processing started' );
$errmsg = checkrrddir('write');
if ( $errmsg ne q() ) { croak $errmsg; }
# Read the map file and define a subroutine that parses performance data
$errmsg = getrules( $Config{mapfile} );
if ( $errmsg ne q() ) { croak $errmsg; }
if ( $ARGV[0] ) {
processdata( $ARGV[0] );
}
elsif ( defined $Config{perfloop} && $Config{perfloop} > 0 ) {
my $poll = ( $Config{perfloop} < MINPOLL ) ? MINPOLL : $Config{perfloop};
debug( DBINF, 'insert.pl using poll interval of ' . $poll . ' seconds' );
while (1) {
my @perfdata = readperfdata( $Config{perflog} );
if (@perfdata) { processdata(@perfdata); }
debug( DBDEB, 'insert.pl waiting for input' );
sleep $poll;
}
}
else {
my @perfdata = readperfdata( $Config{perflog} );
if (@perfdata) { processdata(@perfdata); }
}
debug( DBDEB, 'insert.pl processing complete' );
I am facing the issue and errors when i want to install nagiosgraph on rhel linux 6.4.Please give your valuable suggestions to sort out this issue.
# cd /usr/local/nagios/libexec/
# ./insert.pl
Can't locate loadable object for module RRDs in @INC (@INC contains: /usr/local/nagios/etc/nagiosgraph/ /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/nagios/etc/nagiosgraph//ngshared.pm line 30
Compilation failed in require at /usr/local/nagios/etc/nagiosgraph//ngshared.pm line 30.
BEGIN failed--compilation aborted at /usr/local/nagios/etc/nagiosgraph//ngshared.pm line 30.
Compilation failed in require at ./insert.pl line 35.
BEGIN failed--compilation aborted at ./insert.pl line 35.
# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.0.2
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 11-25-2013
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Duplicate definition found for service 'PING' on host 'hshrc01' (config file '/usr/local/nagios/etc/objects/commands.cfg', starting on line 293)
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 339 services.
Checked 73 hosts.
Checked 5 host groups.
Checked 1 service groups.
Checked 7 contacts.
Checked 4 contact groups.
Checked 30 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 73 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
#Vi /usr/local/nagios/libexec/insert.pl
#!/usr/bin/perl
# $Id$
# License: OSI Artistic License
# http://www.opensource.org/licenses/artistic-license.php
# Author: (c) Soren Dossing, 2005
# Author: (c) Alan Brenner, Ithaka Harbors, 2008
# Author: (c) Matthew Wall, 2010
#
# NAME
# insert.pl - Store performance data returned by Nagios plugins using rrdtool.
#
# USAGE
# There are two standard processing configurations: batch and immediate.
#
# Batch Mode
# Nagios periodically invokes insert.pl. Data are extracted from the Nagios
# perflog file.
#
# Immediate Mode
# Nagios invokes insert.pl on each service check. Data are extracted from the
# command line.
#
# CONFIGURATION
# The nagiosgraph.conf file controls the behavior of this script.
#
# DIAGNOSTICS
# Use the debug_insert setting in nagiosgraph.conf to control the amount of
# logging information that will be emitted by this script. Output will go
# to the nagiosgraph log file.
# The configuration file and ngshared.pm must be in this directory:
use lib '/usr/local/nagios/etc/nagiosgraph/';
use ngshared;
use strict;
use warnings;
use constant MINPOLL => 30; ## no critic (ProhibitConstantPragma)
use vars qw($VERSION);
$VERSION = '2.0.2';
my $errmsg = readconfig('insert');
if ( $errmsg ne q() ) { croak $errmsg; }
debug( DBDEB, 'insert.pl processing started' );
$errmsg = checkrrddir('write');
if ( $errmsg ne q() ) { croak $errmsg; }
# Read the map file and define a subroutine that parses performance data
$errmsg = getrules( $Config{mapfile} );
if ( $errmsg ne q() ) { croak $errmsg; }
if ( $ARGV[0] ) {
processdata( $ARGV[0] );
}
elsif ( defined $Config{perfloop} && $Config{perfloop} > 0 ) {
my $poll = ( $Config{perfloop} < MINPOLL ) ? MINPOLL : $Config{perfloop};
debug( DBINF, 'insert.pl using poll interval of ' . $poll . ' seconds' );
while (1) {
my @perfdata = readperfdata( $Config{perflog} );
if (@perfdata) { processdata(@perfdata); }
debug( DBDEB, 'insert.pl waiting for input' );
sleep $poll;
}
}
else {
my @perfdata = readperfdata( $Config{perflog} );
if (@perfdata) { processdata(@perfdata); }
}
debug( DBDEB, 'insert.pl processing complete' );