[hobbit] Snmp with devmon
Geoff Hallford
geoff.hallford at gmail.com
Sat Sep 13 05:54:17 CEST 2008
Yes, I believe you are correct that it is not started. Use the init script
or just run the devmon executable and it should spawn some daemons. The
--readbbhosts just imports the configs from bbhosts but doesn't actually run
the tests and send the results.
'Nobody goes there anymore. It's too crowded.' --Yogi Berra
On Fri, Sep 12, 2008 at 2:33 AM, Buchan Milne <bgmilne at staff.telkomsa.net>wrote:
> On Friday 12 September 2008 05:57:32 Everett, Vernon wrote:
> > Hi all
> >
> > Is there a document, web site or mailing list with more assistance for
> > Devmon?
>
> The devmon mailing lists are available from the sourceforge page.
>
> > Currently I am getting rather frustrated with it.
> > The instructions
>
> Which "instructions"? Devmon ships with an INSTALLATION file, and a USING
> file. I really can't see what is missing in the documentation, and unless
> you're more specific about which documentation you followed, I can't
> improve
> it.
>
> > are something along the lines of
> > 1. Install like so
> > 2. ???
> > 3. Results.
> >
> > I need a little more help with step 2.
> > Even though I have followed step 1. to the letter and am getting
> > something that looks sane in the devmon hosts.db, I am still getting no
> > results in hobbit.
> > Nothing in the logs either :-(
> >
> > Does devmon have a debug mode to force it to log?
>
> I assume you've run --help, which lists:
>
> Usage: devmon [arguments]
>
> Arguments:
> -c Specify config file location
> -d Specify database file location
> -f Run in foreground. Prevents running in daemon mode.
> -p Print message. Don't send message to display server.
> print it to stdout
> -v Verbose mode. The more v's, the more vebose logging.
> --debug Print debug output (this can be quite extensive).
>
> Mutually exclusive arguments:
> --readbbhosts Read in data from the BigBrother/Hobbit hosts file
> --syncconfig Update multinode DB with the global config options
> configured on this local node.
> --synctemplates Update multinode device templates with the template
> data on this local node.
> --resetowners Reset multinode device ownership data. This will
> cause all nodes to recalculate ownership data.
>
>
> >
> > In the bb-hosts file, I have this.
> > 11.22.33.44 filer # netapp COMMENT:"Netapp01"
> > DEVMON:tests(if_load,status,netapptemp),cid(Secret)
> >
> > In he hosts.db I get this
> > filer 11.22.33.44 Network Appliances NetApp
> > v1.0 if_load,status,netapptemp Secret
> >
> > Crontab -l
> > */5 * * * * /usr/local/devmon/devmon --readbbhosts
>
> I don't use this myself, and running it every 5 minutes is a bit excessive.
> I
> assume you are aware that this does *nothing* besides update the hosts.db
> file, it doesn't actually poll any devices.
>
> >
> > My devmon.cfg looks like this
> > MULTINODE=NO
> > BBHOSTS=/etc/hobbit/bb-hosts
> > BBTAG=DEVMON
> > SNMPCIDS=public,private,Secret
> > NODENAME=HOSTNAME
> > PIDFILE=/var/run/devmon/devmon.pid
>
> Is this file writable by the user that runs devmon?
>
> > LOGFILE=/var/log/hobbit/devmon.log
>
> Same question here.
>
> > DBHOST=1.2.3.4
> > DBNAME=devmon
> > DBUSER=devmon
> > DBPASS=devmon
> > BBTYPE=hobbit
> > DISPSERV=localhost
> > DISPPORT=1984
> > MSGSIZE=8096
> > MSGSLEEP=10
> > CYCLETIME=60
> > DEADTIME=180
> > CLEARTIME=180
> > NUMFORKS=10
> > MAXPOLLTIME=30
> > SNMPTIMEOUT=2
> > SNMPTRIES=5
> >
> > But still nothing in Hobbit.
> >
> > What now?
>
> Did you actually *start* devmon?
>
> A sample init script is provided in the extras directory. This is covered
> in
> points 6 and 7 of the INSTALLATION file ...
>
>
> Regards,
> Buchan
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20080912/2a36a142/attachment.html>
More information about the Xymon
mailing list