mrinmoy roy | 1 Dec 07:21 2011
Picon

urgent help

I installed opennms in windows and want to monitoring the process which is
running in ubuntu as an snmp...when I run snmp in ubuntu in a vmware , I
can see the ip of the vmware of ubuntu in opennms but we cannot monitor it
in opennms...

How can I monitor in OPENNMS through the mib file which I created in snmp...

please help me out..

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Chi.Guan | 1 Dec 19:07 2011

RE: can not compile snmp_agent_api

Hi, Dave
I compiled the example.
But when I run it, it give me error
ldd:FATAL: Could not load library libnetsnmpagent.so.20

But libnetsnmpagent.so.20 is located in /usr/local/lib

What went wrong?
Thanks
Chi Guan

-----Original Message-----
From: dave.shield <at> googlemail.com [mailto:dave.shield <at> googlemail.com] On
Behalf Of Dave Shield
Sent: Tuesday, November 29, 2011 12:28 PM
To: Guan, Chi  <at>  MWG - Datron
Cc: net-snmp-users <at> lists.sourceforge.net
Subject: Re: can not compile snmp_agent_api

On 29 November 2011 18:30,  <Chi.Guan <at> l-3com.com> wrote:
> I tried to compile the example of
> http://www.net-snmp.org/docs/man/snmp_agent_api.html
> With gcc snmp_agent_api.c `net-snmp-config --agent-libs` But I got 
> error: net-snmp/net-snmp-config.h: No such file or directory

How did you install the software?
What O/S are you working with?

Dave

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Chi.Guan | 1 Dec 23:51 2011

How subagents call each other?

Hi,
I want to know how multiple subagents communicate each other?
How do I get the a MIB value from one subagent from other subagent?
Thanks
Chi  

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Dave Shield | 2 Dec 00:07 2011
Picon

Re: can not compile snmp_agent_api

On 1 December 2011 18:07,  <Chi.Guan <at> l-3com.com> wrote:
> I compiled the example.
> But when I run it, it give me error
> ldd:FATAL: Could not load library libnetsnmpagent.so.20
>
> But libnetsnmpagent.so.20 is located in /usr/local/lib

I don't have any experience with QNX myself,
but on Linux systems, the dynamic linker sometimes
needs to be told to look for libraries under /usr/local/lib

If there is a directory /etc/ld.conf.d  (or similar),
try creating a file there called   "net-snmp.conf"
containing the line
     /usr/local/lib

and run the command "ldconfig".
See if that helps.

Dave

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

SLP | 2 Dec 07:55 2011
Picon

AgentX subagent connected but is not worked

Hello!
I load the snmpd 5.7.1 and my subagent daemon at the system startup. First - snmpd, second my subagent
daemon. I view this message: "NET-SNMP version 5.7.1 AgentX subagent connected" in console. But I can not
get my oids values -
After that I  login in system and restart the subagent. I view this message: "NET-SNMP version 5.7.1 AgentX
subagent connected" in console again. And it's working.
This is my snmpd.conf:

rocommunity read
rwcommunity write

master agentx
agentXPerms     0666 0666 nobody nobody

What could be wrong?

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Picon

problem with hrStorage

Hello,

 

using Nagios SNMP checks to monitor our Server HDD usage.

 

With “snmpwalk  -v 2c -c public  localhost  hrStorage” I get back all the needed information.

… other stuff …

HOST-RESOURCES-MIB::hrStorageIndex.31 = INTEGER: 31

HOST-RESOURCES-MIB::hrStorageType.31 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk

HOST-RESOURCES-MIB::hrStorageDescr.31 = STRING: /

HOST-RESOURCES-MIB::hrStorageAllocationUnits.31 = INTEGER: 4096 Bytes

HOST-RESOURCES-MIB::hrStorageSize.31 = INTEGER: 3992804

HOST-RESOURCES-MIB::hrStorageUsed.31 = INTEGER: 724903

… other stuff …

 

With the same command on another Server. (but same OS à Centos 5) the root partition is missing in the output …

I only get those information back:

HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory

HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory

HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers

HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Cached memory

HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space

 

Already googled – but no luck so far! L

Maybe here someone knows what’s going wrong with this? J

 

Thank you, bye from Austria

Andreas

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
Dave Shield | 2 Dec 14:26 2011
Picon

Re: problem with hrStorage

On 2 December 2011 13:21, Andreas Schnederle-Wagner - Futureweb.at
<schnederle <at> futureweb.at> wrote:
> using Nagios SNMP checks to monitor our Server HDD usage.
>
> With “snmpwalk  -v 2c -c public  localhost  hrStorage” I get back all the
> needed information.
>
> … other stuff …
> HOST-RESOURCES-MIB::hrStorageDescr.31 = STRING: /
> HOST-RESOURCES-MIB::hrStorageAllocationUnits.31 = INTEGER: 4096 Bytes
> HOST-RESOURCES-MIB::hrStorageSize.31 = INTEGER: 3992804
> HOST-RESOURCES-MIB::hrStorageUsed.31 = INTEGER: 724903
>
> … other stuff …
>

> With the same command on another Server. (but same OS à Centos 5) the root
> partition is missing in the output …

Is the agent one you compiled yourself, or a vendor-supplied one?
Is it the same version of the agent on both systems>

Try retrieving the value UCD-SNMP-MIB::versionConfigureOptions.0
from both systems.   Do these values look the same?

Dave

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Picon

AW: problem with hrStorage

>On 2 December 2011 13:21, Andreas Schnederle-Wagner - Futureweb.at <schnederle <at> futureweb.at> wrote:
>> using Nagios SNMP checks to monitor our Server HDD usage.
>>
>> With "snmpwalk  -v 2c -c public  localhost  hrStorage" I get back all 
>> the needed information.
>>
>> . other stuff .
>> HOST-RESOURCES-MIB::hrStorageDescr.31 = STRING: /
>> HOST-RESOURCES-MIB::hrStorageAllocationUnits.31 = INTEGER: 4096 Bytes
>> HOST-RESOURCES-MIB::hrStorageSize.31 = INTEGER: 3992804
>> HOST-RESOURCES-MIB::hrStorageUsed.31 = INTEGER: 724903
>>
>> . other stuff .
>>
>
>
>> With the same command on another Server. (but same OS à Centos 5) the 
>> root partition is missing in the output .
>
>
>Is the agent one you compiled yourself, or a vendor-supplied one?
>Is it the same version of the agent on both systems>
>
>Try retrieving the value UCD-SNMP-MIB::versionConfigureOptions.0
>from both systems.   Do these values look the same?
>
>
>Dave

Hi Dave,

the agent is vendor-supplied. Same Versions on both systems:
	-bash-3.2# rpm -qa | grep snmp
	net-snmp-devel-5.3.2.2-14.el5_7.1
	net-snmp-5.3.2.2-14.el5_7.1
	net-snmp-libs-5.3.2.2-14.el5_7.1
	net-snmp-utils-5.3.2.2-14.el5_7.1

Also the config options look the same:
-bash-3.2# snmpwalk  -v 2c -c public  localhost  UCD-SNMP-MIB::versionConfigureOptions.0
UCD-SNMP-MIB::versionConfigureOptions.0 = STRING: '--build=x86_64-redhat-linux-gnu'
'--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix='
'--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin'
'--datadir=/usr/share' '--includedir=/usr/include/net-snmp' '--libdir=/usr/lib64'
'--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com'
'--mandir=/usr/share/man' '--infodir=/usr/share/info' '--enable-static' '--enable-shared'
'--with-cflags=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -g -lcrypto' '--with-ldflags=-L/usr/lib64'
'--with-sys-location=Unknown' '--with-logfile=/var/log/snmpd.log'
'--with-persistent-directory=/var/net-snmp' '--with-mib-modules=host agentx smux         
ucd-snmp/diskio tcp-mib udp-mib mibII/mta_sendmail          ip-mib/ipv4InterfaceTable
ip-mib/ipv6InterfaceTable          ip-mib/ipAddressPrefixTable/ipAddressPrefixTable          ip-mib/ipDefaultRouterTable/ipDefaultRo

Andreas

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Dave Shield | 2 Dec 14:51 2011
Picon

Re: problem with hrStorage

On 2 December 2011 13:36, Andreas Schnederle-Wagner - Futureweb.at
<schnederle <at> futureweb.at> wrote:
> the agent is vendor-supplied. Same Versions on both systems:

> Also the config options look the same:

Hmmm....

OK - so the difference must be something to do with the two systems themselves.

What does the command "df" show on each system?
What are the contents of /etc/fstab on each system?
What are the permissions on this file?

Dave

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Picon

AW: problem with hrStorage

>On 2 December 2011 13:36, Andreas Schnederle-Wagner - Futureweb.at <schnederle <at> futureweb.at> wrote:
>> the agent is vendor-supplied. Same Versions on both systems:
>
>> Also the config options look the same:
>
>Hmmm....
>
>OK - so the difference must be something to do with the two systems themselves.
>
>What does the command "df" show on each system?
>What are the contents of /etc/fstab on each system?
>What are the permissions on this file?
>
>Dave

Output of server 1 (working)
	[root <at> mailreinjection ~]# df
	Filesystem           1K-blocks      Used Available Use% Mounted on
	/dev/vzfs              1048576    283028    765548  27% /
	none                    524288         4    524284   1% /dev
	[root <at> mailreinjection ~]# cat /etc/fstab 
	none    /dev/pts        devpts  rw      0       0
	[root <at> mailreinjection ~]# ll /etc/fstab 
	-rw-r--r-- 1 root root 28 Aug 18  2008 /etc/fstab

Server 2 (not working)
	-bash-3.2# df
	Filesystem           1K-blocks      Used Available Use% Mounted on
	/dev/vzfs             73400320  37336160  36064160  51% /
	none                    524288         4    524284   1% /dev
	-bash-3.2# cat /etc/fstab
	none    /dev/pts        devpts  rw      0       0
	-bash-3.2#  ll /etc/fstab 
	-rw-r--r-- 1 root root 28 Sep 29  2008 /etc/fstab

Andreas

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users <at> lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Gmane