Subversion Repositories vnag

Rev

Rev 52 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 52 Rev 53
Line 4... Line 4...
4
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
4
// Developed by Daniel Marschall, ViaThinkSoft <www.viathinksoft.com>
5
// Licensed under the terms of the Apache 2.0 license
5
// Licensed under the terms of the Apache 2.0 license
6
//
6
//
7
// Revision 2022-06-06
7
// Revision 2022-06-06
8
 
8
 
-
 
9
// ATTENTION!
-
 
10
// To make this work, you need to add following to /etc/sudoers (adjust the paths)
-
 
11
//     nagios ALL=(root) NOPASSWD:/daten/vnag/plugins/open_deleted_files/check_open_deleted_files
-
 
12
// You MUST make sure that the script check_hp_smartarray and all other VNag scripts are
-
 
13
// owned by root, otherwise the owner could change the code, and it would be executed with
-
 
14
// root privileges!
-
 
15
 
9
object CheckCommand "vnag_open_deleted_files" {
16
object CheckCommand "vnag_open_deleted_files" {
-
 
17
	command = [
-
 
18
		"/usr/bin/sudo",
-
 
19
 
10
	// PLEASE ADJUST THIS PATH
20
		// PLEASE ADJUST THIS PATH
11
	command = [ "/daten/vnag/plugins/open_deleted_files/check_open_deleted_files" ]
21
		"/daten/vnag/plugins/open_deleted_files/check_open_deleted_files"
-
 
22
	]
12
 
23
 
13
	arguments = {
24
	arguments = {
14
		"-d" = {
25
		"-d" = {
15
			value = "$vnag_open_deleted_files_dir$"
26
			value = "$vnag_open_deleted_files_dir$"
16
			description = "Directory to check (e.g. /tmp)"
27
			description = "Directory to check (e.g. /tmp)"