I'm just learning to how to write the plugins for nfsen.  I have a backend 
plugin that works but I'm having problems with the front in plugin.  The front 
end plugin doesn't show up on the plugin page.  I have reloaded nfsen.  Does 
any one see anything I am doing wrong?

Thanks
Mark


root@netflow plugins]# pwd ; ls -al office3*.*
/opt/nfsen/plugins
-rwxr-xr-- 1 netflow apache  903 Jun 24 11:26 office365.php
-rwxr-xr-- 1 netflow apache 8802 Jun 20 16:56 office365.pm




[root@netflow etc]# cat nfsen.conf | grep "\$BACKEND_PLUGINDIR="  -B 1 -A 5
# Where go all the backend plugins
$BACKEND_PLUGINDIR="${BASEDIR}/plugins";

#
# Where go all the frontend plugins
$FRONTEND_PLUGINDIR="${HTMLDIR}/plugins";





[root@netflow etc]# cat nfsen.conf | grep "\%PluginConf"  -A 18
%PluginConf = (
        # For plugin demoplugin
        demoplugin => {
                # scalar
                param2 => 42,
                # hash
                param1 => { 'key' => 'value' },
        },
        # for plugin otherplugin
        otherplugin => [
                # array
                'mary had a little lamb'
        ],

        office365 => {
                        param => 1,
        },
);



[root@netflow plugins]# cat office365.php
<?php

/*
* Frontend plugin: office365
*
* Required functions: office365_ParseInput and office365_Run
*
*/


function office365_ParseInput( $plugin_id )
{
#        SetMessage('error', "Error set by demo plugin!");
#        SetMessage('warning', "Warning set by demo plugin!");
#        SetMessage('alert', "Alert set by demo plugin!");
#        SetMessage('info', "Info set by demo plugin!");
} // End of office365_ParseInput


function office365_Run( $plugin_id )
{
print "<HTML>\n<HEAD>\n";
print "\t</HEAD>\n<BODY>\n";
print "\t<img src = \"images\/office365\/office365_daily_flows.png\">\n";
print "\t<img src = \"images\/office365\/office365_daily_packets.png\">\n";
print "\t<img src = \"images\/office365\/office365_daily_bits.png\">\n";
print "</BODY>\n</HTML>";
}
?>
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Nfsen-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss

Reply via email to