All references to this option have been removed from the manpages, too.
Exec "myuser:mygroup" "myprog"
Exec "otheruser" "/path/to/another/binary" "arg0" "arg1"
NotificationExec "user" "/usr/lib/collectd/exec/handle_notification"
- NagiosExec "nagios:nagios" "/usr/lib/nagios/plugins/check_something"
</Plugin>
=head1 DESCRIPTION
-The C<exec plugin> forks of an executable either to receive values, to dispatch
-notifications to the outside world or to be able to use Nagios plugins. The
-syntax of the configuration is explained in L<collectd.conf(5)> but summarized
-in the above synopsis.
+The C<exec plugin> forks of an executable either to receive values or to
+dispatch notifications to the outside world. The syntax of the configuration is
+explained in L<collectd.conf(5)> but summarized in the above synopsis.
If you want/need better performance or more functionality you should take a
long look at the C<perl plugin>, L<collectd-perl(5)>.
=head1 EXECUTABLE TYPES
-There are currently three types of executables that can be executed by the
+There are currently two types of executables that can be executed by the
C<exec plugin>:
=over 4
See L<NOTIFICATION DATA FORMAT> below for a description of the data passed to
these programs.
+=begin comment
+
=item C<NagiosExec>
The executable is treated as a Nagios plugin. That means that the first line
documentation. If a plugin works with Nagios but not with collectd please
complain on the collectd mailing list instead.
+=end comment
+
=back
=head1 EXEC DATA FORMAT
=item B<NotificationExec> I<User>[:[I<Group>]] I<Executable> [I<E<lt>argE<gt>> [I<E<lt>argE<gt>> ...]]
-=item B<NagiosExec> I<User>[:[I<Group>]] I<Executable> [I<E<lt>argE<gt>> [I<E<lt>argE<gt>> ...]]
-
Execute the executable I<Executable> as user I<User>. If the user name is
followed by a colon and a group name, the effective group is set to that group.
The real group and saved-set group will be set to the default group of that
values may be changed. If you want to be absolutely sure that something is
passed as-is please enclose it in quotes.
-The B<Exec>, B<NotificationExec>, and B<NagiosExec> statements change the
-semantics of the programs executed, i.E<nbsp>e. the data passed to them and the
-response expected from them. This is documented in great detail in
-L<collectd-exec(5)>.
+The B<Exec> and B<NotificationExec> statements change the semantics of the
+programs executed, i.E<nbsp>e. the data passed to them and the response
+expected from them. This is documented in great detail in L<collectd-exec(5)>.
=back
}
memset (pl, '\0', sizeof (program_list_t));
+#if 0
if (strcasecmp ("NagiosExec", ci->key) == 0)
pl->flags |= PL_NAGIOS_PLUGIN;
- else if (strcasecmp ("NotificationExec", ci->key) == 0)
+ else
+#endif
+ if (strcasecmp ("NotificationExec", ci->key) == 0)
pl->flags |= PL_NOTIF_ACTION;
else
pl->flags |= PL_NORMAL;
{
oconfig_item_t *child = ci->children + i;
if ((strcasecmp ("Exec", child->key) == 0)
+#if 0
|| (strcasecmp ("NagiosExec", child->key) == 0)
+#endif
|| (strcasecmp ("NotificationExec", child->key) == 0))
exec_config_exec (child);
else