Writing output to disk during a check
Posted: Fri Dec 11, 2015 4:38 pm
Hello!
Just getting started on the Nagios journey and have made a check that executes a jar file and then displays the output. The jar also writes a file with the same output which will be used by an event handler.
The check fails when it tries to write the file on the nagios server (I'm assuming this is because the nagios user doesn't have write permission). If I run the same jar on the nagios server as a privileged user everything works as expected.
Has anyone tried something like this. A suggestion on how to fix this or a different way to approach this is greatly appreciated!
Thank you,
Darran
Just getting started on the Nagios journey and have made a check that executes a jar file and then displays the output. The jar also writes a file with the same output which will be used by an event handler.
The check fails when it tries to write the file on the nagios server (I'm assuming this is because the nagios user doesn't have write permission). If I run the same jar on the nagios server as a privileged user everything works as expected.
Has anyone tried something like this. A suggestion on how to fix this or a different way to approach this is greatly appreciated!
Thank you,
Darran