Announcement

Collapse
No announcement yet.

[SOLVED] How to Configure Nagios for SNMP support

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • bisana
    replied
    Hi surcouf
    Thanks , that info was new to me ,
    Thanks a lot
    Joseph John

    Leave a comment:


  • surcouf
    replied
    Originally posted by bisana
    Hi wistof
    thanks for the mail
    I have Net::SNMP isntalled
    the following query shows it


    1> [[email protected] libexec]# rpm -qa | grep snmp
    net-snmp-perl-5.1.2-11
    net-snmp-5.1.2-11
    net-snmp-devel-5.1.2-11
    net-snmp-utils-5.1.2-11
    net-snmp-libs-5.1.2-11
    [[email protected] libexec]#


    2> [[email protected] libexec]# find / -name "SNMP.pm" -print
    /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/SNMP.pm

    I thing , this results shows that Net::SNMP is installed, more over , by usning snmpwalk I can get results
    No. You've installed Net-SNMP perl module, not Net::SNMP perl module.
    This isn't the same module. For the RPM way, you can find this module at:
    http://dag.wieers.com/packages/perl-Net-SNMP/

    Leave a comment:


  • bisana
    replied
    Thanks , It worked , perl -MCPAN -e shell

    Hi
    Thanks a lot ,
    your adivice on
    #perl -MCPAN -e shell
    cpan> install Net::SNMP
    Saved me , from further problems
    Thanks
    Joseph John

    Leave a comment:


  • wistof
    replied
    try with CPAN...

    the perl script search in
    /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/Net/SNMP.pm
    and your is in
    /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/SNMP.pm

    Leave a comment:


  • bisana
    replied
    Hi wistof
    thanks for the mail
    I have Net::SNMP isntalled
    the following query shows it


    1> [[email protected] libexec]# rpm -qa | grep snmp
    net-snmp-perl-5.1.2-11
    net-snmp-5.1.2-11
    net-snmp-devel-5.1.2-11
    net-snmp-utils-5.1.2-11
    net-snmp-libs-5.1.2-11
    [[email protected] libexec]#


    2> [[email protected] libexec]# find / -name "SNMP.pm" -print
    /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/SNMP.pm

    I thing , this results shows that Net::SNMP is installed, more over , by usning snmpwalk I can get results
    Thanks for the help
    Joseph John

    Leave a comment:


  • wistof
    replied
    hello,

    you don't have installed snmp support for perl

    try this :
    #perl -MCPAN -e shell
    cpan> install Net::SNMP

    Leave a comment:


  • bisana
    started a topic [SOLVED] How to Configure Nagios for SNMP support

    [SOLVED] How to Configure Nagios for SNMP support

    Hi Team
    RHEL4 , Nagios 1.2 , Oreon
    Before posting this mail , I admit I am a person who remember very little and I am trying to over come it
    Now the post
    “ I had done installation of Nagios for SNMP monitoring , few months back for testing purpose , and I do not remember now what I had done , whether I did give any parameter to the ./configure file for snmp , I had read the nagios documentation for installation , there it is no reference for how to install nagios for SNMP monitoring
    This time , I had done my nagios installation , just by giving “./configure “ without any parameters and I finding problem when I run snmp plugins
    I get error
    ./check_snmp_int.pl
    Can't locate Net/SNMP.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at ./check_snmp_int.pl line 16.
    BEGIN failed--compilation aborted at ./check_snmp_int.pl line 16.

    Please guide me to configure nagios for snmp
    Thanks
    Joseph John
Working...
X