of course i screwed up my patch. i cleaned things up to post (removing
extraneous comments) and messed it up. it should be just a plain
atoi(val).
--- xdata/xsddefault.c.orig 2005-01-03 20:14:18.000000000 -0800
+++ xdata/xsddefault.c 2005-01-04 06:22:38.000000000 -0800
@@ -638,7 +638,7 @@
else if(!strcmp(var,"check_latency"))
temp_hoststatus->latency=strtod(val,NULL);
else if(!strcmp(var,"current_state"))
- temp_hoststatus->status=(atoi(val)>0)?TRUE:FALSE;
+ temp_hoststatus->status=atoi(val);
else if(!strcmp(var,"last_hard_state"))
temp_hoststatus->last_hard_state=atoi(val);
else if(!strcmp(var,"plugin_output"))
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]