- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2016 02:55 AM
Hi All,
I want create a custom probe and sensors, to identify on the linux server the existence of Java Framework and the version of this component.
The identification of Java Framework is based on the discovery of at least one process with name java;
This create a CI on CMDB (Generic Application Form) relate it with the linux server.
After that it triggered a probe that execute the SSH Command:
- java -version
and the result of the command execution will be analyzed by script on the Sensor
But if I will test the Probe, I have this result:
The output of the command is empty (I see only the closure tag)
and the very result is in the "warm"
Why it ?
I think that in this case the sensor doesn't work because it doesn't have data for work..
Solved! Go to Solution.
- Labels:
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2016 08:03 AM
Hi all,
I have found the solution the execute the command "java -version" and to have an output.
It's sufficient add at the probe, a new probe parameter "must_sudo" with value "true".
Now the result of the command will be present in the output file.
Regards,
Vincenzo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2016 10:49 AM
Vincenzo, the "warn" tag contains stderr output when the return code of the process was 0.
Perhaps if you changed the name to "java -version 2>&1"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2016 03:23 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2023 07:41 AM
Thanks @tim_broberg , it saved my life.
I had more or less the same requirement : get the java version of the Websphere application.
I managed to do it this way:
Best regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2023 03:03 PM
Awesome! Thanks for the feedback.