This file is indexed.

/usr/share/nagios3/plugins/eventhandlers/enable_active_service_checks is in nagios3-common 3.5.1.dfsg-2.1ubuntu1.3.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

# Write a command to the Nagios command file to cause
# it to enable active service checks.  This can be
# referred to as 'active' mode in a redundant monitoring
# environment.

# Notes: 
# 1) This script is not intended to be used as an 
#    event handler by itself.  Instead, it is used by other
#    event handler scripts (like the redundancy examples).
# 2) In order for Nagios to process any commands that
#    are written to the command file, you must enable
#    the check_external_commands option in the main
#    configuration file.

printfcmd="/usr/bin/printf"

CommandFile="/var/lib/nagios3/rw/nagios.cmd"

# get the current date/time in seconds since UNIX epoch
datetime=`date +%s`

# pipe the command to the command file
`$printfcmd "[%i] START_EXECUTING_SVC_CHECKS\n" $datetime >> $CommandFile`