Merge pull request 'nagios-nrpe: Fix check_nfsserver for buster and bullseye' (#138) from mtrossevin/ansible-roles:check_nfsserver-buster into unstable
Some checks failed
continuous-integration/drone/push Build is failing

Reviewed-on: #138
This commit is contained in:
Mathieu Trossevin 2021-11-24 11:12:11 +01:00
commit 53cd3ba342
2 changed files with 4 additions and 3 deletions

View file

@ -31,7 +31,8 @@ The **patch** part changes is incremented if multiple releases happen the same m
* evolinux-base: fix alert5.service dependency syntax * evolinux-base: fix alert5.service dependency syntax
* mysql : Create a default ~root/.my.cnf for compatibility reasons * mysql : Create a default ~root/.my.cnf for compatibility reasons
* nginx : fix variable name and debug to actually use nginx-light * nginx : fix variable name and debug to actually use nginx-light
* packweb-apache : Support php 8.0 * packweb-apache : Support php 8.0
* nagios-nrpe: Fix check\_nfsserver for buster and bullseye
### Removed ### Removed

View file

@ -1,12 +1,12 @@
#!/bin/sh #!/bin/sh
# Check if nfs server is running using rpcinfo # Check if nfs server is running using rpcinfo
rpcinfo -u localhost nfs rpcinfo -T udp localhost nfs 3
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit 2 exit 2
fi fi
rpcinfo -t localhost nfs rpcinfo -T tcp localhost nfs
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
exit 2 exit 2
fi fi