Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reporter ProcMon fails to be added #159

Open
tdnavarrom opened this issue Feb 17, 2025 · 1 comment
Open

Add reporter ProcMon fails to be added #159

tdnavarrom opened this issue Feb 17, 2025 · 1 comment

Comments

@tdnavarrom
Copy link

Maybe is the ProcMan XML format that it could have been updated that makes unreadable the file produced and converted by procman. but SPADE is unable to add the procman reporter with the input file in XML format following the instructions provided by the wiki. We tried to open it using WSL and a VM that already had ubuntu working with SPADE previously and it did not work.

We added readable permissions to the file and also is in the same directory as the spade binary.

spade@tomas-vm:~/SPADE/bin$ ls
allowAuditAccess  audit-status  blockchain  build-add-metadata.sh  classpath.sh  downloadNeo4j  hostInfo  installPostgres  installQuickstep  keys  llvm  manage-postgres.sh  manage-quickstep.sh  ProcMon.XML  sortAuditLog  spade  spadeAuditBridge  startQuickstep
spade@tomas-vm:~/SPADE/bin$ ./spade start
nohup: redirecting stderr to stdout
Running SPADE with PID = 4383
spade@tomas-vm:~/SPADE/bin$ ./spade control

SPADE 3.0 Control Client

Available commands:
        add reporter|storage <class name> <initialization arguments>
        add analyzer|sketch <class name>
        add filter|transformer <class name> position=<number> <initialization arguments>
        set storage <class name>
        remove reporter|analyzer|storage|sketch <class name>
        remove filter|transformer <position number>
        list reporters|storages|analyzers|filters|sketches|transformers|all
        config load|save <filename>
        exit

-> add reporter ProcMon input=./ProcMon.XML
Adding reporter ProcMon... failed

-> exit

The following is the log file:

Feb 17, 2025 5:03:52 PM spade.core.Kernel addReporterCommand SEVERE: Unable to launch reporter
Feb 17, 2025 5:11:22 PM spade.core.Kernel addReporterCommand INFO: Adding reporter: ProcMon
Feb 17, 2025 5:11:22 PM spade.core.BlockingBuffer log INFO: [ProcMon] workableFreeMemory=20.000%, reportingIntervalSeconds=120(enabled), sleepWaitMillis=1000
Feb 17, 2025 5:11:23 PM spade.core.Kernel addReporterCommand INFO: Memory usage limited buffer used for reporter 'ProcMon' with 'workableFreeMemory'='20' from '/mnt/c/Users/tomas/Desktop/SPADE/./cfg/spade.core.AbstractReporter.config'
Feb 17, 2025 5:11:23 PM spade.reporter.ProcMon launch SEVERE: Failed to read/parse arguments and configurations
java.lang.Exception: Not a readable path value for key 'input'
        at spade.utility.ArgumentFunctions.mustParseReadableFilePath(ArgumentFunctions.java:215)
        at spade.reporter.ProcMon.launch(ProcMon.java:74)
        at spade.core.Kernel.addReporterCommand(Kernel.java:948)
        at spade.core.Kernel.addCommand(Kernel.java:1111)
        at spade.core.Kernel.executeCommand(Kernel.java:621)
        at spade.core.Kernel$LocalControlConnection.run(Kernel.java:1978)
        at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.Exception: Readable file test failed for path
        at spade.utility.FileUtility.pathMustBeAReadableFile(FileUtility.java:633)
        at spade.utility.ArgumentFunctions.mustParseReadableFilePath(ArgumentFunctions.java:212)
        ... 6 more
Caused by: java.lang.Exception: File does not exist
        at spade.utility.FileUtility.pathMustBeAReadableFile(FileUtility.java:630)
        ... 7 more

Feb 17, 2025 5:11:23 PM spade.core.Kernel addReporterCommand SEVERE: Unable to launch reporter
tdnavarrom@tomaslyoga:/mnt/c/Users/tomas/Desktop/SPADE/bin$
@tdnavarrom tdnavarrom changed the title Add reporter in ProcMan fails to be added Add reporter ProcMan fails to be added Feb 17, 2025
@tdnavarrom tdnavarrom changed the title Add reporter ProcMan fails to be added Add reporter ProcMon fails to be added Feb 17, 2025
@tdnavarrom
Copy link
Author

It works with the full path, but not relative path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant