Announcement

Collapse
No announcement yet.

[SOLVED] How to Configure Nagios for SNMP support

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

  • [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
    Ya , I am preparing my-self to fit as a expert Open Source / Network Monitor / Data-Storage Consultant
    my stupid notes , you can find at
    http://geocities.com/jjk_saji/

  • #2
    hello,

    you don't have installed snmp support for perl

    try this :
    #perl -MCPAN -e shell
    cpan> install Net::SNMP
    StatusMap Module - NDO Tools Module - ImportCSV Module - SNMP-UI Module - PDFReports Module
    Dons Paypal

    Comment


    • #3
      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
      Ya , I am preparing my-self to fit as a expert Open Source / Network Monitor / Data-Storage Consultant
      my stupid notes , you can find at
      http://geocities.com/jjk_saji/

      Comment


      • #4
        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
        StatusMap Module - NDO Tools Module - ImportCSV Module - SNMP-UI Module - PDFReports Module
        Dons Paypal

        Comment


        • #5
          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
          Ya , I am preparing my-self to fit as a expert Open Source / Network Monitor / Data-Storage Consultant
          my stupid notes , you can find at
          http://geocities.com/jjk_saji/

          Comment


          • #6
            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/
            RaphaŽl 'SurcouF' Bordet
            Je ne teste pas mes plugins en root, tu ne testes pas tes plugins en root...
            Dons Paypal

            Comment


            • #7
              Hi surcouf
              Thanks , that info was new to me ,
              Thanks a lot
              Joseph John
              Ya , I am preparing my-self to fit as a expert Open Source / Network Monitor / Data-Storage Consultant
              my stupid notes , you can find at
              http://geocities.com/jjk_saji/

              Comment

              Working...
              X