Args for host_check commands
Daniel Riek
riek at de.alcove.com
Fri Oct 18 21:53:54 CEST 2002
Hi,
we have a environment here, where wee needed the possibility to pass an
arg to a host check command in the same way as with service checks
(command!ARG1...). Here is a (very) little patch, that makes that
possible.
Regards, Daniel
--
Daniel Riek <riek at de.alcove.com> - http://www.alcove.com/de/
* Technical Manager - Tel.: +49 (0)2 28 / 9 08 69 85
* ALCOVE Deutschland GmbH - Fax: +49 (0)2 28 / 9 08 69 84
* Liberating Software - Mobil: +49 (0)1 71 / 2 80 08 79
---------------------
--- base/config.c.orig Fri Oct 18 21:44:36 2002
+++ base/config.c Fri Oct 18 21:44:53 2002
@@ -1476,7 +1476,7 @@
/* hosts that don't have check commands defined shouldn't ever be checked... */
if(temp_host->host_check_command!=NULL){
- temp_command=find_command(temp_host->host_check_command,NULL);
+ temp_command=find_command(my_strtok(temp_host->host_check_command,"!"),NULL);
if(temp_command==NULL){
snprintf(temp_buffer,sizeof(temp_buffer),"Error: Host check command '%s' specified for host '%s' is not defined anywhere!",temp_host->host_check_command,temp_host->name);
temp_buffer[sizeof(temp_buffer)-1]='\x0';
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20021018/2a41faa6/attachment.sig>
More information about the Users
mailing list