2009/8/4 Mark Hennelly <[email protected]>:
> Sorry, please ignore the last post. The script works! The reason it didn't
> work before is that I had forgotten to change the permissions to make it
> executable.

OK - that sounds promising.
Both the fact that it works (which show that the pass-persist module
is operating successfully), *and* the fact that you got a similar error.
That would tend to indicate that the problem probably lies with invoking
the java command.

The sole remaining task is to find out what this problem is :-)

All that comes to mind is that the java run-time environment
may require some configuration (such as an environmental
variable) which isn't being set when invoked from the agent.
You might find it worth writing a simple script wrapper around
the java program, and specifying that on the 'pass_persist' line.

If nothing else, that should indicate whether the script is being
invoked or not - even if the java program does not.

Something like

    #!/bin/sh
    JARDIR=/home/barney1572/barney1572/Documents/snmp/SNMPAgentDemo/src/
    /usr/bin/java -classpath $JARDIR/SNMPAgentDemo.jar  SNMPAgentDemo
>/tmp/snmpdemo.out 2>/tmp/snmpdemo.err

Then query the agent again, and see whether the two output files are created.
(And if so, whether there is anything useful in either of them)

Dave

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to