From: Schwimmer, E. E *H. <EE...@hs...> - 2006-03-02 02:10:09
|
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:=20 ./devmon -vv -p=20 (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 directory, then it should read in from that file, poll your hosts, do the logic, and spit out your message. The design reasoning behind the --readbbhosts flag, and why I didnt=20 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 dont want to run the devmon process on your display machine, but want to farm it out to dedicated devmon polling servers. The readbbhosts flag makes=20 it so that you can import your bb-hosts file into the cluster database, without having to actually run devmon on the display machine. 2) Reading the bb-hosts file and querying the hosts takes a little = while, since devmon queries every host in the bb-hosts file, every time (making no assumptions as to whether hosts that were there during the last=20 auto-discovery are the same hosts that are there on this one; people=20 have been known to swap out devices with different vendor/models and not change the bb-hosts ip or hostname). So I didnt want this = auto-discovery phase to interfere with polling times. =20 -Eric -----Original Message----- From: dev...@li... on behalf of Dan Vande = More Sent: Wed 3/1/2006 4:18 PM To: dev...@li... Subject: [Devmon] problem getting devmon to work =20 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 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 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 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 scripting = language that extends applications into web and mobile media. Attend the live = webcast and join the prime developer group breaking into this new 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 |