Skip to content

HP-UX implementation (workaround) with full sincedb file support #41

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

M0dM
Copy link

@M0dM M0dM commented Jan 9, 2015

I just forked your projet because I want to use logstash under HP-UX.
The problem is because the ruby FFI library does not support HP-UX os, the File::Stat command just perform strangly on the system (stat.inode always return 0, dev_minor and dev_major does not exist).

So, I published this small workaround using the inode and the filesystem mount point name as unique identifier for the watched file.
To get these properties, I had to call these bash commands :
ls -i
df -n

I surrounded every hp-ux specific code with the @ishpux annotation to be certain to do no break anything for any other platform.
I also created an hpux helper class.

Thanks for your good work.

Edit : I also moved the java folder inside the lib folder because this operation was required to make logstash work properly. Otherwise a NotFoundExection occured.

Benoit Brayer

Benoit Brayer added 3 commits January 8, 2015 13:34
@M0dM M0dM changed the title HP-UX implementation (workaround) with fully working sincedb file HP-UX implementation (workaround) with fully sincedb file support Jan 9, 2015
Benoit Brayer added 4 commits January 9, 2015 14:44
…e unique identifier.

Adding most hpux specific code inside the hpuxhelper.rb module.

Signed-off-by: Benoit Brayer <[email protected]>
removing end lines spaces
converting line break to respect unix standard
changing _sincedb_write method file open mode
  -> solve sincedb file initializing problem
@M0dM M0dM changed the title HP-UX implementation (workaround) with fully sincedb file support HP-UX implementation (workaround) with full sincedb file support Jan 14, 2015
@M0dM
Copy link
Author

M0dM commented Jul 9, 2015

Why did you not merge my PR ?
Any problem with this ?

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

Successfully merging this pull request may close these issues.

1 participant