On Tue, Oct 03, 2006 at 01:52:38AM -0700, Niti Lohwithee wrote:
> Warning: Invalid argument supplied for foreach() in
> /opt/jffnms/engine/discovery/brocade_sensors.inc.php
> on line 27
They're all complaining that snmp_walk is no longer returning FALSE
if it fails, but it is returning... something. Something that is not
FALSE but is not an array.

For each error message, edit the line so it doesn't test for FALSE,
but that it is an array.

brocade_sensors.inc.php line 22:
broace_fcports.inc.php line 18:
        if ($indexes === FALSE) return FALSE;
to
        if (!is_array($indexes)) return FALSE;

alteon_virtualservers.inc.php line 30:
alteon_realservers.inc.php line 35:
        if ($indexes !== FALSE) {
to
        if (is_array($indexes)) {

alteon_realservices.inc.php line 40:
        if ($rsrv_virtservs !== FALSE) {
to
        if (is_array($rsrv_virtservs)) {

I am unsure why this used to work and does no longer.

 - Craig
-- 
Craig Small      GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.enc.com.au/   MIEE         Debian developer
csmall at : enc.com.au                      ieee.org           debian.org

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
jffnms-users mailing list
jffnms-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to