HI Jason,

You could add debug ("Hi"); in the code to be sure its being called.

It seems ok, but you better add a $aux1["interface"] field to.

And at the top of the function its $ip, not ip;

You could also run this from the CLI.

php -q autodiscovery_interfaces.php <host_id> <interface_type_id>

Javier

Jason Humes wrote:
Hi

So we've created this new discovery plugin and added it to an interface type called 'transistion' and also have a poller group called transistion...we have not created the poller items or populated the poller group yet, we just want to get the discovery plugin down. But when we try to discover any host after creating this interface type, nothing get discovered...any ideas?


[EMAIL PROTECTED] discovery]# vi transition_chassis.inc.php

<?

    function discovery_transition_chassis(ip,$rocommunity,$hostid,$param) {

            $transition_chassis = array();

                    $aux1 = array();

                    $aux1["description"] = "Transition Chassis";

                    $aux1["slot_number"] = "MM1/1";


$transition_chassis[1] = $aux1;

            return $transition_chassis;

    }

?>

~

~

~

--

Jason


-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Javier Szyszlican, Project Leader, JFFNMS [EMAIL PROTECTED]

I hope JFFNMS or I were helpful to you, if you
can, please donate at http://jffnms.org/donate



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
jffnms-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jffnms-users

Reply via email to