Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
Hello! Thanks for writing this.
I’m having an issue. When I run the plugin locally with -a, everything reports OK. When I run the command on nagios server via nrpe I get a CRITICAL error. Its almost like its checking for those paths on the nagios server instead of the remote host:
Nagios server: check_nrpe -H myhost.mydomain.com -c check_mounts CRITICAL: /mnt/testmnt doesn’t exist on filesystem ;
Command from nrpe_local.cfg: command[check_mounts]=/usr/lib/nagios/plugins/check_mountpoints.sh /mnt/testmnt
Result running command manually on remote host:
/usr/lib/nagios/plugins/check_mountpoints.sh /mnt/testmnt OK: all mounts were found ( /mnt/testmnt )
Any ideas?