Michal<br><br>please wait I found some issues in my con file<br><br><div class="gmail_quote">2009/11/27 mickael ropars <span dir="ltr"><<a href="mailto:mropars@gmail.com" target="_blank">mropars@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am running on Trixbox so my OS is Cent0S 5.4 and the Asterisk version is <span>1.4.22-4</span><br><br>on asterisk side Snmp module is running:<br><br>> module load res_snmp.so<br> == Parsing '/etc/asterisk/res_snmp.conf': Found<br>
Loading [Sub]Agent Module<br> Loaded res_snmp.so => (SNMP [Sub]Agent for Asterisk)<br><br>see below my snmpd.conf file (I remove commented line for an easy reading)<br><br>regards<br><br>Mickael<br><br><br><br><br>###############################################################################<br>
# Access Control<br>###############################################################################<br><br>####<br># First, map the community name (COMMUNITY) into a security name<br># (local and mynetwork, depending on where the request is coming<br>
# from):<br><br># <a href="http://sec.name" target="_blank">sec.name</a> source community<br>com2sec local localhost COMMUNITY<br>com2sec mynetwork NETWORK/24 COMMUNITY<br><br><br>rwcommunity local<br>
rocommunity local<br>
<br>####<br># Second, map the security names into group names:<br><br># sec.model <a href="http://sec.name" target="_blank">sec.name</a><br>group MyRWGroup v1 local<br>group MyRWGroup v2c local<br>
group MyRWGroup usm local<br>
group MyROGroup v1 mynetwork<br>group MyROGroup v2c mynetwork<br>group MyROGroup usm mynetwork<br><br>####<br># Third, create a view for us to let the groups have rights to:<br><br># incl/excl subtree mask<br>
view all included .1 80<br><br>####<br># Finally, grant the 2 groups access to the 1 view with different<br># write permissions:<br><br># context sec.model sec.level match read write notif<br>
access MyROGroup "" any noauth exact all none none<br>access MyRWGroup "" any noauth exact all all none<br><br><br>###############################################################################<br>
# System contact information<br>#<br><br>syslocation Right here, right now.<br>syscontact Me <<a href="mailto:me@somewhere.org" target="_blank">me@somewhere.org</a>><br><br><br><br>###############################################################################<br>
# Process checks.<br>#<br># Make sure mountd is running<br>proc mountd<br><br># Make sure there are no more than 4 ntalkds running, but 0 is ok too.<br>proc ntalkd 4<br><br># Make sure at least one sendmail, but less than or equal to 10 are running.<br>
proc sendmail 10 1<br><br><br>###############################################################################<br># Executables/scripts<br>#<br><br># a simple hello world<br>exec echotest /bin/echo hello world<br><br>###############################################################################<br>
# disk checks<br>#<br><br>disk / 10000<br><br><br>###############################################################################<br># load average checks<br>#<br><br># Check for loads:<br>load 12 14 14<br><br><br>###############################################################################<br>
# Extensible sections.<br>#<br><br><br><br>###############################################################################<br># Pass through control.<br>#<br><br>###############################################################################<br>
# Subagent control<div><br>#<br><br>master agentx<br>agentXperms 0660 0550 nobody asterisk<br>SNMPD_FLAGS="${SNMPD_FLAGS} -x /var/agentx/master"<br>mibs +ASTERISK-MIB<br><br></div>###############################################################################<br>
# Further Information<div><div></div><div><br><br><br><br><br><div class="gmail_quote">2009/11/27 michal kalinowski <span dir="ltr"><<a href="mailto:michal.kalinowski@interia.pl" target="_blank">michal.kalinowski@interia.pl</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
What operating system do You have ? What asterisk version You compile ?<br>
After install net-snmp do You recompile asterisk with res_snmp module ?<br>
<br>
I'm used instruction from here<br>
<a href="http://voxilla.com/2009/02/03/configuring-asterisk-snmp-support-1131" target="_blank">http://voxilla.com/2009/02/03/configuring-asterisk-snmp-support-1131</a><br>
and everything work correctly.<br>
<br>
BR,<br>
Micha³<br>
W dniu 27 listopada 2009 11:18 u¿ytkownik mickael ropars<br>
<<a href="mailto:mropars@gmail.com" target="_blank">mropars@gmail.com</a>> napisa³:<br>
<div><div></div><div>> Hi Michal,<br>
><br>
> thanks a lot for you quick answer I appreciate.<br>
><br>
> I run your commands and I have the following answer<br>
><br>
> [localhost snmp]# snmpwalk -c local -v 1 localhost asterisk<br>
> no answer<br>
><br>
> [localhost snmp]# snmpwalk -c local -v 2c localhost asterisk<br>
> ASTERISK-MIB::asterisk = No Such Object available on this agent at this OID<br>
><br>
><br>
> since I don't know well snmp what's going wrong ?<br>
><br>
> regards<br>
><br>
> Mickael<br>
><br>
><br>
><br>
> 2009/11/27 michal kalinowski <<a href="mailto:michal.kalinowski@interia.pl" target="_blank">michal.kalinowski@interia.pl</a>><br>
>><br>
>> Hello Mickael<br>
>><br>
>> Here You have the snmpd.conf file<br>
>><br>
>> cat /etc/snmp/snmpd.conf<br>
>> rocommunity your_community<br>
>> master agentx<br>
>> agentXperms 0660 0550 nobody asterisk<br>
>> SNMPD_FLAGS="${SNMPD_FLAGS} -x /var/agentx/master"<br>
>> mibs +ASTERISK-MIB<br>
>><br>
>> and also you need create file /etc/snmp/snmp.conf with following entry<br>
>> "mibs +ASTERISK-MIB"<br>
>><br>
>> cat /etc/snmp/snmp.conf<br>
>> mibs +ASTERISK-MIB<br>
>><br>
>> Next use command "snmpwalk -c your_community -v 1 localhost asterisk"<br>
>> to check is everything correct.<br>
>><br>
>><br>
>><br>
>> Micha³<br>
>><br>
>> 2009/11/27 mickael ropars <<a href="mailto:mropars@gmail.com" target="_blank">mropars@gmail.com</a>>:<br>
>> > Hi all,<br>
>> ><br>
>> > I am currently not able to configure SNMP for asterisk, but I am not<br>
>> > able to<br>
>> > acess to the asterisk MIB (the asterisk MIB is in /usr/share/snmp/mibs/)<br>
>> ><br>
>> ><br>
>> > Does somebody has an example of smnpd.conf file wich is working ?<br>
>> ><br>
>> > regards<br>
>> ><br>
>> > Mickael<br>
>> ><br>
>> > _______________________________________________<br>
>> > -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
>> ><br>
>> > asterisk-users mailing list<br>
>> > To UNSUBSCRIBE or update options visit:<br>
>> > <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
>> ><br>
>><br>
>> _______________________________________________<br>
>> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
>><br>
>> asterisk-users mailing list<br>
>> To UNSUBSCRIBE or update options visit:<br>
>> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
><br>
><br>
> _______________________________________________<br>
> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
><br>
> asterisk-users mailing list<br>
> To UNSUBSCRIBE or update options visit:<br>
> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
><br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>