From: Schwimmer, E. E *H. <EE...@hs...> - 2006-03-02 14:11:21
|
The documentation could be at fault. I don't think I really mention anywhere that the --readbbhosts flag causes Devmon to exit after reading in the bb-hosts file. Comments? -Eric > -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Dan Vande More > Sent: Wednesday, March 01, 2006 9:37 PM > To: dev...@li... > Subject: Re: [Devmon] problem getting devmon to work >=20 > Holy cow, that was the problem. I can't believe I misinterpreted that. > Everything seems to be working now, thanks. >=20 > -Dan >=20 > On 3/1/06, Schwimmer, Eric E *HS=20 > <EE...@hs...> wrote: > > > > Hi Dan, > > > > I *think* the problem that you are having is that you are > > running devmon with the --readbbhosts flag; this flag tells > > devmon to read the bbhosts file into the database and then quit, > > which I what I think is happening here. > > > > Try running it like this: > > ./devmon -vv -p > > (the -p flag implies -f as welli, I should probably document that :) > > > > If you've previously run devmon with the --readbbhosts flag, and > > devmon has created the hosts.db file in the devmon=20 > directory, then it > > should read in from that file, poll your hosts, do the=20 > logic, and spit > > out your message. > > > > The design reasoning behind the --readbbhosts flag, and why I didnt > > just make devmon read the bbhosts file every poll cycle, is twofold > > (you can probably skip reading this, I just like typing): > > > > 1) The fact that running a multi-node cluster, you probably=20 > dont want > > to run the devmon process on your display machine, but want=20 > to farm it > > out to dedicated devmon polling servers. The readbbhosts flag makes > > it so that you can import your bb-hosts file into the=20 > cluster database, > > without having to actually run devmon on the display machine. > > > > 2) Reading the bb-hosts file and querying the hosts takes a=20 > little while, > > since devmon queries every host in the bb-hosts file, every=20 > time (making > > no assumptions as to whether hosts that were there during the last > > auto-discovery are the same hosts that are there on this=20 > one; people > > have been known to swap out devices with different=20 > vendor/models and not > > change the bb-hosts ip or hostname). So I didnt want this=20 > auto-discovery > > phase to interfere with polling times. > > > > -Eric > > > > -----Original Message----- > > From: dev...@li... on behalf=20 > of Dan Vande More > > Sent: Wed 3/1/2006 4:18 PM > > To: dev...@li... > > Subject: [Devmon] problem getting devmon to work > > > > My devmon is close, but still not working. Here's what I've done: > > > > Made a new template for a cisco 7609, just changed the=20 > spec, is about > > all - it's just like a 6509. > > > > Put devmon next to the appropriate line in bb-hosts, like this: > > > > <ip> gsr-east.domain # ssh !telnet DEVMON > > > > Configured my devmon.cfg: > > > > MULTINODE=3DNO > > BBHOSTS=3D/home/monitor/server/etc/bb-hosts > > BBTAG=3DDEVMON > > SNMPCIDS=3Dmycid,public,private > > NODENAME=3DHOSTNAME > > PIDFILE=3D/var/run/devmon/devmon.pid > > LOGFILE=3D/var/log/hobbit/devmon.log > > DBHOST=3Dlocalhost > > DBNAME=3Ddevmon > > DBUSER=3Ddevmon > > DBPASS=3Ddevmon > > BBTYPE=3Dhobbit > > DISPSERV=3Dlocalhost > > DISPPORT=3D1984 > > MSGSIZE=3D8096 > > MSGSLEEP=3D10 > > CYCLETIME=3D60 > > DEADTIME=3D180 > > CLEARTIME=3D180 > > NUMFORKS=3D10 > > MAXPOLLTIME=3D30 > > SNMPTIMEOUT=3D2 > > SNMPTRIES=3D5 > > > > And run this: > > > > $ sudo -u monitor ./devmon -vvvvv -p -f --readbbhosts > > [06-03-01@15:15:32] SNMP querying all hosts in bb-hosts=20 > file, please wait... > > [06-03-01@15:15:32] Querying pre-existing hosts > > [06-03-01@15:15:32] Discovered gsr-east.domain as a cisco 7609 > > > > And that's all I get. I thought I'd be getting the same=20 > messages it's > > sending hobbit, but i'm not seeing them. > > > > What am I doing wrong? > > > > Thanks > > > > Dan > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by xPML, a groundbreaking=20 > scripting language > > that extends applications into web and mobile media. Attend=20 > the live webcast > > and join the prime developer group breaking into this new=20 > coding territory! > > = http://sel.as-us.falkag.net/sel?cmd=3Dk&kid=110944&bid$1720&dat=121642 > > _______________________________________________ > > Devmon-support mailing list > > Dev...@li... > > https://lists.sourceforge.net/lists/listinfo/devmon-support > > > > > > >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking=20 > scripting language > that extends applications into web and mobile media. Attend=20 > the live webcast > and join the prime developer group breaking into this new=20 > coding territory! > http://sel.as-us.falkag.net/sel?cmd=3Dk&kid=110944&bid$1720&dat=121642 > _______________________________________________ > Devmon-support mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/devmon-support >=20 |