[Xymon] Configuring Devmon for the first time

Josh Luthman josh at imaginenetworksllc.com
Tue May 31 01:06:21 CEST 2011


I have no idea what would have changed, but it started working.  This
morning I had no devmon ps, ran the debug options David suggested and
started Devmon up again (./devmon).  It seems to have been updating for the
last 5 hours.

Josh Luthman
Office: 937-552-2340
Direct: 937-552-2343
1100 Wayne St
Suite 1337
Troy, OH 45373


On Mon, May 30, 2011 at 1:45 PM, Josh Luthman
<josh at imaginenetworksllc.com>wrote:

> Thanks for the reply, David!
>
> I waited ~5 minutes and refreshed the bb.html page - the dm column isn't
> showing up.  I tried accessing it via URL and the data is still blank
> (Status not available).
>
> # ./devmon -f -p -vvv
> [11-05-30 at 13:43:18] Option 'bblocation' defaulting to:
> [11-05-30 at 13:43:18] Nodename autodetected as localhost.localdomain
> [11-05-30 at 13:43:18] Option 'bbdateformat' defaulting to: .
> [11-05-30 at 13:43:18] Option 'dispport' defaulting to: 1984.
> [11-05-30 at 13:43:18] Option 'dispserv' defaulting to: localhost.
> [11-05-30 at 13:43:18] ---Initilizing devmon...
> [11-05-30 at 13:43:18] Verbosity level: 3
> [11-05-30 at 13:43:18] Logging to /var/log/devmon.log
> [11-05-30 at 13:43:18] Node 0 reporting to localhost
> [11-05-30 at 13:43:18] Running under process id: 24542
> [11-05-30 at 13:43:18] Entering poll loop
> [11-05-30 at 13:43:18] Starting snmp queries
> [11-05-30 at 13:43:18] Getting device status from hobbit at localhost:1984
> [11-05-30 at 13:43:19] Performing test logic
> [11-05-30 at 13:43:19] Done with test logic
> [11-05-30 at 13:43:19] Sending messages to display server
> status stouderapc.power green Mon May 30 13:43:19 2011
>
>
> UPS status:
>
> Vendor:              apc
> Model:               Smart-UPS 2200 RM XL
>
> UPS Status:          Online
> Battery Status:      Battery OK
>
> Runtime Remaining:   29.00 minutes (red=<15m)
> Battery Capacity:    100%
> UPS Load:            50% (yellow=70% red=90%)
>
> Voltage in:          121v (yellow=>127,<110v red=135v)
> Voltage out:         121v
>
> Last failure due to: Self test
> Time on battery:     0.00 secs
>
>
> Devmon version 0.3.1-beta1 running on localhost.localdomain
> status localhost,localdomain.dm green Mon May 30 13:43:19 2011
>
>
> devmon, version 0.3.1-beta1
>
> Node name:        localhost.localdomain
> Node number:      0
> Process ID:       24542
>
>
> Cycle time:       60
> Dead time:        180
>
> Polled devices:   1
> Polled tests:     1
>
> Avg tests/node:   n/a
> # clear msgs:     0
>
> SNMP test time:   1
>
> Test logic time:  0
> BB msg xfer time: 0
> This poll period: 1
>
> Avg poll time:    wait
>
> [11-05-30 at 13:43:19] Sleeping for 59 seconds.
>
>
> Josh Luthman
> Office: 937-552-2340
> Direct: 937-552-2343
> 1100 Wayne St
> Suite 1337
> Troy, OH 45373
>
>
> On Mon, May 30, 2011 at 2:30 AM, David Baldwin <
> david.baldwin at ausport.gov.au> wrote:
>
>>  Josh,
>>
>> Sorry for the long post, just trying to put all the information I think is
>> relevant in one place!
>>
>> I believe I have Devmon all ready to go short of one example test.  I
>> copied the templates from SF and put them in the templates directory.  I am
>> trying this with apc-9619.
>>
>> From what I've read, it simply looks to match a string in sysdesc of
>> templates/apc-9619/specs with what comes back from the sysDescr snmp query.
>>
>>  Matching sysDescr is one way to do it, and what you have included below
>> would indicate this is working OK for you. The way to specify the template
>> you want explicitly is to use the tag "DEVMON:model(vendor;model)" where
>> "vendor" and "model" match the lines in the template specs file.
>>
>> From what you've included, looks like the --readbbhosts is working OK. The
>> next step is to actually poll the device to report.
>>
>> What do you get when you run "./devmon -f -p -vvv" ?
>>
>> David.
>>
>> This is what I have:
>>
>> # more templates/apc-9619/specs
>> vendor  : apc
>> model   : 9619
>> snmpver : 1
>> sysdesc : *MN:AP9619*
>>
>> # snmpwalk -v1 -ccommunity 172.16.0.60|grep MN\:AP9619
>> SNMPv2-MIB::sysDescr.0 = STRING: APC Web/SNMP Management Card (MB:v3.9.2
>> PF:v3.6.1 PN:apc_hw02_aos_361.bin AF1:v3.5.8 AN1:apc_hw02_sumx_358.bin *MN:AP9619
>> *HR:A10 SN: NA0829011474 MD:07/19/2008) (Embedded PowerNet SNMP Agent SW
>> v2.2 compatible)
>>
>> devmon.cfg is looking at /home/xymon/server/etc/hosts.cfg
>> #grep DEVMON /home/xymon/server/etc/hosts.cfg
>> 172.16.0.60     stouderapc              # DEVMON:cid(imagineapc)
>>
>> # ./devmon --readbbhosts -f -p -vvvvvvvvvvvvvvvvvvvvvvv
>> [11-05-27 at 12:25:31] Option 'bblocation' defaulting to:
>> [11-05-27 at 12:25:31] SNMP querying all hosts in bb-hosts file, please
>> wait...
>> [11-05-27 at 12:25:31] Checking if       # bbd http://localhost.localdomain/matches NET:.
>> [11-05-27 at 12:25:31] Checking if                 # DEVMON matches NET:.
>> [11-05-27 at 12:25:31] Option 'bbdateformat' defaulting to: .
>> [11-05-27 at 12:25:31] Option 'dispport' defaulting to: 1984.
>> [11-05-27 at 12:25:31] Querying pre-existing hosts
>> [11-05-27 at 12:25:31] Discovered stouderapc as a apc 9619
>> [11-05-27 at 12:25:31] Received signal TERM, shutting down with return code
>> 0
>> [11-05-27 at 12:25:32] Received signal TERM, shutting down with return code
>> 0
>>
>> ./devmon --readbbhosts
>> #log shows
>> [11-05-27 at 12:14:57] Nodename autodetected as localhost.localdomain
>> [11-05-27 at 12:14:57] Option 'bbdateformat' defaulting to: .
>> [11-05-27 at 12:14:57] Option 'dispport' defaulting to: 1984.
>> [11-05-27 at 12:14:57] ---Initilizing devmon...
>> [11-05-27 at 12:14:57] Verbosity level: 30
>> [11-05-27 at 12:14:57] Logging to /var/log/devmon.log
>> [11-05-27 at 12:14:57] Node 0 reporting to localhost
>> [11-05-27 at 12:14:57] Running under process id: 2361
>> [11-05-27 at 12:14:57] Entering poll loop
>> [11-05-27 at 12:14:57] Starting snmp queries
>> [11-05-27 at 12:14:57] Getting device status from hobbit at localhost:1984
>> [11-05-27 at 12:14:57] Performing test logic
>> [11-05-27 at 12:14:57] Done with test logic
>> [11-05-27 at 12:14:57] Sending messages to display server
>> [11-05-27 at 12:14:57] Sleeping for 60 seconds.
>> [11-05-27 at 12:15:13] Received signal INT, shutting down with return code 0
>>
>> dm in Xymonreads:
>>
>> devmon, version 0.3.1-beta1
>>
>> Node name: localhost.localdomain
>> Node number: 0
>> Process ID: 28488
>>
>> Cycle time: 60
>> Dead time: 180
>>
>> Polled devices:
>> Polled tests:
>> Avg tests/node: n/a
>> # clear msgs: 0
>>
>> SNMP test time: 0
>> Test logic time: 0
>> BB msg xfer time: 0
>> This poll period: 0
>>
>> Avg poll time: 0.2 seconds
>>
>> Poll time averaged over 5 poll cycles.
>>
>> Josh Luthman
>> Office: 937-552-2340
>> Direct: 937-552-2343
>> 1100 Wayne St
>> Suite 1337
>> Troy, OH 45373
>>
>>
>>
>> --
>> David Baldwin - IT Unit
>> Australian Sports Commission          www.ausport.gov.au
>> Tel 02 62147830 Fax 02 62141830       PO Box 176 Belconnen ACT 2616david.baldwin at ausport.gov.au          Leverrier Street Bruce ACT 2617
>>
>>
>> ------------------------------
>> Keep up to date with what's happening in Australian sport visit
>> www.ausport.gov.au
>>
>> This message is intended for the addressee named and may contain
>> confidential and privileged information. If you are not the intended
>> recipient please note that any form of distribution, copying or use of this
>> communication or the information in it is strictly prohibited and may be
>> unlawful. If you receive this message in error, please delete it and notify
>> the sender.
>> ------------------------------
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20110530/fd12b05c/attachment.html>


More information about the Xymon mailing list