[asterisk-users] Asterisk and SNMP. No resource graphs in OpenNMS.

2012-08-07 Thread Chet W. Stevens
I apologize as I am quite new to working with SNMP. I have compiled the SNMP 
module for Asterisk, configured snmpd, and successfully added the nodes to 
OpenNMS for a couple of my systems running on Ubuntu Server 10.04 LTS. I am 
able to see the site
information and the resource graphs such as DAHDI, SIP, etc.

The problem I am having is that I follow the same exact process on Ubuntu 
Server 12.04 LTS and I see the site information in OpenNMS but I see nothing 
for the resource graphs. I have been trying to solve this for days now but I 
just can't seem to find
the problem. I am able to perform an snmpwalk on .1.3.6.1.4.1.22736.1 from the 
OpenNMS server and OpenNMS is seeing the source as Asterisk. I have checked 
that I have defined the agentXPerms for the right group, that I have defined 
the sysObjectID for
the Asterisk OID, etc.

I am running asterisk-1.8.11-cert5 following the instructions straight from the 
O'Reilly Asterisk: The Definitive Guide on Ubuntu Server 12.04 LTS. The same 
steps on Ubuntu Server 10.04 LTS are successful.

Any help, suggestions, directions, examples, etc would be greatly appreciated. 
Thank you.

Chet


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] ASTERISK and SNMP

2009-11-30 Thread mickael ropars
Hi michal,

see below my ifconfig result :

eth0  Link encap:Ethernet  HWaddr 00:09:6B:A3:74:4B
  inet addr:192.168.2.13  Bcast:192.168.2.255  Mask:255.255.255.0
  inet6 addr: fe80::209:6bff:fea3:744b/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:594773 errors:0 dropped:0 overruns:0 frame:0
  TX packets:535227 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:67559645 (64.4 MiB)  TX bytes:217992551 (207.8 MiB)
  Interrupt:185

loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:1187110 errors:0 dropped:0 overruns:0 frame:0
  TX packets:1187110 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:191364585 (182.4 MiB)  TX bytes:191364585 (182.4 MiB)

James,

thanks a lot for your advice, I will have a look to the net SNMP daemon wich
is map to a AMI command

regards

Mickael





2009/11/28 Mr. James W. Laferriere bab...@baby-dragons.com

Hello Mickael ,

 On Fri, 27 Nov 2009, mickael ropars wrote:
  Michal,
 
  in the IF-MIB you only have 4 interfaces lo,eth0,eth1,sit0
 
  l0  which is the loopback interface
  eth0, eth1 : ethernet interface
  sit0 : use for PTP tunneling (use for IPv6)
 
  so no information on the digium interface.
 
  my IF MIB has also those interfaces
 
  I found one the solution to get status of the cards, and all snmp data.
 the
  solution is argus :
  http://argus.tcp4me.com/
 
  with this tools you can have a complete view of your system.
  regards
  Mickael

 While Argus is quite good at monitoring systems and is rather easy
 to
 manage .  In the case of Asterisk monitoring it uses the Asterisk
 Management
 Interface (ie: AMI)  not snmp .

I was( and still am) hoping that the same information available to
 the
 administrator thru the AMI can/will be made available thru snmp polling 
 traps
 .  It should not be too difficult to make net-snmp's daemon make those
 connections to AMI locally on the asterisk server  then report that data
 back
 to the snmp client .  But everytime I've tried to expand snmpd's
 functionality
 I've hit nothing but failures .

Twyl ,  JimL

  2009/11/27 michal kalinowski michal.kalinow...@interia.pl
  Check this command snmpwalk -c your_community -v 1 localhost
 interfaces
 
  in my system it's looks like that:
 
  IF-MIB::ifNumber.0 = INTEGER: 4
  IF-MIB::ifIndex.1 = INTEGER: 1
  IF-MIB::ifIndex.2 = INTEGER: 2
  IF-MIB::ifIndex.3 = INTEGER: 3
  IF-MIB::ifIndex.4 = INTEGER: 4
  IF-MIB::ifDescr.1 = STRING: lo
  IF-MIB::ifDescr.2 = STRING: eth0
  IF-MIB::ifDescr.3 = STRING: eth1
  IF-MIB::ifDescr.4 = STRING: sit0
  IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
  IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
  IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
  IF-MIB::ifType.4 = INTEGER: tunnel(131)
  IF-MIB::ifMtu.1 = INTEGER: 16436
  IF-MIB::ifMtu.2 = INTEGER: 1500
  IF-MIB::ifMtu.3 = INTEGER: 1500
  IF-MIB::ifMtu.4 = INTEGER: 1480
  IF-MIB::ifSpeed.1 = Gauge32: 1000
  IF-MIB::ifSpeed.2 = Gauge32: 1000
  IF-MIB::ifSpeed.3 = Gauge32: 10
  IF-MIB::ifSpeed.4 = Gauge32: 0
  IF-MIB::ifPhysAddress.1 = STRING:
  IF-MIB::ifPhysAddress.2 = STRING: 0:14:5e:32:15:70
  IF-MIB::ifPhysAddress.3 = STRING: 0:14:5e:32:15:71
  IF-MIB::ifPhysAddress.4 = STRING:
  IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
  IF-MIB::ifAdminStatus.2 = INTEGER: down(2)
  IF-MIB::ifAdminStatus.3 = INTEGER: up(1)
  IF-MIB::ifAdminStatus.4 = INTEGER: down(2)
  IF-MIB::ifOperStatus.1 = INTEGER: up(1)
  IF-MIB::ifOperStatus.2 = INTEGER: down(2)
  IF-MIB::ifOperStatus.3 = INTEGER: up(1)
  IF-MIB::ifOperStatus.4 = INTEGER: down(2)
  IF-MIB::ifLastChange.1 = Timeticks: (0) 0:00:00.00
  IF-MIB::ifLastChange.2 = Timeticks: (0) 0:00:00.00
  IF-MIB::ifLastChange.3 = Timeticks: (0) 0:00:00.00
  IF-MIB::ifLastChange.4 = Timeticks: (0) 0:00:00.00
  IF-MIB::ifInOctets.1 = Counter32: 37919437
  IF-MIB::ifInOctets.2 = Counter32: 0
  IF-MIB::ifInOctets.3 = Counter32: 1491657594
  IF-MIB::ifInOctets.4 = Counter32: 0
  IF-MIB::ifInUcastPkts.1 = Counter32: 335932
  IF-MIB::ifInUcastPkts.2 = Counter32: 0
  IF-MIB::ifInUcastPkts.3 = Counter32: 162961409
  IF-MIB::ifInUcastPkts.4 = Counter32: 0
  IF-MIB::ifInNUcastPkts.1 = Counter32: 0
  IF-MIB::ifInNUcastPkts.2 = Counter32: 0
  IF-MIB::ifInNUcastPkts.3 = Counter32: 131166
  IF-MIB::ifInNUcastPkts.4 = Counter32: 0
  IF-MIB::ifInDiscards.1 = Counter32: 0
  IF-MIB::ifInDiscards.2 = Counter32: 0
  IF-MIB::ifInDiscards.3 = Counter32: 0
  IF-MIB::ifInDiscards.4 = Counter32: 0
  IF-MIB::ifInErrors.1 = Counter32: 0
  IF-MIB::ifInErrors.2 = Counter32: 0
  IF-MIB::ifInErrors.3 = Counter32: 0
  IF-MIB::ifInErrors.4 = Counter32: 0
  IF-MIB::ifInUnknownProtos.1 = Counter32: 0
  IF-MIB::ifInUnknownProtos.2 = 

[asterisk-users] ASTERISK and SNMP

2009-11-27 Thread mickael ropars
Hi all,

I am currently not able to configure SNMP for asterisk, but I am not able to
acess to the asterisk MIB (the asterisk MIB is in /usr/share/snmp/mibs/)


Does somebody has an example of smnpd.conf file wich is working ?

regards

Mickael
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] ASTERISK and SNMP

2009-11-27 Thread michal kalinowski
Hello Mickael

Here You have the snmpd.conf file

cat /etc/snmp/snmpd.conf
rocommunity your_community
master agentx
agentXperms 0660 0550 nobody asterisk
SNMPD_FLAGS=${SNMPD_FLAGS} -x /var/agentx/master
mibs +ASTERISK-MIB

and also you need create file /etc/snmp/snmp.conf with following entry
mibs +ASTERISK-MIB

cat /etc/snmp/snmp.conf
mibs +ASTERISK-MIB

Next use command snmpwalk -c your_community -v 1 localhost asterisk
to check is everything correct.



Michał

2009/11/27 mickael ropars mrop...@gmail.com:
 Hi all,

 I am currently not able to configure SNMP for asterisk, but I am not able to
 acess to the asterisk MIB (the asterisk MIB is in /usr/share/snmp/mibs/)


 Does somebody has an example of smnpd.conf file wich is working ?

 regards

 Mickael

 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] ASTERISK and SNMP

2009-11-27 Thread mickael ropars
Hi Michal,

thanks a lot for you quick answer I appreciate.

I run your commands and I have the following answer

[localhost snmp]# snmpwalk -c local -v 1 localhost asterisk
no answer

[localhost snmp]# snmpwalk -c local -v 2c localhost asterisk
ASTERISK-MIB::asterisk = No Such Object available on this agent at this OID


since I don't know well snmp what's going wrong ?

regards

Mickael



2009/11/27 michal kalinowski michal.kalinow...@interia.pl

 Hello Mickael

 Here You have the snmpd.conf file

 cat /etc/snmp/snmpd.conf
 rocommunity your_community
 master agentx
 agentXperms 0660 0550 nobody asterisk
 SNMPD_FLAGS=${SNMPD_FLAGS} -x /var/agentx/master
 mibs +ASTERISK-MIB

 and also you need create file /etc/snmp/snmp.conf with following entry
 mibs +ASTERISK-MIB

 cat /etc/snmp/snmp.conf
 mibs +ASTERISK-MIB

 Next use command snmpwalk -c your_community -v 1 localhost asterisk
 to check is everything correct.



 Michał

 2009/11/27 mickael ropars mrop...@gmail.com:
  Hi all,
 
  I am currently not able to configure SNMP for asterisk, but I am not able
 to
  acess to the asterisk MIB (the asterisk MIB is in /usr/share/snmp/mibs/)
 
 
  Does somebody has an example of smnpd.conf file wich is working ?
 
  regards
 
  Mickael
 
  ___
  -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 
  asterisk-users mailing list
  To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
 

 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] ASTERISK and SNMP

2009-11-27 Thread michal kalinowski
What operating system do You have ? What asterisk version You compile ?
After install net-snmp do You recompile asterisk with res_snmp module ?

I'm used instruction from here
http://voxilla.com/2009/02/03/configuring-asterisk-snmp-support-1131
and everything work correctly.

BR,
Michał
W dniu 27 listopada 2009 11:18 użytkownik mickael ropars
mrop...@gmail.com napisał:
 Hi Michal,

 thanks a lot for you quick answer I appreciate.

 I run your commands and I have the following answer

 [localhost snmp]# snmpwalk -c local -v 1 localhost asterisk
 no answer

 [localhost snmp]# snmpwalk -c local -v 2c localhost asterisk
 ASTERISK-MIB::asterisk = No Such Object available on this agent at this OID


 since I don't know well snmp what's going wrong ?

 regards

 Mickael



 2009/11/27 michal kalinowski michal.kalinow...@interia.pl

 Hello Mickael

 Here You have the snmpd.conf file

 cat /etc/snmp/snmpd.conf
 rocommunity your_community
 master agentx
 agentXperms 0660 0550 nobody asterisk
 SNMPD_FLAGS=${SNMPD_FLAGS} -x /var/agentx/master
 mibs +ASTERISK-MIB

 and also you need create file /etc/snmp/snmp.conf with following entry
 mibs +ASTERISK-MIB

 cat /etc/snmp/snmp.conf
 mibs +ASTERISK-MIB

 Next use command snmpwalk -c your_community -v 1 localhost asterisk
 to check is everything correct.



 Michał

 2009/11/27 mickael ropars mrop...@gmail.com:
  Hi all,
 
  I am currently not able to configure SNMP for asterisk, but I am not
  able to
  acess to the asterisk MIB (the asterisk MIB is in /usr/share/snmp/mibs/)
 
 
  Does somebody has an example of smnpd.conf file wich is working ?
 
  regards
 
  Mickael
 
  ___
  -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 
  asterisk-users mailing list
  To UNSUBSCRIBE or update options visit:
    http://lists.digium.com/mailman/listinfo/asterisk-users
 

 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] ASTERISK and SNMP

2009-11-27 Thread mickael ropars
I am running on Trixbox so my OS is Cent0S 5.4 and the Asterisk version is
1.4.22-4

on asterisk side Snmp module is running:

 module load res_snmp.so
  == Parsing '/etc/asterisk/res_snmp.conf': Found
 Loading [Sub]Agent Module
 Loaded res_snmp.so = (SNMP [Sub]Agent for Asterisk)

see below my snmpd.conf file (I remove commented line for an easy reading)

regards

Mickael




###
# Access Control
###


# First, map the community name (COMMUNITY) into a security name
# (local and mynetwork, depending on where the request is coming
# from):

#   sec.name  source  community
com2sec local localhost   COMMUNITY
com2sec mynetwork NETWORK/24  COMMUNITY


rwcommunity local
rocommunity local


# Second, map the security names into group names:

#   sec.model  sec.name
group MyRWGroup v1 local
group MyRWGroup v2clocal
group MyRWGroup usmlocal
group MyROGroup v1 mynetwork
group MyROGroup v2cmynetwork
group MyROGroup usmmynetwork


# Third, create a view for us to let the groups have rights to:

#   incl/excl subtree  mask
view allincluded  .1   80


# Finally, grant the 2 groups access to the 1 view with different
# write permissions:

#context sec.model sec.level match  read   write  notif
access MyROGroup   any   noauthexact  allnone   none
access MyRWGroup   any   noauthexact  allallnone


###
# System contact information
#

syslocation Right here, right now.
syscontact Me m...@somewhere.org



###
# Process checks.
#
#  Make sure mountd is running
proc mountd

#  Make sure there are no more than 4 ntalkds running, but 0 is ok too.
proc ntalkd 4

#  Make sure at least one sendmail, but less than or equal to 10 are
running.
proc sendmail 10 1


###
# Executables/scripts
#

# a simple hello world
exec echotest /bin/echo hello world

###
# disk checks
#

disk / 1


###
# load average checks
#

# Check for loads:
load 12 14 14


###
# Extensible sections.
#



###
# Pass through control.
#

###
# Subagent control
#

master agentx
agentXperms 0660 0550 nobody asterisk
SNMPD_FLAGS=${SNMPD_FLAGS} -x /var/agentx/master
mibs +ASTERISK-MIB

###
# Further Information




2009/11/27 michal kalinowski michal.kalinow...@interia.pl

 What operating system do You have ? What asterisk version You compile ?
 After install net-snmp do You recompile asterisk with res_snmp module ?

 I'm used instruction from here
 http://voxilla.com/2009/02/03/configuring-asterisk-snmp-support-1131
 and everything work correctly.

 BR,
 Michał
 W dniu 27 listopada 2009 11:18 użytkownik mickael ropars
 mrop...@gmail.com napisał:
  Hi Michal,
 
  thanks a lot for you quick answer I appreciate.
 
  I run your commands and I have the following answer
 
  [localhost snmp]# snmpwalk -c local -v 1 localhost asterisk
  no answer
 
  [localhost snmp]# snmpwalk -c local -v 2c localhost asterisk
  ASTERISK-MIB::asterisk = No Such Object available on this agent at this
 OID
 
 
  since I don't know well snmp what's going wrong ?
 
  regards
 
  Mickael
 
 
 
  2009/11/27 michal kalinowski michal.kalinow...@interia.pl
 
  Hello Mickael
 
  Here You have the snmpd.conf file
 
  cat /etc/snmp/snmpd.conf
  rocommunity your_community
  master agentx
  agentXperms 0660 0550 nobody asterisk
  SNMPD_FLAGS=${SNMPD_FLAGS} -x /var/agentx/master
  mibs +ASTERISK-MIB
 
  and also you need create file /etc/snmp/snmp.conf with following entry
  mibs +ASTERISK-MIB
 
  cat /etc/snmp/snmp.conf
  mibs +ASTERISK-MIB
 
  Next use command snmpwalk -c your_community -v 1 localhost asterisk
  to check is everything correct.
 
 
 
  Michał
 
  2009/11/27 mickael ropars mrop...@gmail.com:
   Hi all,
  
   I am currently not able to configure SNMP for asterisk, but I am not
   able to
   acess to the asterisk MIB (the asterisk MIB is in
 /usr/share/snmp/mibs/)
  
  
   Does somebody has an example of smnpd.conf file wich is working ?
  
   regards
  
   Mickael
  
   ___
   -- Bandwidth and Colocation 

Re: [asterisk-users] ASTERISK and SNMP

2009-11-27 Thread mickael ropars
Michal

please wait I found some issues in my con file

2009/11/27 mickael ropars mrop...@gmail.com

 I am running on Trixbox so my OS is Cent0S 5.4 and the Asterisk version is
 1.4.22-4

 on asterisk side Snmp module is running:

  module load res_snmp.so
   == Parsing '/etc/asterisk/res_snmp.conf': Found
  Loading [Sub]Agent Module
  Loaded res_snmp.so = (SNMP [Sub]Agent for Asterisk)

 see below my snmpd.conf file (I remove commented line for an easy reading)

 regards

 Mickael





 ###
 # Access Control

 ###

 
 # First, map the community name (COMMUNITY) into a security name
 # (local and mynetwork, depending on where the request is coming
 # from):

 #   sec.name  source  community
 com2sec local localhost   COMMUNITY
 com2sec mynetwork NETWORK/24  COMMUNITY


 rwcommunity local
 rocommunity local

 
 # Second, map the security names into group names:

 #   sec.model  sec.name
 group MyRWGroup v1 local
 group MyRWGroup v2clocal
 group MyRWGroup usmlocal
 group MyROGroup v1 mynetwork
 group MyROGroup v2cmynetwork
 group MyROGroup usmmynetwork

 
 # Third, create a view for us to let the groups have rights to:

 #   incl/excl subtree  mask
 view allincluded  .1   80

 
 # Finally, grant the 2 groups access to the 1 view with different
 # write permissions:

 #context sec.model sec.level match  read   write  notif
 access MyROGroup   any   noauthexact  allnone   none
 access MyRWGroup   any   noauthexact  allallnone



 ###
 # System contact information
 #

 syslocation Right here, right now.
 syscontact Me m...@somewhere.org




 ###
 # Process checks.
 #
 #  Make sure mountd is running
 proc mountd

 #  Make sure there are no more than 4 ntalkds running, but 0 is ok too.
 proc ntalkd 4

 #  Make sure at least one sendmail, but less than or equal to 10 are
 running.
 proc sendmail 10 1



 ###
 # Executables/scripts
 #

 # a simple hello world
 exec echotest /bin/echo hello world


 ###
 # disk checks
 #

 disk / 1



 ###
 # load average checks
 #

 # Check for loads:
 load 12 14 14



 ###
 # Extensible sections.
 #




 ###
 # Pass through control.
 #


 ###
 # Subagent control

 #

 master agentx
 agentXperms 0660 0550 nobody asterisk
 SNMPD_FLAGS=${SNMPD_FLAGS} -x /var/agentx/master
 mibs +ASTERISK-MIB


 ###
 # Further Information





 2009/11/27 michal kalinowski michal.kalinow...@interia.pl

 What operating system do You have ? What asterisk version You compile ?
 After install net-snmp do You recompile asterisk with res_snmp module ?

 I'm used instruction from here
 http://voxilla.com/2009/02/03/configuring-asterisk-snmp-support-1131
 and everything work correctly.

 BR,
 Michał
 W dniu 27 listopada 2009 11:18 użytkownik mickael ropars
 mrop...@gmail.com napisał:
  Hi Michal,
 
  thanks a lot for you quick answer I appreciate.
 
  I run your commands and I have the following answer
 
  [localhost snmp]# snmpwalk -c local -v 1 localhost asterisk
  no answer
 
  [localhost snmp]# snmpwalk -c local -v 2c localhost asterisk
  ASTERISK-MIB::asterisk = No Such Object available on this agent at this
 OID
 
 
  since I don't know well snmp what's going wrong ?
 
  regards
 
  Mickael
 
 
 
  2009/11/27 michal kalinowski michal.kalinow...@interia.pl
 
  Hello Mickael
 
  Here You have the snmpd.conf file
 
  cat /etc/snmp/snmpd.conf
  rocommunity your_community
  master agentx
  agentXperms 0660 0550 nobody asterisk
  SNMPD_FLAGS=${SNMPD_FLAGS} -x /var/agentx/master
  mibs +ASTERISK-MIB
 
  and also you need create file /etc/snmp/snmp.conf with following entry
  mibs +ASTERISK-MIB
 
  cat /etc/snmp/snmp.conf
  mibs +ASTERISK-MIB
 
  Next use command snmpwalk -c your_community -v 1 localhost asterisk
  to check is everything correct.
 
 
 
  Michał
 
  2009/11/27 mickael ropars mrop...@gmail.com:
   Hi all,
  
   I am currently not able to configure SNMP for asterisk, but I am not
   able to
   acess to the asterisk MIB (the asterisk MIB is in
 

Re: [asterisk-users] ASTERISK and SNMP

2009-11-27 Thread Lee Archer
I use CentOS, and it works fairly well.   But I had to piece together info from 
several places.  I've tried it several different wants and this way worked, as 
long as asterisk is run as root.

 

Copy asterisk-mib.txt and digium-mib.txt from asterisk_source/doc to 
/usr/share/snmp/mibs/

 

mkdir /var/agentx

touch /var/agentx/master

 

My /etc/asterisk/res_snmp.conf

 

;

; Configuration file for res_snmp

;

 

[general]

; We run as a subagent per default -- to run as a full agent

; we must run as root (to be able to bind to port 161)

;subagent = yes

; SNMP must be explicitly enabled to be active

enabled = yes

 

My snmp.conf

 

rwcommunity private 127.0.0.1

rocommunity public

disk /

master agentx

agentXperms 0660 0550 root root

 

restart snmp and the /var/agentx/master should look like srw-rw 1 root root 
0 Nov 25 11:31 /var/agentx/master

 

restart asterisk manually and you see a net-snmp connect.

 

export MIBS=+ASTERISK-MIB

 

You should be able to to do a snmpwalk -v 2c -c public localhost asterisk

 

Regards

 

Lee

 

From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of mickael ropars
Sent: 27 November 2009 11:58
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] ASTERISK and SNMP

 

Michal

please wait I found some issues in my con file

2009/11/27 mickael ropars mrop...@gmail.com

I am running on Trixbox so my OS is Cent0S 5.4 and the Asterisk version is 
1.4.22-4

on asterisk side Snmp module is running:

 module load res_snmp.so
  == Parsing '/etc/asterisk/res_snmp.conf': Found
 Loading [Sub]Agent Module
 Loaded res_snmp.so = (SNMP [Sub]Agent for Asterisk)

see below my snmpd.conf file (I remove commented line for an easy reading)

regards

Mickael




###
# Access Control
###


# First, map the community name (COMMUNITY) into a security name
# (local and mynetwork, depending on where the request is coming
# from):

#   sec.name  source  community
com2sec local localhost   COMMUNITY
com2sec mynetwork NETWORK/24  COMMUNITY


rwcommunity local
rocommunity local


# Second, map the security names into group names:

#   sec.model  sec.name
group MyRWGroup v1 local
group MyRWGroup v2clocal
group MyRWGroup usmlocal
group MyROGroup v1 mynetwork
group MyROGroup v2cmynetwork
group MyROGroup usmmynetwork


# Third, create a view for us to let the groups have rights to:

#   incl/excl subtree  mask
view allincluded  .1   80


# Finally, grant the 2 groups access to the 1 view with different
# write permissions:

#context sec.model sec.level match  read   write  notif
access MyROGroup   any   noauthexact  allnone   none
access MyRWGroup   any   noauthexact  allallnone


###
# System contact information
#

syslocation Right here, right now.
syscontact Me m...@somewhere.org



###
# Process checks.
#
#  Make sure mountd is running
proc mountd

#  Make sure there are no more than 4 ntalkds running, but 0 is ok too.
proc ntalkd 4

#  Make sure at least one sendmail, but less than or equal to 10 are running.
proc sendmail 10 1


###
# Executables/scripts
#

# a simple hello world
exec echotest /bin/echo hello world

###
# disk checks
#

disk / 1


###
# load average checks
#

# Check for loads:
load 12 14 14


###
# Extensible sections.
#



###
# Pass through control.
#

###
# Subagent control


#

master agentx
agentXperms 0660 0550 nobody asterisk
SNMPD_FLAGS=${SNMPD_FLAGS} -x /var/agentx/master
mibs +ASTERISK-MIB

###
# Further Information







2009/11/27 michal kalinowski michal.kalinow...@interia.pl

What operating system do You have ? What asterisk version You compile ?
After install net-snmp do You recompile asterisk with res_snmp module ?

I'm used instruction from here
http://voxilla.com/2009/02/03/configuring-asterisk-snmp-support-1131
and everything work correctly.

BR,
Michał
W dniu 27 listopada 2009 11:18 użytkownik mickael ropars
mrop

Re: [asterisk-users] ASTERISK and SNMP

2009-11-27 Thread mickael ropars
thanks all for your help, I really appreciate.

now it's working

My problem was due to
Nov 27 12:56:28 trixbox1 snmpd[5743]: /etc/snmp/snmpd.conf: line 61: Error:
example config COMMUNITY not properly configured
Nov 27 12:56:28 trixbox1 snmpd[5743]: /etc/snmp/snmpd.conf: line 62: Error:
example config NETWORK not properly configured

with the link michal gave to me I succeed in getting asterisk working

regards

Mickael


2009/11/27 Lee Archer lee.arc...@thebigword.com

  I use CentOS, and it works fairly well.   But I had to piece together
 info from several places.  I've tried it several different wants and this
 way worked, as long as asterisk is run as root.



 Copy asterisk-mib.txt and digium-mib.txt from asterisk_source/doc to
 /usr/share/snmp/mibs/



 mkdir /var/agentx

 touch /var/agentx/master



 My /etc/asterisk/res_snmp.conf



 ;

 ; Configuration file for res_snmp

 ;



 [general]

 ; We run as a subagent per default -- to run as a full agent

 ; we must run as root (to be able to bind to port 161)

 ;subagent = yes

 ; SNMP must be explicitly enabled to be active

 enabled = yes



 My snmp.conf



 rwcommunity private 127.0.0.1

 rocommunity public

 disk /

 master agentx

 agentXperms 0660 0550 root root



 restart snmp and the /var/agentx/master should look like srw-rw 1 root
 root 0 Nov 25 11:31 /var/agentx/master



 restart asterisk manually and you see a net-snmp connect.



 export MIBS=+ASTERISK-MIB



 You should be able to to do a snmpwalk -v 2c -c public localhost asterisk



 Regards



 Lee



 *From:* asterisk-users-boun...@lists.digium.com [mailto:
 asterisk-users-boun...@lists.digium.com] *On Behalf Of *mickael ropars
 *Sent:* 27 November 2009 11:58
 *To:* Asterisk Users Mailing List - Non-Commercial Discussion
 *Subject:* Re: [asterisk-users] ASTERISK and SNMP



 Michal

 please wait I found some issues in my con file

 2009/11/27 mickael ropars mrop...@gmail.com

 I am running on Trixbox so my OS is Cent0S 5.4 and the Asterisk version is
 1.4.22-4

 on asterisk side Snmp module is running:

  module load res_snmp.so
   == Parsing '/etc/asterisk/res_snmp.conf': Found
  Loading [Sub]Agent Module
  Loaded res_snmp.so = (SNMP [Sub]Agent for Asterisk)

 see below my snmpd.conf file (I remove commented line for an easy reading)

 regards

 Mickael





 ###
 # Access Control

 ###

 
 # First, map the community name (COMMUNITY) into a security name
 # (local and mynetwork, depending on where the request is coming
 # from):

 #   sec.name  source  community
 com2sec local localhost   COMMUNITY
 com2sec mynetwork NETWORK/24  COMMUNITY


 rwcommunity local
 rocommunity local

 
 # Second, map the security names into group names:

 #   sec.model  sec.name
 group MyRWGroup v1 local
 group MyRWGroup v2clocal
 group MyRWGroup usmlocal
 group MyROGroup v1 mynetwork
 group MyROGroup v2cmynetwork
 group MyROGroup usmmynetwork

 
 # Third, create a view for us to let the groups have rights to:

 #   incl/excl subtree  mask
 view allincluded  .1   80

 
 # Finally, grant the 2 groups access to the 1 view with different
 # write permissions:

 #context sec.model sec.level match  read   write  notif
 access MyROGroup   any   noauthexact  allnone   none
 access MyRWGroup   any   noauthexact  allallnone



 ###
 # System contact information
 #

 syslocation Right here, right now.
 syscontact Me m...@somewhere.org




 ###
 # Process checks.
 #
 #  Make sure mountd is running
 proc mountd

 #  Make sure there are no more than 4 ntalkds running, but 0 is ok too.
 proc ntalkd 4

 #  Make sure at least one sendmail, but less than or equal to 10 are
 running.
 proc sendmail 10 1



 ###
 # Executables/scripts
 #

 # a simple hello world
 exec echotest /bin/echo hello world


 ###
 # disk checks
 #

 disk / 1



 ###
 # load average checks
 #

 # Check for loads:
 load 12 14 14



 ###
 # Extensible sections.
 #




 ###
 # Pass through control.
 #


 ###
 # Subagent control


 #

 master agentx
 agentXperms 0660 0550 nobody

Re: [asterisk-users] ASTERISK and SNMP

2009-11-27 Thread Anthony Messina
 
 
original message-
From: mickael ropars mrop...@gmail.com To: Asterisk Users Mailing List -
Non-Commercial Discussion asterisk-users@lists.digium.com Date: Fri, 27 Nov
2009 11:18:30 +0100
-
 
 
 Hi Michal,
 
 thanks a lot for you quick answer I appreciate.
 
 I run your commands and I have the following answer
 
 [localhost snmp]# snmpwalk -c local -v 1 localhost asterisk
 no answer
 
 [localhost snmp]# snmpwalk -c local -v 2c localhost asterisk
 ASTERISK-MIB::asterisk = No Such Object available on this agent at this
OID

you may need to do export MIBS=+ASTERISK-MIB  snmpwalk ...
-- 

Anthony - http://messinet.com - http://messinet.com/~amessina/gallery



___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] ASTERISK and SNMP

2009-11-27 Thread mickael ropars
Everuthing is working fine, but I have another question to SNMP users:

There is no hardware info in the MIB.

How can you do to send alarm (when one interface is down for exemple), is
there no way to check its status?

NB: I am using a Digium card

regards

Mickael

2009/11/27 mickael ropars mrop...@gmail.com

 Hi all,

 I am currently not able to configure SNMP for asterisk, but I am not able
 to acess to the asterisk MIB (the asterisk MIB is in /usr/share/snmp/mibs/)


 Does somebody has an example of smnpd.conf file wich is working ?

 regards

 Mickael

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] ASTERISK and SNMP

2009-11-27 Thread michal kalinowski
Your Digium card is for linux standard interface like eth0 (ethernet),
check IF-MIB.txt and OID from there.

BR,
Michał

2009/11/27 mickael ropars mrop...@gmail.com:
 Everuthing is working fine, but I have another question to SNMP users:

 There is no hardware info in the MIB.

 How can you do to send alarm (when one interface is down for exemple), is
 there no way to check its status?

 NB: I am using a Digium card

 regards

 Mickael

 2009/11/27 mickael ropars mrop...@gmail.com

 Hi all,

 I am currently not able to configure SNMP for asterisk, but I am not able
 to acess to the asterisk MIB (the asterisk MIB is in /usr/share/snmp/mibs/)


 Does somebody has an example of smnpd.conf file wich is working ?

 regards

 Mickael


 ___
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] ASTERISK and SNMP

2009-11-27 Thread Mr. James W. Laferriere

Hello Micha ( all) ,

On Fri, 27 Nov 2009, michal kalinowski wrote:

Your Digium card is for linux standard interface like eth0 (ethernet),
check IF-MIB.txt and OID from there.
BR,
Micha?
	When doing a snmpwalk of the IF-MIB  having a (*) installed there is no 
mention of an interface associated with this card .  Now it is quite possible 
that Digium in there wisdom has added the necessary components to their drivers 
that inserts the necessary components into the IF tables thus allowing snmp's 
IF-MIB to see a known interface .


	If this is the case where in the driver (or code base) might I find this 
revelation .  I'd sure like to have statistics  traps being dumped for this card .


(*)
01:09.0 Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN 
interface

Tia ,  JimL


2009/11/27 mickael ropars mrop...@gmail.com:

Everuthing is working fine, but I have another question to SNMP users:

There is no hardware info in the MIB.

How can you do to send alarm (when one interface is down for exemple), is
there no way to check its status?

NB: I am using a Digium card

regards

Mickael

2009/11/27 mickael ropars mrop...@gmail.com


Hi all,

I am currently not able to configure SNMP for asterisk, but I am not able
to acess to the asterisk MIB (the asterisk MIB is in /usr/share/snmp/mibs/)


Does somebody has an example of smnpd.conf file wich is working ?

regards

Mickael



___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users



___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users



--
+--+
| James   W.   Laferriere | SystemTechniques | Give me VMS |
| NetworkSystem Engineer | 3237 Holden Road |  Give me Linux  |
| bab...@baby-dragons.com | Fairbanks, AK. 99709 |   only  on  AXP |
+--+___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] ASTERISK and SNMP

2009-11-27 Thread michal kalinowski
Check this command snmpwalk -c your_community -v 1 localhost interfaces

in my system it's looks like that:

IF-MIB::ifNumber.0 = INTEGER: 4
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifDescr.1 = STRING: lo
IF-MIB::ifDescr.2 = STRING: eth0
IF-MIB::ifDescr.3 = STRING: eth1
IF-MIB::ifDescr.4 = STRING: sit0
IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.4 = INTEGER: tunnel(131)
IF-MIB::ifMtu.1 = INTEGER: 16436
IF-MIB::ifMtu.2 = INTEGER: 1500
IF-MIB::ifMtu.3 = INTEGER: 1500
IF-MIB::ifMtu.4 = INTEGER: 1480
IF-MIB::ifSpeed.1 = Gauge32: 1000
IF-MIB::ifSpeed.2 = Gauge32: 1000
IF-MIB::ifSpeed.3 = Gauge32: 10
IF-MIB::ifSpeed.4 = Gauge32: 0
IF-MIB::ifPhysAddress.1 = STRING:
IF-MIB::ifPhysAddress.2 = STRING: 0:14:5e:32:15:70
IF-MIB::ifPhysAddress.3 = STRING: 0:14:5e:32:15:71
IF-MIB::ifPhysAddress.4 = STRING:
IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
IF-MIB::ifAdminStatus.2 = INTEGER: down(2)
IF-MIB::ifAdminStatus.3 = INTEGER: up(1)
IF-MIB::ifAdminStatus.4 = INTEGER: down(2)
IF-MIB::ifOperStatus.1 = INTEGER: up(1)
IF-MIB::ifOperStatus.2 = INTEGER: down(2)
IF-MIB::ifOperStatus.3 = INTEGER: up(1)
IF-MIB::ifOperStatus.4 = INTEGER: down(2)
IF-MIB::ifLastChange.1 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.2 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.3 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.4 = Timeticks: (0) 0:00:00.00
IF-MIB::ifInOctets.1 = Counter32: 37919437
IF-MIB::ifInOctets.2 = Counter32: 0
IF-MIB::ifInOctets.3 = Counter32: 1491657594
IF-MIB::ifInOctets.4 = Counter32: 0
IF-MIB::ifInUcastPkts.1 = Counter32: 335932
IF-MIB::ifInUcastPkts.2 = Counter32: 0
IF-MIB::ifInUcastPkts.3 = Counter32: 162961409
IF-MIB::ifInUcastPkts.4 = Counter32: 0
IF-MIB::ifInNUcastPkts.1 = Counter32: 0
IF-MIB::ifInNUcastPkts.2 = Counter32: 0
IF-MIB::ifInNUcastPkts.3 = Counter32: 131166
IF-MIB::ifInNUcastPkts.4 = Counter32: 0
IF-MIB::ifInDiscards.1 = Counter32: 0
IF-MIB::ifInDiscards.2 = Counter32: 0
IF-MIB::ifInDiscards.3 = Counter32: 0
IF-MIB::ifInDiscards.4 = Counter32: 0
IF-MIB::ifInErrors.1 = Counter32: 0
IF-MIB::ifInErrors.2 = Counter32: 0
IF-MIB::ifInErrors.3 = Counter32: 0
IF-MIB::ifInErrors.4 = Counter32: 0
IF-MIB::ifInUnknownProtos.1 = Counter32: 0
IF-MIB::ifInUnknownProtos.2 = Counter32: 0
IF-MIB::ifInUnknownProtos.3 = Counter32: 0
IF-MIB::ifInUnknownProtos.4 = Counter32: 0
IF-MIB::ifOutOctets.1 = Counter32: 37919437
IF-MIB::ifOutOctets.2 = Counter32: 0
IF-MIB::ifOutOctets.3 = Counter32: 3525337520
IF-MIB::ifOutOctets.4 = Counter32: 0
IF-MIB::ifOutUcastPkts.1 = Counter32: 335932
IF-MIB::ifOutUcastPkts.2 = Counter32: 0
IF-MIB::ifOutUcastPkts.3 = Counter32: 38811075
IF-MIB::ifOutUcastPkts.4 = Counter32: 0
IF-MIB::ifOutNUcastPkts.1 = Counter32: 0
IF-MIB::ifOutNUcastPkts.2 = Counter32: 0
IF-MIB::ifOutNUcastPkts.3 = Counter32: 0
IF-MIB::ifOutNUcastPkts.4 = Counter32: 0
IF-MIB::ifOutDiscards.1 = Counter32: 0
IF-MIB::ifOutDiscards.2 = Counter32: 0
IF-MIB::ifOutDiscards.3 = Counter32: 0
IF-MIB::ifOutDiscards.4 = Counter32: 0
IF-MIB::ifOutErrors.1 = Counter32: 0
IF-MIB::ifOutErrors.2 = Counter32: 0
IF-MIB::ifOutErrors.3 = Counter32: 0
IF-MIB::ifOutErrors.4 = Counter32: 0
IF-MIB::ifOutQLen.1 = Gauge32: 0
IF-MIB::ifOutQLen.2 = Gauge32: 0
IF-MIB::ifOutQLen.3 = Gauge32: 0
IF-MIB::ifOutQLen.4 = Gauge32: 0
IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.2 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.3 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.4 = OID: SNMPv2-SMI::zeroDotZero

here You have information about interface descryptions, status, speed,
type, etc.

BR,
Michał
2009/11/27 Mr. James W. Laferriere bab...@baby-dragons.com:
        Hello Micha ( all) ,

 On Fri, 27 Nov 2009, michal kalinowski wrote:

 Your Digium card is for linux standard interface like eth0 (ethernet),
 check IF-MIB.txt and OID from there.
 BR,
 Micha?

        When doing a snmpwalk of the IF-MIB  having a (*) installed there is
 no mention of an interface associated with this card .  Now it is quite
 possible that Digium in there wisdom has added the necessary components to
 their drivers that inserts the necessary components into the IF tables thus
 allowing snmp's IF-MIB to see a known interface .

        If this is the case where in the driver (or code base) might I find
 this revelation .  I'd sure like to have statistics  traps being dumped for
 this card .

 (*)
 01:09.0 Communication controller: Tiger Jet Network Inc. Tiger3XX Modem/ISDN
 interface

                Tia ,  JimL

 2009/11/27 mickael ropars mrop...@gmail.com:

 Everuthing is working fine, but I have another question to SNMP users:

 There is no hardware info in the MIB.

 How can you do to send alarm (when one interface is down for exemple), is
 there no way to check its status?

 NB: I am using a Digium card

 regards

 Mickael

 

Re: [asterisk-users] ASTERISK and SNMP

2009-11-27 Thread mickael ropars
Michal,

in the IF-MIB you only have 4 interfaces lo,eth0,eth1,sit0

l0  which is the loopback interface
eth0, eth1 : ethernet interface
sit0 : use for PTP tunneling (use for IPv6)

so no information on the digium interface.

my IF MIB has also those interfaces

I found one the solution to get status of the cards, and all snmp data. the
solution is argus :
http://argus.tcp4me.com/

with this tools you can have a complete view of your system.

regards

Mickael

2009/11/27 michal kalinowski michal.kalinow...@interia.pl

 Check this command snmpwalk -c your_community -v 1 localhost interfaces

 in my system it's looks like that:

 IF-MIB::ifNumber.0 = INTEGER: 4
 IF-MIB::ifIndex.1 = INTEGER: 1
 IF-MIB::ifIndex.2 = INTEGER: 2
 IF-MIB::ifIndex.3 = INTEGER: 3
 IF-MIB::ifIndex.4 = INTEGER: 4
 IF-MIB::ifDescr.1 = STRING: lo
 IF-MIB::ifDescr.2 = STRING: eth0
 IF-MIB::ifDescr.3 = STRING: eth1
 IF-MIB::ifDescr.4 = STRING: sit0
 IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
 IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
 IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
 IF-MIB::ifType.4 = INTEGER: tunnel(131)
 IF-MIB::ifMtu.1 = INTEGER: 16436
 IF-MIB::ifMtu.2 = INTEGER: 1500
 IF-MIB::ifMtu.3 = INTEGER: 1500
 IF-MIB::ifMtu.4 = INTEGER: 1480
 IF-MIB::ifSpeed.1 = Gauge32: 1000
 IF-MIB::ifSpeed.2 = Gauge32: 1000
 IF-MIB::ifSpeed.3 = Gauge32: 10
 IF-MIB::ifSpeed.4 = Gauge32: 0
 IF-MIB::ifPhysAddress.1 = STRING:
 IF-MIB::ifPhysAddress.2 = STRING: 0:14:5e:32:15:70
 IF-MIB::ifPhysAddress.3 = STRING: 0:14:5e:32:15:71
 IF-MIB::ifPhysAddress.4 = STRING:
 IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
 IF-MIB::ifAdminStatus.2 = INTEGER: down(2)
 IF-MIB::ifAdminStatus.3 = INTEGER: up(1)
 IF-MIB::ifAdminStatus.4 = INTEGER: down(2)
 IF-MIB::ifOperStatus.1 = INTEGER: up(1)
 IF-MIB::ifOperStatus.2 = INTEGER: down(2)
 IF-MIB::ifOperStatus.3 = INTEGER: up(1)
 IF-MIB::ifOperStatus.4 = INTEGER: down(2)
 IF-MIB::ifLastChange.1 = Timeticks: (0) 0:00:00.00
 IF-MIB::ifLastChange.2 = Timeticks: (0) 0:00:00.00
 IF-MIB::ifLastChange.3 = Timeticks: (0) 0:00:00.00
 IF-MIB::ifLastChange.4 = Timeticks: (0) 0:00:00.00
 IF-MIB::ifInOctets.1 = Counter32: 37919437
 IF-MIB::ifInOctets.2 = Counter32: 0
 IF-MIB::ifInOctets.3 = Counter32: 1491657594
 IF-MIB::ifInOctets.4 = Counter32: 0
 IF-MIB::ifInUcastPkts.1 = Counter32: 335932
 IF-MIB::ifInUcastPkts.2 = Counter32: 0
 IF-MIB::ifInUcastPkts.3 = Counter32: 162961409
 IF-MIB::ifInUcastPkts.4 = Counter32: 0
 IF-MIB::ifInNUcastPkts.1 = Counter32: 0
 IF-MIB::ifInNUcastPkts.2 = Counter32: 0
 IF-MIB::ifInNUcastPkts.3 = Counter32: 131166
 IF-MIB::ifInNUcastPkts.4 = Counter32: 0
 IF-MIB::ifInDiscards.1 = Counter32: 0
 IF-MIB::ifInDiscards.2 = Counter32: 0
 IF-MIB::ifInDiscards.3 = Counter32: 0
 IF-MIB::ifInDiscards.4 = Counter32: 0
 IF-MIB::ifInErrors.1 = Counter32: 0
 IF-MIB::ifInErrors.2 = Counter32: 0
 IF-MIB::ifInErrors.3 = Counter32: 0
 IF-MIB::ifInErrors.4 = Counter32: 0
 IF-MIB::ifInUnknownProtos.1 = Counter32: 0
 IF-MIB::ifInUnknownProtos.2 = Counter32: 0
 IF-MIB::ifInUnknownProtos.3 = Counter32: 0
 IF-MIB::ifInUnknownProtos.4 = Counter32: 0
 IF-MIB::ifOutOctets.1 = Counter32: 37919437
 IF-MIB::ifOutOctets.2 = Counter32: 0
 IF-MIB::ifOutOctets.3 = Counter32: 3525337520
 IF-MIB::ifOutOctets.4 = Counter32: 0
 IF-MIB::ifOutUcastPkts.1 = Counter32: 335932
 IF-MIB::ifOutUcastPkts.2 = Counter32: 0
 IF-MIB::ifOutUcastPkts.3 = Counter32: 38811075
 IF-MIB::ifOutUcastPkts.4 = Counter32: 0
 IF-MIB::ifOutNUcastPkts.1 = Counter32: 0
 IF-MIB::ifOutNUcastPkts.2 = Counter32: 0
 IF-MIB::ifOutNUcastPkts.3 = Counter32: 0
 IF-MIB::ifOutNUcastPkts.4 = Counter32: 0
 IF-MIB::ifOutDiscards.1 = Counter32: 0
 IF-MIB::ifOutDiscards.2 = Counter32: 0
 IF-MIB::ifOutDiscards.3 = Counter32: 0
 IF-MIB::ifOutDiscards.4 = Counter32: 0
 IF-MIB::ifOutErrors.1 = Counter32: 0
 IF-MIB::ifOutErrors.2 = Counter32: 0
 IF-MIB::ifOutErrors.3 = Counter32: 0
 IF-MIB::ifOutErrors.4 = Counter32: 0
 IF-MIB::ifOutQLen.1 = Gauge32: 0
 IF-MIB::ifOutQLen.2 = Gauge32: 0
 IF-MIB::ifOutQLen.3 = Gauge32: 0
 IF-MIB::ifOutQLen.4 = Gauge32: 0
 IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero
 IF-MIB::ifSpecific.2 = OID: SNMPv2-SMI::zeroDotZero
 IF-MIB::ifSpecific.3 = OID: SNMPv2-SMI::zeroDotZero
 IF-MIB::ifSpecific.4 = OID: SNMPv2-SMI::zeroDotZero

 here You have information about interface descryptions, status, speed,
 type, etc.

 BR,
 Michał
 2009/11/27 Mr. James W. Laferriere bab...@baby-dragons.com:
 Hello Micha ( all) ,
 
  On Fri, 27 Nov 2009, michal kalinowski wrote:
 
  Your Digium card is for linux standard interface like eth0 (ethernet),
  check IF-MIB.txt and OID from there.
  BR,
  Micha?
 
 When doing a snmpwalk of the IF-MIB  having a (*) installed there
 is
  no mention of an interface associated with this card .  Now it is quite
  possible that Digium in there wisdom has added the necessary components
 to
  their drivers that inserts the necessary components into the IF tables
 thus
  allowing snmp's IF-MIB to see a 

Re: [asterisk-users] ASTERISK and SNMP

2009-11-27 Thread michal kalinowski
Yes I know about that :) at this moment i have only machine with
lo,eth0,eth1,sit0.
On monday I will check that command on the server with e1 card.

BR,
Michał

W dniu 27 listopada 2009 23:51 użytkownik mickael ropars
mrop...@gmail.com napisał:
 Michal,

 in the IF-MIB you only have 4 interfaces lo,eth0,eth1,sit0

 l0  which is the loopback interface
 eth0, eth1 : ethernet interface
 sit0 : use for PTP tunneling (use for IPv6)

 so no information on the digium interface.

 my IF MIB has also those interfaces

 I found one the solution to get status of the cards, and all snmp data. the
 solution is argus :
 http://argus.tcp4me.com/

 with this tools you can have a complete view of your system.

 regards

 Mickael

 2009/11/27 michal kalinowski michal.kalinow...@interia.pl

 Check this command snmpwalk -c your_community -v 1 localhost interfaces

 in my system it's looks like that:

 IF-MIB::ifNumber.0 = INTEGER: 4
 IF-MIB::ifIndex.1 = INTEGER: 1
 IF-MIB::ifIndex.2 = INTEGER: 2
 IF-MIB::ifIndex.3 = INTEGER: 3
 IF-MIB::ifIndex.4 = INTEGER: 4
 IF-MIB::ifDescr.1 = STRING: lo
 IF-MIB::ifDescr.2 = STRING: eth0
 IF-MIB::ifDescr.3 = STRING: eth1
 IF-MIB::ifDescr.4 = STRING: sit0
 IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
 IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
 IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
 IF-MIB::ifType.4 = INTEGER: tunnel(131)
 IF-MIB::ifMtu.1 = INTEGER: 16436
 IF-MIB::ifMtu.2 = INTEGER: 1500
 IF-MIB::ifMtu.3 = INTEGER: 1500
 IF-MIB::ifMtu.4 = INTEGER: 1480
 IF-MIB::ifSpeed.1 = Gauge32: 1000
 IF-MIB::ifSpeed.2 = Gauge32: 1000
 IF-MIB::ifSpeed.3 = Gauge32: 10
 IF-MIB::ifSpeed.4 = Gauge32: 0
 IF-MIB::ifPhysAddress.1 = STRING:
 IF-MIB::ifPhysAddress.2 = STRING: 0:14:5e:32:15:70
 IF-MIB::ifPhysAddress.3 = STRING: 0:14:5e:32:15:71
 IF-MIB::ifPhysAddress.4 = STRING:
 IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
 IF-MIB::ifAdminStatus.2 = INTEGER: down(2)
 IF-MIB::ifAdminStatus.3 = INTEGER: up(1)
 IF-MIB::ifAdminStatus.4 = INTEGER: down(2)
 IF-MIB::ifOperStatus.1 = INTEGER: up(1)
 IF-MIB::ifOperStatus.2 = INTEGER: down(2)
 IF-MIB::ifOperStatus.3 = INTEGER: up(1)
 IF-MIB::ifOperStatus.4 = INTEGER: down(2)
 IF-MIB::ifLastChange.1 = Timeticks: (0) 0:00:00.00
 IF-MIB::ifLastChange.2 = Timeticks: (0) 0:00:00.00
 IF-MIB::ifLastChange.3 = Timeticks: (0) 0:00:00.00
 IF-MIB::ifLastChange.4 = Timeticks: (0) 0:00:00.00
 IF-MIB::ifInOctets.1 = Counter32: 37919437
 IF-MIB::ifInOctets.2 = Counter32: 0
 IF-MIB::ifInOctets.3 = Counter32: 1491657594
 IF-MIB::ifInOctets.4 = Counter32: 0
 IF-MIB::ifInUcastPkts.1 = Counter32: 335932
 IF-MIB::ifInUcastPkts.2 = Counter32: 0
 IF-MIB::ifInUcastPkts.3 = Counter32: 162961409
 IF-MIB::ifInUcastPkts.4 = Counter32: 0
 IF-MIB::ifInNUcastPkts.1 = Counter32: 0
 IF-MIB::ifInNUcastPkts.2 = Counter32: 0
 IF-MIB::ifInNUcastPkts.3 = Counter32: 131166
 IF-MIB::ifInNUcastPkts.4 = Counter32: 0
 IF-MIB::ifInDiscards.1 = Counter32: 0
 IF-MIB::ifInDiscards.2 = Counter32: 0
 IF-MIB::ifInDiscards.3 = Counter32: 0
 IF-MIB::ifInDiscards.4 = Counter32: 0
 IF-MIB::ifInErrors.1 = Counter32: 0
 IF-MIB::ifInErrors.2 = Counter32: 0
 IF-MIB::ifInErrors.3 = Counter32: 0
 IF-MIB::ifInErrors.4 = Counter32: 0
 IF-MIB::ifInUnknownProtos.1 = Counter32: 0
 IF-MIB::ifInUnknownProtos.2 = Counter32: 0
 IF-MIB::ifInUnknownProtos.3 = Counter32: 0
 IF-MIB::ifInUnknownProtos.4 = Counter32: 0
 IF-MIB::ifOutOctets.1 = Counter32: 37919437
 IF-MIB::ifOutOctets.2 = Counter32: 0
 IF-MIB::ifOutOctets.3 = Counter32: 3525337520
 IF-MIB::ifOutOctets.4 = Counter32: 0
 IF-MIB::ifOutUcastPkts.1 = Counter32: 335932
 IF-MIB::ifOutUcastPkts.2 = Counter32: 0
 IF-MIB::ifOutUcastPkts.3 = Counter32: 38811075
 IF-MIB::ifOutUcastPkts.4 = Counter32: 0
 IF-MIB::ifOutNUcastPkts.1 = Counter32: 0
 IF-MIB::ifOutNUcastPkts.2 = Counter32: 0
 IF-MIB::ifOutNUcastPkts.3 = Counter32: 0
 IF-MIB::ifOutNUcastPkts.4 = Counter32: 0
 IF-MIB::ifOutDiscards.1 = Counter32: 0
 IF-MIB::ifOutDiscards.2 = Counter32: 0
 IF-MIB::ifOutDiscards.3 = Counter32: 0
 IF-MIB::ifOutDiscards.4 = Counter32: 0
 IF-MIB::ifOutErrors.1 = Counter32: 0
 IF-MIB::ifOutErrors.2 = Counter32: 0
 IF-MIB::ifOutErrors.3 = Counter32: 0
 IF-MIB::ifOutErrors.4 = Counter32: 0
 IF-MIB::ifOutQLen.1 = Gauge32: 0
 IF-MIB::ifOutQLen.2 = Gauge32: 0
 IF-MIB::ifOutQLen.3 = Gauge32: 0
 IF-MIB::ifOutQLen.4 = Gauge32: 0
 IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero
 IF-MIB::ifSpecific.2 = OID: SNMPv2-SMI::zeroDotZero
 IF-MIB::ifSpecific.3 = OID: SNMPv2-SMI::zeroDotZero
 IF-MIB::ifSpecific.4 = OID: SNMPv2-SMI::zeroDotZero

 here You have information about interface descryptions, status, speed,
 type, etc.

 BR,
 Michał
 2009/11/27 Mr. James W. Laferriere bab...@baby-dragons.com:
         Hello Micha ( all) ,
 
  On Fri, 27 Nov 2009, michal kalinowski wrote:
 
  Your Digium card is for linux standard interface like eth0 (ethernet),
  check IF-MIB.txt and OID from there.
  BR,
  Micha?
 
         When doing a snmpwalk of the IF-MIB  having a (*) installed
  there is
  no 

Re: [asterisk-users] ASTERISK and SNMP

2009-11-27 Thread mickael ropars
It will be the same, I already have 4 E1 interfaces. but no information in
the MIB

2009/11/28 michal kalinowski michal.kalinow...@interia.pl

 Yes I know about that :) at this moment i have only machine with
 lo,eth0,eth1,sit0.
 On monday I will check that command on the server with e1 card.

 BR,
 Michał

 W dniu 27 listopada 2009 23:51 użytkownik mickael ropars
 mrop...@gmail.com napisał:
  Michal,
 
  in the IF-MIB you only have 4 interfaces lo,eth0,eth1,sit0
 
  l0  which is the loopback interface
  eth0, eth1 : ethernet interface
  sit0 : use for PTP tunneling (use for IPv6)
 
  so no information on the digium interface.
 
  my IF MIB has also those interfaces
 
  I found one the solution to get status of the cards, and all snmp data.
 the
  solution is argus :
  http://argus.tcp4me.com/
 
  with this tools you can have a complete view of your system.
 
  regards
 
  Mickael
 
  2009/11/27 michal kalinowski michal.kalinow...@interia.pl
 
  Check this command snmpwalk -c your_community -v 1 localhost
 interfaces
 
  in my system it's looks like that:
 
  IF-MIB::ifNumber.0 = INTEGER: 4
  IF-MIB::ifIndex.1 = INTEGER: 1
  IF-MIB::ifIndex.2 = INTEGER: 2
  IF-MIB::ifIndex.3 = INTEGER: 3
  IF-MIB::ifIndex.4 = INTEGER: 4
  IF-MIB::ifDescr.1 = STRING: lo
  IF-MIB::ifDescr.2 = STRING: eth0
  IF-MIB::ifDescr.3 = STRING: eth1
  IF-MIB::ifDescr.4 = STRING: sit0
  IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
  IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
  IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
  IF-MIB::ifType.4 = INTEGER: tunnel(131)
  IF-MIB::ifMtu.1 = INTEGER: 16436
  IF-MIB::ifMtu.2 = INTEGER: 1500
  IF-MIB::ifMtu.3 = INTEGER: 1500
  IF-MIB::ifMtu.4 = INTEGER: 1480
  IF-MIB::ifSpeed.1 = Gauge32: 1000
  IF-MIB::ifSpeed.2 = Gauge32: 1000
  IF-MIB::ifSpeed.3 = Gauge32: 10
  IF-MIB::ifSpeed.4 = Gauge32: 0
  IF-MIB::ifPhysAddress.1 = STRING:
  IF-MIB::ifPhysAddress.2 = STRING: 0:14:5e:32:15:70
  IF-MIB::ifPhysAddress.3 = STRING: 0:14:5e:32:15:71
  IF-MIB::ifPhysAddress.4 = STRING:
  IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
  IF-MIB::ifAdminStatus.2 = INTEGER: down(2)
  IF-MIB::ifAdminStatus.3 = INTEGER: up(1)
  IF-MIB::ifAdminStatus.4 = INTEGER: down(2)
  IF-MIB::ifOperStatus.1 = INTEGER: up(1)
  IF-MIB::ifOperStatus.2 = INTEGER: down(2)
  IF-MIB::ifOperStatus.3 = INTEGER: up(1)
  IF-MIB::ifOperStatus.4 = INTEGER: down(2)
  IF-MIB::ifLastChange.1 = Timeticks: (0) 0:00:00.00
  IF-MIB::ifLastChange.2 = Timeticks: (0) 0:00:00.00
  IF-MIB::ifLastChange.3 = Timeticks: (0) 0:00:00.00
  IF-MIB::ifLastChange.4 = Timeticks: (0) 0:00:00.00
  IF-MIB::ifInOctets.1 = Counter32: 37919437
  IF-MIB::ifInOctets.2 = Counter32: 0
  IF-MIB::ifInOctets.3 = Counter32: 1491657594
  IF-MIB::ifInOctets.4 = Counter32: 0
  IF-MIB::ifInUcastPkts.1 = Counter32: 335932
  IF-MIB::ifInUcastPkts.2 = Counter32: 0
  IF-MIB::ifInUcastPkts.3 = Counter32: 162961409
  IF-MIB::ifInUcastPkts.4 = Counter32: 0
  IF-MIB::ifInNUcastPkts.1 = Counter32: 0
  IF-MIB::ifInNUcastPkts.2 = Counter32: 0
  IF-MIB::ifInNUcastPkts.3 = Counter32: 131166
  IF-MIB::ifInNUcastPkts.4 = Counter32: 0
  IF-MIB::ifInDiscards.1 = Counter32: 0
  IF-MIB::ifInDiscards.2 = Counter32: 0
  IF-MIB::ifInDiscards.3 = Counter32: 0
  IF-MIB::ifInDiscards.4 = Counter32: 0
  IF-MIB::ifInErrors.1 = Counter32: 0
  IF-MIB::ifInErrors.2 = Counter32: 0
  IF-MIB::ifInErrors.3 = Counter32: 0
  IF-MIB::ifInErrors.4 = Counter32: 0
  IF-MIB::ifInUnknownProtos.1 = Counter32: 0
  IF-MIB::ifInUnknownProtos.2 = Counter32: 0
  IF-MIB::ifInUnknownProtos.3 = Counter32: 0
  IF-MIB::ifInUnknownProtos.4 = Counter32: 0
  IF-MIB::ifOutOctets.1 = Counter32: 37919437
  IF-MIB::ifOutOctets.2 = Counter32: 0
  IF-MIB::ifOutOctets.3 = Counter32: 3525337520
  IF-MIB::ifOutOctets.4 = Counter32: 0
  IF-MIB::ifOutUcastPkts.1 = Counter32: 335932
  IF-MIB::ifOutUcastPkts.2 = Counter32: 0
  IF-MIB::ifOutUcastPkts.3 = Counter32: 38811075
  IF-MIB::ifOutUcastPkts.4 = Counter32: 0
  IF-MIB::ifOutNUcastPkts.1 = Counter32: 0
  IF-MIB::ifOutNUcastPkts.2 = Counter32: 0
  IF-MIB::ifOutNUcastPkts.3 = Counter32: 0
  IF-MIB::ifOutNUcastPkts.4 = Counter32: 0
  IF-MIB::ifOutDiscards.1 = Counter32: 0
  IF-MIB::ifOutDiscards.2 = Counter32: 0
  IF-MIB::ifOutDiscards.3 = Counter32: 0
  IF-MIB::ifOutDiscards.4 = Counter32: 0
  IF-MIB::ifOutErrors.1 = Counter32: 0
  IF-MIB::ifOutErrors.2 = Counter32: 0
  IF-MIB::ifOutErrors.3 = Counter32: 0
  IF-MIB::ifOutErrors.4 = Counter32: 0
  IF-MIB::ifOutQLen.1 = Gauge32: 0
  IF-MIB::ifOutQLen.2 = Gauge32: 0
  IF-MIB::ifOutQLen.3 = Gauge32: 0
  IF-MIB::ifOutQLen.4 = Gauge32: 0
  IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero
  IF-MIB::ifSpecific.2 = OID: SNMPv2-SMI::zeroDotZero
  IF-MIB::ifSpecific.3 = OID: SNMPv2-SMI::zeroDotZero
  IF-MIB::ifSpecific.4 = OID: SNMPv2-SMI::zeroDotZero
 
  here You have information about interface descryptions, status, speed,
  type, etc.
 
  BR,
  Michał
  2009/11/27 Mr. James W. Laferriere bab...@baby-dragons.com:
  Hello Micha ( 

Re: [asterisk-users] ASTERISK and SNMP

2009-11-27 Thread michal kalinowski
What do You have in ifconfig ?

BR,
Michał

W dniu 28 listopada 2009 00:11 użytkownik mickael ropars
mrop...@gmail.com napisał:
 It will be the same, I already have 4 E1 interfaces. but no information in
 the MIB

 2009/11/28 michal kalinowski michal.kalinow...@interia.pl

 Yes I know about that :) at this moment i have only machine with
 lo,eth0,eth1,sit0.
 On monday I will check that command on the server with e1 card.

 BR,
 Michał

 W dniu 27 listopada 2009 23:51 użytkownik mickael ropars
 mrop...@gmail.com napisał:
  Michal,
 
  in the IF-MIB you only have 4 interfaces lo,eth0,eth1,sit0
 
  l0  which is the loopback interface
  eth0, eth1 : ethernet interface
  sit0 : use for PTP tunneling (use for IPv6)
 
  so no information on the digium interface.
 
  my IF MIB has also those interfaces
 
  I found one the solution to get status of the cards, and all snmp data.
  the
  solution is argus :
  http://argus.tcp4me.com/
 
  with this tools you can have a complete view of your system.
 
  regards
 
  Mickael
 
  2009/11/27 michal kalinowski michal.kalinow...@interia.pl
 
  Check this command snmpwalk -c your_community -v 1 localhost
  interfaces
 
  in my system it's looks like that:
 
  IF-MIB::ifNumber.0 = INTEGER: 4
  IF-MIB::ifIndex.1 = INTEGER: 1
  IF-MIB::ifIndex.2 = INTEGER: 2
  IF-MIB::ifIndex.3 = INTEGER: 3
  IF-MIB::ifIndex.4 = INTEGER: 4
  IF-MIB::ifDescr.1 = STRING: lo
  IF-MIB::ifDescr.2 = STRING: eth0
  IF-MIB::ifDescr.3 = STRING: eth1
  IF-MIB::ifDescr.4 = STRING: sit0
  IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
  IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
  IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
  IF-MIB::ifType.4 = INTEGER: tunnel(131)
  IF-MIB::ifMtu.1 = INTEGER: 16436
  IF-MIB::ifMtu.2 = INTEGER: 1500
  IF-MIB::ifMtu.3 = INTEGER: 1500
  IF-MIB::ifMtu.4 = INTEGER: 1480
  IF-MIB::ifSpeed.1 = Gauge32: 1000
  IF-MIB::ifSpeed.2 = Gauge32: 1000
  IF-MIB::ifSpeed.3 = Gauge32: 10
  IF-MIB::ifSpeed.4 = Gauge32: 0
  IF-MIB::ifPhysAddress.1 = STRING:
  IF-MIB::ifPhysAddress.2 = STRING: 0:14:5e:32:15:70
  IF-MIB::ifPhysAddress.3 = STRING: 0:14:5e:32:15:71
  IF-MIB::ifPhysAddress.4 = STRING:
  IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
  IF-MIB::ifAdminStatus.2 = INTEGER: down(2)
  IF-MIB::ifAdminStatus.3 = INTEGER: up(1)
  IF-MIB::ifAdminStatus.4 = INTEGER: down(2)
  IF-MIB::ifOperStatus.1 = INTEGER: up(1)
  IF-MIB::ifOperStatus.2 = INTEGER: down(2)
  IF-MIB::ifOperStatus.3 = INTEGER: up(1)
  IF-MIB::ifOperStatus.4 = INTEGER: down(2)
  IF-MIB::ifLastChange.1 = Timeticks: (0) 0:00:00.00
  IF-MIB::ifLastChange.2 = Timeticks: (0) 0:00:00.00
  IF-MIB::ifLastChange.3 = Timeticks: (0) 0:00:00.00
  IF-MIB::ifLastChange.4 = Timeticks: (0) 0:00:00.00
  IF-MIB::ifInOctets.1 = Counter32: 37919437
  IF-MIB::ifInOctets.2 = Counter32: 0
  IF-MIB::ifInOctets.3 = Counter32: 1491657594
  IF-MIB::ifInOctets.4 = Counter32: 0
  IF-MIB::ifInUcastPkts.1 = Counter32: 335932
  IF-MIB::ifInUcastPkts.2 = Counter32: 0
  IF-MIB::ifInUcastPkts.3 = Counter32: 162961409
  IF-MIB::ifInUcastPkts.4 = Counter32: 0
  IF-MIB::ifInNUcastPkts.1 = Counter32: 0
  IF-MIB::ifInNUcastPkts.2 = Counter32: 0
  IF-MIB::ifInNUcastPkts.3 = Counter32: 131166
  IF-MIB::ifInNUcastPkts.4 = Counter32: 0
  IF-MIB::ifInDiscards.1 = Counter32: 0
  IF-MIB::ifInDiscards.2 = Counter32: 0
  IF-MIB::ifInDiscards.3 = Counter32: 0
  IF-MIB::ifInDiscards.4 = Counter32: 0
  IF-MIB::ifInErrors.1 = Counter32: 0
  IF-MIB::ifInErrors.2 = Counter32: 0
  IF-MIB::ifInErrors.3 = Counter32: 0
  IF-MIB::ifInErrors.4 = Counter32: 0
  IF-MIB::ifInUnknownProtos.1 = Counter32: 0
  IF-MIB::ifInUnknownProtos.2 = Counter32: 0
  IF-MIB::ifInUnknownProtos.3 = Counter32: 0
  IF-MIB::ifInUnknownProtos.4 = Counter32: 0
  IF-MIB::ifOutOctets.1 = Counter32: 37919437
  IF-MIB::ifOutOctets.2 = Counter32: 0
  IF-MIB::ifOutOctets.3 = Counter32: 3525337520
  IF-MIB::ifOutOctets.4 = Counter32: 0
  IF-MIB::ifOutUcastPkts.1 = Counter32: 335932
  IF-MIB::ifOutUcastPkts.2 = Counter32: 0
  IF-MIB::ifOutUcastPkts.3 = Counter32: 38811075
  IF-MIB::ifOutUcastPkts.4 = Counter32: 0
  IF-MIB::ifOutNUcastPkts.1 = Counter32: 0
  IF-MIB::ifOutNUcastPkts.2 = Counter32: 0
  IF-MIB::ifOutNUcastPkts.3 = Counter32: 0
  IF-MIB::ifOutNUcastPkts.4 = Counter32: 0
  IF-MIB::ifOutDiscards.1 = Counter32: 0
  IF-MIB::ifOutDiscards.2 = Counter32: 0
  IF-MIB::ifOutDiscards.3 = Counter32: 0
  IF-MIB::ifOutDiscards.4 = Counter32: 0
  IF-MIB::ifOutErrors.1 = Counter32: 0
  IF-MIB::ifOutErrors.2 = Counter32: 0
  IF-MIB::ifOutErrors.3 = Counter32: 0
  IF-MIB::ifOutErrors.4 = Counter32: 0
  IF-MIB::ifOutQLen.1 = Gauge32: 0
  IF-MIB::ifOutQLen.2 = Gauge32: 0
  IF-MIB::ifOutQLen.3 = Gauge32: 0
  IF-MIB::ifOutQLen.4 = Gauge32: 0
  IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero
  IF-MIB::ifSpecific.2 = OID: SNMPv2-SMI::zeroDotZero
  IF-MIB::ifSpecific.3 = OID: SNMPv2-SMI::zeroDotZero
  IF-MIB::ifSpecific.4 = OID: SNMPv2-SMI::zeroDotZero
 
  here You have information about interface 

Re: [asterisk-users] ASTERISK and SNMP

2009-11-27 Thread Mr. James W. Laferriere
Hello Mickael ,

On Fri, 27 Nov 2009, mickael ropars wrote:
 Michal,

 in the IF-MIB you only have 4 interfaces lo,eth0,eth1,sit0

 l0  which is the loopback interface
 eth0, eth1 : ethernet interface
 sit0 : use for PTP tunneling (use for IPv6)

 so no information on the digium interface.

 my IF MIB has also those interfaces

 I found one the solution to get status of the cards, and all snmp data. the
 solution is argus :
 http://argus.tcp4me.com/

 with this tools you can have a complete view of your system.
 regards
 Mickael

While Argus is quite good at monitoring systems and is rather easy to 
manage .  In the case of Asterisk monitoring it uses the Asterisk Management 
Interface (ie: AMI)  not snmp .

I was( and still am) hoping that the same information available to the 
administrator thru the AMI can/will be made available thru snmp polling  traps 
.  It should not be too difficult to make net-snmp's daemon make those 
connections to AMI locally on the asterisk server  then report that data back 
to the snmp client .  But everytime I've tried to expand snmpd's functionality 
I've hit nothing but failures .

Twyl ,  JimL

 2009/11/27 michal kalinowski michal.kalinow...@interia.pl
 Check this command snmpwalk -c your_community -v 1 localhost interfaces

 in my system it's looks like that:

 IF-MIB::ifNumber.0 = INTEGER: 4
 IF-MIB::ifIndex.1 = INTEGER: 1
 IF-MIB::ifIndex.2 = INTEGER: 2
 IF-MIB::ifIndex.3 = INTEGER: 3
 IF-MIB::ifIndex.4 = INTEGER: 4
 IF-MIB::ifDescr.1 = STRING: lo
 IF-MIB::ifDescr.2 = STRING: eth0
 IF-MIB::ifDescr.3 = STRING: eth1
 IF-MIB::ifDescr.4 = STRING: sit0
 IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
 IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
 IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
 IF-MIB::ifType.4 = INTEGER: tunnel(131)
 IF-MIB::ifMtu.1 = INTEGER: 16436
 IF-MIB::ifMtu.2 = INTEGER: 1500
 IF-MIB::ifMtu.3 = INTEGER: 1500
 IF-MIB::ifMtu.4 = INTEGER: 1480
 IF-MIB::ifSpeed.1 = Gauge32: 1000
 IF-MIB::ifSpeed.2 = Gauge32: 1000
 IF-MIB::ifSpeed.3 = Gauge32: 10
 IF-MIB::ifSpeed.4 = Gauge32: 0
 IF-MIB::ifPhysAddress.1 = STRING:
 IF-MIB::ifPhysAddress.2 = STRING: 0:14:5e:32:15:70
 IF-MIB::ifPhysAddress.3 = STRING: 0:14:5e:32:15:71
 IF-MIB::ifPhysAddress.4 = STRING:
 IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
 IF-MIB::ifAdminStatus.2 = INTEGER: down(2)
 IF-MIB::ifAdminStatus.3 = INTEGER: up(1)
 IF-MIB::ifAdminStatus.4 = INTEGER: down(2)
 IF-MIB::ifOperStatus.1 = INTEGER: up(1)
 IF-MIB::ifOperStatus.2 = INTEGER: down(2)
 IF-MIB::ifOperStatus.3 = INTEGER: up(1)
 IF-MIB::ifOperStatus.4 = INTEGER: down(2)
 IF-MIB::ifLastChange.1 = Timeticks: (0) 0:00:00.00
 IF-MIB::ifLastChange.2 = Timeticks: (0) 0:00:00.00
 IF-MIB::ifLastChange.3 = Timeticks: (0) 0:00:00.00
 IF-MIB::ifLastChange.4 = Timeticks: (0) 0:00:00.00
 IF-MIB::ifInOctets.1 = Counter32: 37919437
 IF-MIB::ifInOctets.2 = Counter32: 0
 IF-MIB::ifInOctets.3 = Counter32: 1491657594
 IF-MIB::ifInOctets.4 = Counter32: 0
 IF-MIB::ifInUcastPkts.1 = Counter32: 335932
 IF-MIB::ifInUcastPkts.2 = Counter32: 0
 IF-MIB::ifInUcastPkts.3 = Counter32: 162961409
 IF-MIB::ifInUcastPkts.4 = Counter32: 0
 IF-MIB::ifInNUcastPkts.1 = Counter32: 0
 IF-MIB::ifInNUcastPkts.2 = Counter32: 0
 IF-MIB::ifInNUcastPkts.3 = Counter32: 131166
 IF-MIB::ifInNUcastPkts.4 = Counter32: 0
 IF-MIB::ifInDiscards.1 = Counter32: 0
 IF-MIB::ifInDiscards.2 = Counter32: 0
 IF-MIB::ifInDiscards.3 = Counter32: 0
 IF-MIB::ifInDiscards.4 = Counter32: 0
 IF-MIB::ifInErrors.1 = Counter32: 0
 IF-MIB::ifInErrors.2 = Counter32: 0
 IF-MIB::ifInErrors.3 = Counter32: 0
 IF-MIB::ifInErrors.4 = Counter32: 0
 IF-MIB::ifInUnknownProtos.1 = Counter32: 0
 IF-MIB::ifInUnknownProtos.2 = Counter32: 0
 IF-MIB::ifInUnknownProtos.3 = Counter32: 0
 IF-MIB::ifInUnknownProtos.4 = Counter32: 0
 IF-MIB::ifOutOctets.1 = Counter32: 37919437
 IF-MIB::ifOutOctets.2 = Counter32: 0
 IF-MIB::ifOutOctets.3 = Counter32: 3525337520
 IF-MIB::ifOutOctets.4 = Counter32: 0
 IF-MIB::ifOutUcastPkts.1 = Counter32: 335932
 IF-MIB::ifOutUcastPkts.2 = Counter32: 0
 IF-MIB::ifOutUcastPkts.3 = Counter32: 38811075
 IF-MIB::ifOutUcastPkts.4 = Counter32: 0
 IF-MIB::ifOutNUcastPkts.1 = Counter32: 0
 IF-MIB::ifOutNUcastPkts.2 = Counter32: 0
 IF-MIB::ifOutNUcastPkts.3 = Counter32: 0
 IF-MIB::ifOutNUcastPkts.4 = Counter32: 0
 IF-MIB::ifOutDiscards.1 = Counter32: 0
 IF-MIB::ifOutDiscards.2 = Counter32: 0
 IF-MIB::ifOutDiscards.3 = Counter32: 0
 IF-MIB::ifOutDiscards.4 = Counter32: 0
 IF-MIB::ifOutErrors.1 = Counter32: 0
 IF-MIB::ifOutErrors.2 = Counter32: 0
 IF-MIB::ifOutErrors.3 = Counter32: 0
 IF-MIB::ifOutErrors.4 = Counter32: 0
 IF-MIB::ifOutQLen.1 = Gauge32: 0
 IF-MIB::ifOutQLen.2 = Gauge32: 0
 IF-MIB::ifOutQLen.3 = Gauge32: 0
 IF-MIB::ifOutQLen.4 = Gauge32: 0
 IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero
 IF-MIB::ifSpecific.2 = OID: SNMPv2-SMI::zeroDotZero
 IF-MIB::ifSpecific.3 = OID: SNMPv2-SMI::zeroDotZero
 IF-MIB::ifSpecific.4 = OID: 

[asterisk-users] asterisk and snmp

2007-05-19 Thread Pezhman Lali
dear
is any snmp access , for asterisk 1.2.* ?



   
Boardwalk
 for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's 
economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users