Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

False return #41

Closed
wforumw opened this issue Oct 17, 2017 · 2 comments
Closed

False return #41

wforumw opened this issue Oct 17, 2017 · 2 comments
Labels

Comments

@wforumw
Copy link

wforumw commented Oct 17, 2017

Hi

If I check the script via check_nrpe I get a critical back

check_nrpe -H server1 -c check_mounts
CRITICAL: /data/dir1 doesn't exist on filesystem

but if I run the script locally (@server1) it gives back the correct information

/usr/lib/nagios/plugins/check_mountpoints.sh -a
OK: all mounts were found ( /data/dir1 )

my nrpe.cfg on the checked server1 is
command[check_mounts]=/usr/lib/nagios/plugins/check_mountpoints.sh -a

/data/dir1 is a NFS mountpoint

Any idea why I get this?
Many thanks!!

@wforumw wforumw changed the title False False return Oct 17, 2017
@dwerder
Copy link
Member

dwerder commented Oct 25, 2017

Maybe nrpe has no permision to "see" ( read ) the /data/ drectory?
Just a gues,
Did you run the script locally on the server with the same user as nrpe runs?

@wforumw
Copy link
Author

wforumw commented Oct 25, 2017

Thanks, now it works!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants