summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bea27e8)
raw | patch | inline | side by side (parent: bea27e8)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 11 Feb 2008 11:35:02 +0000 (12:35 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 11 Feb 2008 11:35:02 +0000 (12:35 +0100) |
All references to this option have been removed from the manpages, too.
src/collectd-exec.pod | patch | blob | history | |
src/collectd.conf.pod | patch | blob | history | |
src/exec.c | patch | blob | history |
diff --git a/src/collectd-exec.pod b/src/collectd-exec.pod
index 32c3863d4b3e69082674c82f21547857ffbcd74c..fe2fd6303d4e3dc34eece8ca3201fedacc289840 100644 (file)
--- a/src/collectd-exec.pod
+++ b/src/collectd-exec.pod
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
diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod
index 09661eb6382b80369a6276d50ac114acd21f45d7..7e05bdbe9a36f6d0832859b69e623acee5be4c35 100644 (file)
--- a/src/collectd.conf.pod
+++ b/src/collectd.conf.pod
=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
diff --git a/src/exec.c b/src/exec.c
index d5a8d0fd57562cd292f2156c42130da48f803dbe..ced03f2924a798289456c7d3e0b0c2067d3db4f6 100644 (file)
--- a/src/exec.c
+++ b/src/exec.c
}
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