We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faed0a4 commit 2423e46Copy full SHA for 2423e46
check-plugins/by-ssh/README.rst
@@ -192,6 +192,23 @@ You want to get a CRIT if the command does not return ``Command Result : 0``. A
192
--shell \
193
--command 'status interface | tail -1'
194
195
+Get a WARNING if the ``/opt`` directory does NOT have ``rwxrwxrwx`` permissions:
196
+
197
+.. code-block:: bash
198
199
+ ./by-ssh \
200
+ --hostname appserver \
201
+ --username nagios \
202
+ --warning-regex '^(?!drwxrwxrwx.*).*opt$' \
203
+ --command 'ls -ld /opt'
204
205
+ # another way:
206
207
208
209
+ --warning-regex '^(?!777)\d{3}$' \
210
+ --command 'stat /opt -c %a'
211
212
Output in case of an error will look like this:
213
214
.. code-block:: text
0 commit comments