From: Buchan M. <bg...@st...> - 2008-01-11 09:38:43
|
On Friday 11 January 2008 02:28:34 Alexander MacKinnon wrote: > I have just installed devmon to get snmp information from some UPS's. > Devmon is installed in a single hobbit server that has full snmp access to > all those UPS's and has been confirmed with one snmpget to each of them. I > have some problems getting devmon to obtain any information and there are a > few questions that I need answered. In a single node system, does devmon > get the list of hosts to be scanned from th bb-hosts file or from hosts.db > file? Devmon operates from the hosts.db file. If changes have been made to bb-hosts, devmon needs to be run with the --readbbhosts option to update the hosts.db file. It may be convenient to automate this. All of this is covered in the docs (INSTALLATION). > In the devmon.cfg file there are several entries related to a > database. Are those entries required or useful in any way in a single node > system? No. > Devmon is not writing to /var/log/devmon.log, actually the file > does not exists. Should I create it or did something fail during > installation? If the file does not exist, devmon would require write access to /var/log to create the file. I typically run devmon as the 'devmon' user, and configure it to log to /var/log/devmon/devmon.log, and create /var/log/devmon such that the 'devmon' user has write access to /var/log/devmon. > Devmon is running each five minutes from a cron as adviced in > the doco and each time it runs, I get a message like this > [08-01-11@11:20:42] Could not query device: myUPS_name_here You mean you are running devmon with the --readbbhosts option according to item 5 in INSTALLATION ? > I know is a lot, but if someone could show me the light would be > appreciated. I have been going through the documentation with no luck :-( You can run devmon with --readbbhosts --debug to get more information. Regards, Buchan |