Search found 3 matches

by martin.duspiva
Fri Sep 08, 2017 9:51 am
Forum: Open Source Nagios Projects
Topic: nrpe-server - bash plugins cannot access files
Replies: 5
Views: 4575

Re: nrpe-server - bash plugins cannot access files

You are right. After moving the test file outside of temp directories the plugin began work. I found the following setting in systemd for unit nagios-nrpe service: PrivateTmp=true The man page for systemd says: PrivateTmp= Takes a boolean argument. If true, sets up a new file system namespace for th...
by martin.duspiva
Wed Sep 06, 2017 7:05 am
Forum: Open Source Nagios Projects
Topic: nrpe-server - bash plugins cannot access files
Replies: 5
Views: 4575

Re: nrpe-server - bash plugins cannot access files

It doesn't work for any file in arbitrary location. I seted variable TEST_FILE on TEST_FILE=/var/tmp/test, but result was same - The plugin worked good from console, but not over NRPE server. Our others BASH plugins, which doesn't aceess on files work well. The package is from official Debian repo. ...
by martin.duspiva
Tue Sep 05, 2017 10:11 am
Forum: Open Source Nagios Projects
Topic: nrpe-server - bash plugins cannot access files
Replies: 5
Views: 4575

nrpe-server - bash plugins cannot access files

Hi. We use nrpe-server with own simple bash plugin for testing age of file. After upgrade from Debian 8 ( nrpe-server v. 2.15 ) to Debian 9 ( nrpe-server v. 3.0.1 ), the plugin cannot access the testing file. Here is the code of plugin: #!/bin/bash TEST_FILE=/tmp/test_cron TIME=1800 if ! [ -f $TEST_...