Just an update to this, I noticed Devmon is no longer reporting to Xymon (dm test is purple).<br><br># ./devmon --readbbhosts -vvvvvvvv  --debug<br>[11-05-27@13:13:03] Option 'bblocation' defaulting to:<br>[11-05-27@13:13:03] DEBUG TEMPLATES: running read_templates()<br>

[11-05-27@13:13:03] DEBUG TEMPLATES: read apc:9617:power template<br>[11-05-27@13:13:03] DEBUG TEMPLATES: read apc:9619:power template<br>[11-05-27@13:13:03] DEBUG TEMPLATES: read apc:9619:env template<br>[11-05-27@13:13:03] DEBUG TEMPLATES: running post_template_load()<br>

[11-05-27@13:13:03] Saw 1 vendors, 2 models, 2 sysdescs & 6 templates<br>[11-05-27@13:13:03] SNMP querying all hosts in bb-hosts file, please wait...<br>[11-05-27@13:13:03] Checking if       # bbd <a href="http://localhost.localdomain/">http://localhost.localdomain/</a> matches NET:.<br>

[11-05-27@13:13:03] Checking if                 # DEVMON:cid(imagineapc) matches NET:.<br>[11-05-27@13:13:03] DEBUG CFG: running read_hosts<br>[11-05-27@13:13:03] Option 'bbdateformat' defaulting to: .<br>[11-05-27@13:13:03] Option 'dispport' defaulting to: 1984.<br>

[11-05-27@13:13:03] Querying pre-existing hosts<br>[11-05-27@13:13:03] DEBUG SNMP: 1<br>[11-05-27@13:13:03] DEBUG SNMP: 0 => 1.3.6.1.2.1.1.1.0<br>[11-05-27@13:13:03] DEBUG SNMP: Adding ID => 1 OID =>1.3.6.1.2.1.1.1.0<br>

[11-05-27@13:13:03] DEBUG SNMP: Pooling 1 oids<br>[11-05-27@13:13:03] DEBUG SNMP: Dethawing data for stouderapc<br>[11-05-27@13:13:03] stouderapc sysdesc = ::: 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) :::<br>

[11-05-27@13:13:03] stouderapc did not match apc : 9617 : MN:AP9617<br>[11-05-27@13:13:03] Discovered stouderapc as a apc 9619<br>[11-05-27@13:13:03] Received signal TERM, shutting down with return code 0<br>[11-05-27@13:13:04] Received signal TERM, shutting down with return code 0<br>

<br>(The last line is repeated 10 times total)<br><br clear="all">Josh Luthman<br>Office: 937-552-2340<br>Direct: 937-552-2343<br>1100 Wayne St<br>Suite 1337<br>Troy, OH 45373<br>
<br><br><div class="gmail_quote">On Fri, May 27, 2011 at 12:40 PM, Josh Luthman <span dir="ltr"><<a href="mailto:josh@imaginenetworksllc.com">josh@imaginenetworksllc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Sorry for the long post, just trying to put all the information I think is relevant in one place!<br><br>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.<br>


<br>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.<br>
<br>This is what I have:<br><br># more templates/apc-9619/specs<br>vendor  : apc<br>model   : 9619<br>snmpver : 1<br>sysdesc : <b>MN:AP9619</b><br><br># snmpwalk -v1 -ccommunity 172.16.0.60|grep MN\:AP9619<br>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 <b>MN:AP9619 </b>HR:A10 SN: NA0829011474 MD:07/19/2008) (Embedded PowerNet SNMP Agent SW v2.2 compatible)<br>


<br>devmon.cfg is looking at /home/xymon/server/etc/hosts.cfg<br>#grep DEVMON /home/xymon/server/etc/hosts.cfg<br>172.16.0.60     stouderapc              # DEVMON:cid(imagineapc)<br>
<br># ./devmon --readbbhosts -f -p -vvvvvvvvvvvvvvvvvvvvvvv<br>[11-05-27@12:25:31] Option 'bblocation' defaulting to:<br>[11-05-27@12:25:31] SNMP querying all hosts in bb-hosts file, please wait...<br>[11-05-27@12:25:31] Checking if       # bbd <a href="http://localhost.localdomain/" target="_blank">http://localhost.localdomain/</a> matches NET:.<br>


[11-05-27@12:25:31] Checking if                 # DEVMON matches NET:.<br>[11-05-27@12:25:31] Option 'bbdateformat' defaulting to: .<br>[11-05-27@12:25:31] Option 'dispport' defaulting to: 1984.<br>[11-05-27@12:25:31] Querying pre-existing hosts<br>


[11-05-27@12:25:31] Discovered stouderapc as a apc 9619<br>[11-05-27@12:25:31] Received signal TERM, shutting down with return code 0<br>[11-05-27@12:25:32] Received signal TERM, shutting down with return code 0<br><br>./devmon --readbbhosts<br>


#log shows<br>[11-05-27@12:14:57] Nodename autodetected as localhost.localdomain<br>[11-05-27@12:14:57] Option 'bbdateformat' defaulting to: .<br>[11-05-27@12:14:57] Option 'dispport' defaulting to: 1984.<br>


[11-05-27@12:14:57] ---Initilizing devmon...<br>[11-05-27@12:14:57] Verbosity level: 30<br>[11-05-27@12:14:57] Logging to /var/log/devmon.log<br>[11-05-27@12:14:57] Node 0 reporting to localhost<br>[11-05-27@12:14:57] Running under process id: 2361<br>


[11-05-27@12:14:57] Entering poll loop<br>[11-05-27@12:14:57] Starting snmp queries<br>[11-05-27@12:14:57] Getting device status from hobbit at localhost:1984<br>[11-05-27@12:14:57] Performing test logic<br>[11-05-27@12:14:57] Done with test logic<br>


[11-05-27@12:14:57] Sending messages to display server<br>[11-05-27@12:14:57] Sleeping for 60 seconds.<br>[11-05-27@12:15:13] Received signal INT, shutting down with return code 0<br><br>
dm in Xymonreads:<br><br>devmon, version 0.3.1-beta1<br><br>Node name:        localhost.localdomain<br>Node number:      0<br>Process ID:       28488<br><br>Cycle time:       60<br>Dead time:        180<br><br>Polled devices:   <br>


Polled tests:     <br>Avg tests/node:   n/a<br># clear msgs:     0<br><br>SNMP test time:   0<br>Test logic time:  0<br>BB msg xfer time: 0<br>This poll period: 0<br><br>Avg poll time:    0.2 seconds<br><br>Poll time averaged over 5 poll cycles.<br>

<font color="#888888">
<br clear="all">Josh Luthman<br>Office: <a href="tel:937-552-2340" value="+19375522340" target="_blank">937-552-2340</a><br>Direct: <a href="tel:937-552-2343" value="+19375522343" target="_blank">937-552-2343</a><br>1100 Wayne St<br>


Suite 1337<br>Troy, OH 45373<br>
</font></blockquote></div><br>