![](https://secure.gravatar.com/avatar/3bbbd945c333b8013d0dfa23058f65b9.jpg?s=120&d=mm&r=g)
Hi,
It's my mistake, fixed in r5660. ;)
On 17.07.2014 19:45, David Lagace wrote:
Hello,
I've run into a problem where the discovery cron seems to error out. I noticed this in checking the polling times where it was at almost 3 days.
I ran discovery.php -h all manually from the shell and noticed it would error out to prompt when scanning the same switch everytime. When I put the device causing the issue in ignore it would go through untill it hit another device that errrored it out. If I run it on the host only it also seems to error out:
<SNIP> ./discovery.php -h mksc-dob-lab-sw1 Observium v0.14.7.5654 Discovery
Current Revision : 5654 New Revision : 5659
mksc-dob-lab-sw1 433 ios (cisco) OLD: ios, NEW: ios --- Ports : ........................................................... Port Stacks: Processors : CISCO-ENTITY-QFP-MIB CISCO-PROCESS-MIB . hrDevice: Memory : CISCO-ENTITY-QFP-MIB CISCO-ENHANCED-MEMPOOL-MIB CISCO-MEMORY-POOL-MIB ... HOST-RESOURCES-MIB IPv4 Addresses : . IPv6 Addresses : Sensors: CISCO-ENTITY-SENSOR-MIB CISCO-ENVMON-MIB .. Fans . ENTITY-SENSOR-MIB Storage : Inventory: Physical Inventory : ............................................................... hrDevice : Discovery protocols: LLDP-MIB CISCO-CDP-MIB .obs@MTPTSMON01:/opt/observium
</SNIP>
Here with added debug
<SNIP> SQL[SELECT * FROM `ports` WHERE `device_id` = '433' AND `ifIndex` = '10101']
SQL[SELECT `device_id` FROM `devices` WHERE `sysName` = 'MKSC-DOB-1A-ASW1.MKSC.CA' OR `hostname` = 'MKSC-DOB-1A-ASW1.MKSC.CA']
SQL[SELECT `port_id` FROM `ports` WHERE (`ifDescr` = 'GigabitEthernet3/0/41' OR `ifName` = 'GigabitEthernet3/0/41') AND `device_id` = '263']
SQL[SELECT * FROM `links` WHERE `local_port_id` = '26157' AND `remote_hostname` = 'MKSC-DOB-1A-ASW1.MKSC.CA' AND `protocol` = 'cdp' AND `remote_port` = 'GigabitEthernet3/0/41'] . SQL[SELECT * FROM `ports` WHERE `device_id` = '433' AND `ifIndex` = '10104']
SQL[SELECT `device_id` FROM `devices` WHERE `sysName` = 'Blee' OR `hostname` = 'Blee'] PHP Fatal error: Call to undefined function nicecase() in /opt/observium/includes/discovery/functions.inc.php on line 151
Fatal error: Call to undefined function nicecase() in /opt/observium/includes/discovery/functions.inc.php on line 151
</SNIP>
Anyone seen this issue? Thanks for your help!
--Dave _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium