SNMP showing Unknown

Dorfman, Justin justin at mahalo.com
Mon Sep 13 16:56:39 CEST 2010


C:\net-snmp\etc\snmp\snmpd.conf has to contain something like this :
*Code:*rocommunity public
Here is an example of ours:

*syslocation  LAX*
>
>
>> disk  /var 5%
>
> disk  /usr 5%
>
> disk  /tmp 5%
>
>
>> load  30 30 30
>
>
>> *syscontact email at domain.com*
>
> *rwcommunity sdjslf8sdf8 192.168.0.0/24*
>
> *rocommunity public *
>
>
>
*You then need to restart NET-SNMP *for the changes to apply.

Good little tutorial: http://forums.cacti.net/about26151.html

Regards,

Justin Dorfman
Mahalo.com Inc. > Jr. Systems Engineer
818.485.1458
@jdorfman <http://www.twitter.com/jdorfman> |
@MahaloSysops<http://twitter.com/MahaloSysops>| Blog:
http://bit.ly/aNiWSk


On Mon, Sep 13, 2010 at 2:54 AM, IT Toonz <it.toonz at gmail.com> wrote:

>  Hi Justin,
>
>
>
> Thanks for the reply.
>
>
>
> We downloaded net-snmp.exe and installed in a monitored window server.
>
>
>
> Didn’t modify anything, tried to start net-snmp service from the windows
> system, stopped at event id 7031! Checking again
>
>
>
> Downloaded and installed the perl scripts... is there anything to modify...
>
>
>
> Please advice.
>
>
>
> Regards
>
> Ananth.
>
>
>
>
>
>
>
>
>
> *From:* Dorfman, Justin [mailto:justin at mahalo.com]
> *Sent:* 10 September 2010 20:06
>
> *To:* Nagios Users List
> *Subject:* Re: [Nagios-users] SNMP showing Unknown
>
>
>
> Ananth,
>
>
>
> This is how we check an SNMP process (in commands.cfg):
>
>
>
> # 'check_snmp' command definition
>
>  define command{
>
>          command_name    check_snmp_process
>
>          command_line    $USER1$/check_snmp_process.pl -H $HOSTADDRESS$ -C
> $USER3$
>
>          }
>
>
>
> I would recommend you downloading these perl scripts:
> http://nagios.manubulon.com/index_snmp.html and putting them into your *
> /usr/local/nagios/libexec* folder.
>
>
>
> Let me know how it goes.
>
>
>
> Regards,
>
> Justin Dorfman
> Mahalo.com Inc. > Jr. Systems Engineer
> 818.485.1458
> @jdorfman <http://www.twitter.com/jdorfman> | @MahaloSysops<http://twitter.com/MahaloSysops>| Blog:
> http://bit.ly/aNiWSk
>
>  On Thu, Sep 9, 2010 at 2:36 AM, IT Toonz <it.toonz at gmail.com> wrote:
>
> Hi Justin,
>
>
>
> We have the native SNMP in Windows installed and we wanted to monitor those
> readings. We downloaded and installed Net-SNMP, but seems there a bit of
> configuring to do, we are fiddling with Nagios settings, so not sure whether
> we want to spend time learning Net-SNMP at present.
>
>
>
> But its definitely something which we want to look at in the future. Thanks
> for sharing the info.
>
>
>
> Meanwhile we are still stuck in SNMP!!
>
>
>
> This is what we get when we run
>
> [root at Nagios nagios]# snmpwalk -v1 -c taipl 192.168.3.100 snmp
>
> SNMPv2-MIB::snmpInPkts.0 = Counter32: 1
>
> SNMPv2-MIB::snmpOutPkts.0 = Counter32: 11
>
> SNMPv2-MIB::snmpInBadVersions.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInBadCommunityNames.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInBadCommunityUses.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInASNParseErrs.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInTooBigs.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInNoSuchNames.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInBadValues.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInReadOnlys.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInGenErrs.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInTotalReqVars.0 = Counter32: 11
>
> SNMPv2-MIB::snmpInTotalSetVars.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInGetRequests.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInGetNexts.0 = Counter32: 14
>
> SNMPv2-MIB::snmpInSetRequests.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInGetResponses.0 = Counter32: 0
>
> SNMPv2-MIB::snmpInTraps.0 = Counter32: 0
>
> SNMPv2-MIB::snmpOutTooBigs.0 = Counter32: 0
>
> SNMPv2-MIB::snmpOutNoSuchNames.0 = Counter32: 0
>
> SNMPv2-MIB::snmpOutBadValues.0 = Counter32: 0
>
> SNMPv2-MIB::snmpOutGenErrs.0 = Counter32: 0
>
> SNMPv2-MIB::snmpOutGetRequests.0 = Counter32: 0
>
> SNMPv2-MIB::snmpOutGetNexts.0 = Counter32: 0
>
> SNMPv2-MIB::snmpOutSetRequests.0 = Counter32: 0
>
> SNMPv2-MIB::snmpOutGetResponses.0 = Counter32: 25
>
> SNMPv2-MIB::snmpOutTraps.0 = Counter32: 10
>
> SNMPv2-MIB::snmpEnableAuthenTraps.0 = INTEGER: enabled(1)
>
>
>
>
>
> So seems client side is fine. Please advice... below is the error we get by
> mail
>
>
>
> ***** Nagios *****
>
>
>
> Notification Type: PROBLEM
>
>
>
> Service: SNMP
>
> Host: antivirsrv
>
> Address: 192.168.3.100
>
> State: UNKNOWN
>
>
>
> Date/Time: Thu Sept 9 14:42:56 IST 2010
>
>
>
> Additional Info:
>
>
>
> No OIDs specified
>
>
>
> below is the config settings for windows servers
>
>
>
> # Create a service for monitoring SNMP
>
>
>
> define service{
>
>         use                     generic-service
>
>         host_name               taipl-domsrv
>
>         host_name               tai3dserver
>
>         host_name               tai3dstorage-02
>
>         host_name               tai3d-avsrv
>
>         service_description     SNMP
>
>         check_command
> check_snmp!.1.3.6.1.2.1.25.2.3.1.6.2!1!Cachebuffers!50000!2000
>
>         }
>
>
>
> Please advice....what else is there to configure, please be specific, we
> just started in Fully Automated Nagios, with a lot of help we have reached
> this far.... J
>
>
>
> Regards
>
> Ananth.
>
>
>
> *From:* Dorfman, Justin [mailto:justin at mahalo.com]
> *Sent:* 08 September 2010 22:59
>
>
> *To:* Nagios Users List
> *Subject:* Re: [Nagios-users] SNMP showing Unknown
>
>
>
> First off do you have NET-SNMP (
> http://sourceforge.net/projects/net-snmp/files/net-snmp%20binaries/5.5-binaries/)
> installed on the server you are trying to fetch info from?
>
>
>
>
> Regards,
>
> Justin Dorfman
> Mahalo.com Inc. > Jr. Systems Engineer
> 818.485.1458
> @jdorfman <http://www.twitter.com/jdorfman> | @MahaloSysops<http://twitter.com/MahaloSysops>| Blog:
> http://bit.ly/aNiWSk
>
> On Wed, Sep 8, 2010 at 4:54 AM, IT Toonz <it.toonz at gmail.com> wrote:
>
> *You need to look at the service definition as well as the command*
>
> *definition to find out how the command is configured to run for this*
>
> *particular service check.*
>
>
>
> Which file that will be? The command.cfg file entry was the one we had put
> in the earlier mail.
>
>
>
> We are newbies's so if possible kindly explain in detail.
>
>
>
> Regards
>
> Ananth.
>
>
>
>
>
>
>
> -----Original Message-----
> From: Jim Avery [mailto:jim at jimavery.me.uk]
> Sent: 08 September 2010 16:13
> To: Nagios Users List
> Subject: Re: [Nagios-users] SNMP showing Unknown
>
>
>
> On 8 September 2010 10:19, IT Toonz <it.toonz at gmail.com> wrote:
>
> > We are using FAN 2.0
>
> >
>
> >
>
> >
>
> > One of our Windows Servers shows in Nagios.
>
> >
>
> >
>
> >
>
> > tai3dstorage-02 SNMP UNKNOWN 09-08-2010 15:09:50 1d 21h 46m 25s 3/3 No
> OIDs
>
> > specified
>
> >
>
> >
>
> >
>
> > How can we troubleshoot it. This is the snmp entry in commands.cfg file.
>
> >
>
> >
>
> >
>
> > # 'check_snmp' command definition
>
> >
>
> > define command{
>
> >
>
> >         command_name    check_snmp
>
> >
>
> >         command_line    $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
>
> >
>
> >         }
>
> >
>
> >
>
> >
>
> > We entered the snmp community name give the switch –C after check_snmp,
> but
>
> > still no effect.
>
>
>
> You need to look at the service definition as well as the command
>
> definition to find out how the command is configured to run for this
>
> particular service check.
>
>
>
> hth,
>
>
>
> Jim
>
>
>
>
> ------------------------------------------------------------------------------
>
> This SF.net Dev2Dev email is sponsored by:
>
>
>
> Show off your parallel programming skills.
>
> Enter the Intel(R) Threading Challenge 2010.
>
> http://p.sf.net/sfu/intel-thread-sfd
>
> _______________________________________________
>
> 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
>
>
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> 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
>
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.net Dev2Dev email is sponsored by:
>
> Show off your parallel programming skills.
> Enter the Intel(R) Threading Challenge 2010.
> http://p.sf.net/sfu/intel-thread-sfd
> _______________________________________________
> 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
>
>
>
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing
> http://p.sf.net/sfu/novell-sfdev2dev
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100913/d5df6756/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
-------------- next part --------------
_______________________________________________
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