Hi Adam
I could find the change which breaks this:
--- includes/include-dir-mib.inc.php (revision 5598) +++ includes/include-dir-mib.inc.php (revision 5599) @@ -35,6 +35,8 @@ foreach (get_device_mibs_cache($device) as $mib) { $include_file = $config['install_dir'] . '/' . $include_dir . '/' . strtolower($mib) . '.inc.php'; + $include_dir = $config['install_dir'] . '/' . $include_dir . '/' . strtolower($mib); + // if ($debug) { echo("[[$mib]]"); }
if (is_file($include_file) && is_device_mib($device, $mib)) @@ -43,6 +45,13 @@
include($include_file); } + elseif (is_dir($include_dir) && is_device_mib($device, $mib)) + { + if ($debug) { echo("[[$mib]]"); } + + include($config['install_dir']."/includes/include-dir-mib.inc.php"); + + } }
unset($include_file, $include_dir, $mib);
Think the problem is that you overwrite $include_dir. If I rename that variable to e.g. $include_dir_new in both places that all works.
Regards
Matthias
On 01/07/14 23:10, Matthias Cramer wrote:
Hi Adam
I now rolled back to 5586 where I knew it worked and the incremented versions and did a discover every time until processor got deleted again at revision 5599. So the change which affects this is in the changes done in r5599.
svn up -r 5599 U rename_device.php U mibs/cisco/CISCO-CLASS-BASED-QOS-MIB.my A mibs/itwatchdogs A mibs/itwatchdogs/itw_mibv3.mib A mibs/itwatchdogs/itw_mibv4.mib A mibs/itwatchdogs/itw_mib.mib U html/css/bootstrap.css U html/css/font-awesome/less/path.less U html/css/bootstrap/less/modals.less U html/pages/device/port.inc.php A html/pages/device/port/cbqos.inc.php U html/includes/status-summary.inc.php A html/includes/graphs/cbqos A html/includes/graphs/cbqos/auth.inc.php A html/includes/graphs/cbqos/bits.inc.php A html/includes/graphs/cbqos/pkts.inc.php A html/includes/graphs/cbqos/bits_drop.inc.php A html/includes/graphs/cbqos/pkts_drop.inc.php A html/includes/graphs/cbqos/bits_post.inc.php A html/includes/graphs/cbqos/pkts_post.inc.php A html/includes/graphs/cbqos/bits_pre.inc.php A html/includes/graphs/cbqos/pkts_pre.inc.php U includes/alerts.inc.php U includes/include-dir-mib.inc.php A includes/polling/cisco-cbqos.inc.php U includes/groups.inc.php U add_device.php
But I have not found out yet which file affects this...
Regards
Matthias
On 01/07/14 22:43, Matthias Cramer wrote:
Attached is a ./discovery.php -h <host> -m processors -d
think you wanted that ...
On 01/07/14 21:48, Adam Armstrong wrote:
./poller.php -h <host> -m <sensors> -d
adam.
On 2014-07-01 14:32, Matthias Cramer wrote:
Hi Tom
Sorry, probably did some mixup with what I liked to tell. Sure, the do not disapear afer an update, but after discovery. I tried several times discovering by hand, but they are gone.
Here what I did:
orpheus:/opt/observium# ./discovery.php -h xxxx Observium v0.14.7.5601 Discovery
Current Revision : 5601 New Revision : 5601
xxxx 439 ios (cisco) OLD: ios, NEW: ios --- Ports : ..........X...XXX Port Stacks: ............................... Processors : hrDevice: Memory : HOST-RESOURCES-MIB IPv4 Addresses : .. IPv6 Addresses : Sensors: ENTITY-SENSOR-MIB Storage : Inventory: Physical Inventory : ................ hrDevice : Discovery protocols: LLDP-MIB CISCO-CDP-MIB OSPF Neighbours: ARP/NDP Tables : BGP Sessions: AS64512 .. VLANs: Q-BRIDGE-MIB Cisco Pseudowires : VRFs :
SLAs : UCD Disk IO : Discovered in 1.807 seconds
hrDevice, HOST-RESOURCES-MIB, ENTITY-SENSOR-MIB return nothing...
I now tried on a Cisco 881 ro discover manualy
orpheus:/opt/observium# ./discovery.php -h yyyyy Observium v0.14.7.5601 Discovery
Current Revision : 5601 New Revision : 5601
yyyyy 106 ios (cisco) OLD: ios, NEW: ios --- Ports : .................X.XX Port Stacks: ................................. Processors : hrDevice: - Memory : HOST-RESOURCES-MIB -- IPv4 Addresses : ... IPv6 Addresses : Sensors: ENTITY-SENSOR-MIB -- Storage : Inventory: Physical Inventory : ................. hrDevice : Discovery protocols: LLDP-MIB CISCO-CDP-MIB Discovering new host XXXX_SWITCH .X OSPF Neighbours: ARP/NDP Tables : BGP Sessions: AS64512 .. VLANs: Q-BRIDGE-MIB P-P-P-V-V-V-V-V-V- Cisco Pseudowires : VRFs :
SLAs : UCD Disk IO : Discovered in 1.776 seconds
And CPU, RAM and Sensors are gone here too ...
Regards
Matthias
On 01/07/14 21:22, Tom Laermans wrote: They don't disappear after an update. They disappeared during a discovery run - you ran discovery again, and they're back -> device or network glitch during discovery run 33m12s ago.
Tom
On 01/07/2014 20:24, Matthias Cramer wrote: Hi
After doing a "svn update" this evening all proceccors, memory pools and sensors disapeared on a cisco 892 router which I rediscovered manualy after the update,
Log: 33m 12s Sensor Sensor deleted: temperature cisco-envmon 6 33m 12s Sensor Sensor deleted: temperature cisco-envmon 5 33m 12s Sensor Sensor deleted: temperature cisco-envmon 4 33m 12s Sensor Sensor deleted: temperature cisco-envmon 3 33m 12s Sensor Sensor deleted: temperature cisco-envmon 2 33m 12s Sensor Sensor deleted: temperature cisco-envmon 1 33m 12s Mempool Memory pool removed: mib cisco-enhanced-mempool-mib, index 1.2, descr C892FSP-K9 (I/O) 33m 12s Mempool Memory pool removed: mib cisco-enhanced-mempool-mib, index 1.1, descr C892FSP-K9 (Processor) 33m 12s Processor Processor removed: type cpm index 1 descr Processor 1
Any idea what caused this?
Regards
Matthias
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium