From: Naudit007 <mai...@gm...> - 2008-06-19 06:07:03
|
> 2. How do I create new templates for routers that I > don't have templates for? >Start off with cp -a $similar_template $new_template and read RTFM :) for create the template >Have a MIB browser (or the MIB) and snmpwalk output on one screen ... Here all MIBS : http://www.oidview.com/mibs/detail.html And for explore your equipment MIB use Mib Browser Ireasonning and load your equipment mib: http://www.ireasoning.com/ If you join devmon with /etc/init.d/hobbit-server here's how do : --------------------------------------------------------------------------- #!/bin/bash USER_HOBBIT="hobbit" PROG_PATH=`echo ~hobbit` function EyeCandy() { sleep 0.5; echo -n ".";sleep 0.5; echo -n ".";sleep 0.5; echo -n ". : "; } function StartDevMon() { echo -n "Demarrage de Hobbit Server SNMP support : Devmon" EyeCandy su ${USER_HOBBIT} -c "${PROG_PATH}/application/server/ext/devmon/devmon" eval "CODERETOUR=$?" } function StopDevMon() { echo -n "Arret de Hobbit Server SNMP support : Devmon" EyeCandy killall -q /usr/bin/perl killall -q -s 9 devmon eval "CODERETOUR=$?" } case "$1" in start) echo -n "Demarrage de Hobbit Server" EyeCandy su ${USER_HOBBIT} -c "${PROG_PATH}/application/server/bin/hobbit.sh start" StartDevMon [ "${CODERETOUR}" = 0 ] && echo -e "\t \t \t[OK]"; ;; stop) echo -n "Arret de Hobbit Server" EyeCandy su ${USER_HOBBIT} -c "${PROG_PATH}/application/server/bin/hobbit.sh stop" StopDevMon [ "${CODERETOUR}" = 0 ] && echo -e "\t \t \t [OK]"; ;; restart) echo -n "Demarrage de Hobbit Server" su ${USER_HOBBIT} -c "${PROG_PATH}/application/server/bin/hobbit.sh restart" [ "$?" = 0 ] && echo -e "\t \t \t [OK]"; StopDevMon [ "${CODERETOUR}" = 0 ] && echo -e "\t \t \t[OK]"; StartDevMon [ "${CODERETOUR}" = 0 ] && echo -e "\t \t \t [OK]"; ;; status) su ${USER_HOBBIT} -c "${PROG_PATH}/application/server/bin/hobbit.sh status" ;; *) echo "Usage: $NAME {start|stop|restart|status}" >&2 exit 3 ;; esac -------------------------------------------------------------------------------------- Good luck ;) Regards 2008/6/18 Buchan Milne <bg...@st...>: > On Wednesday 18 June 2008 18:23:24 Jeffrey Parker wrote: > > Hello, > > > > I have been using DevMon for a while now to monitor my Cisco > > routers under Hobbit. I guess I'm being dense, but there are a few > > things I can't figure out: > > > > 1. If you have multiple routers of the same type that > > you already have templates for, how do you differentiate them if they > > require different monitoring parameters (exclusions, etc.)? > > At present, I do it via the DEVMON tag in the bb-hosts file > > > 2. How do I create new templates for routers that I > > don't have templates for? > > Start off with cp -a $similar_template $new_template > > Have a MIB browser (or the MIB) and snmpwalk output on one screen ... > > > I know there are instructions, but it's not > > clear to me how to create them so it knows that when I start > > monitoring a new > > type (Cisco 12000 series for example), how does > > DevMon know that when the device is queried, that this device is > > indeed a 12000 Cisco? > > regex match on the Sysdescr OID to the sysdesc value in the specs file. > > > Where is that information kept in the template? > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Devmon-support mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/devmon-support > -- <mailinglist.benoit - at - gmail!com> |