forked from NagiosEnterprises/nagioscore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Doc updates, new option for bare update check
git-svn-id: https://nagios.svn.sourceforge.net/svnroot/nagios/nagioscore/trunk@1226 5f96b256-904b-4d8d-8c98-d829582c6739
- Loading branch information
Ethan Galstad
committed
Dec 14, 2008
1 parent
fa10d94
commit 07d870f
Showing
17 changed files
with
310 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* CONFIG.C - Configuration input and verification routines for Nagios | ||
* | ||
* Copyright (c) 1999-2008 Ethan Galstad ([email protected]) | ||
* Last Modified: 12-04-2008 | ||
* Last Modified: 12-14-2008 | ||
* | ||
* License: | ||
* | ||
|
@@ -123,6 +123,7 @@ extern int auto_reschedule_checks; | |
extern int additional_freshness_latency; | ||
|
||
extern int check_for_updates; | ||
extern int bare_update_check; | ||
|
||
extern int use_aggressive_host_checking; | ||
extern unsigned long cached_host_check_horizon; | ||
|
@@ -1287,6 +1288,9 @@ int read_main_config_file(char *main_config_file){ | |
else if(!strcmp(variable,"check_for_updates")) | ||
check_for_updates=(atoi(value)>0)?TRUE:FALSE; | ||
|
||
else if(!strcmp(variable,"bare_update_check")) | ||
bare_update_check=(atoi(value)>0)?TRUE:FALSE; | ||
|
||
/*** AUTH_FILE VARIABLE USED BY EMBEDDED PERL INTERPRETER ***/ | ||
else if(!strcmp(variable,"auth_file")){ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
* License: GPL | ||
* Copyright (c) 2003-2008 Ethan Galstad ([email protected]) | ||
* | ||
* Last Modified: 12-10-2008 | ||
* Last Modified: 12-14-2008 | ||
* | ||
* License: | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* UTILS.C - Miscellaneous utility functions for Nagios | ||
* | ||
* Copyright (c) 1999-2008 Ethan Galstad ([email protected]) | ||
* Last Modified: 12-12-2008 | ||
* Last Modified: 12-14-2008 | ||
* | ||
* License: | ||
* | ||
|
@@ -149,6 +149,7 @@ extern int auto_reschedule_checks; | |
extern int additional_freshness_latency; | ||
|
||
extern int check_for_updates; | ||
extern int bare_update_check; | ||
extern time_t last_update_check; | ||
extern char *last_program_version; | ||
extern int update_available; | ||
|
@@ -4427,7 +4428,9 @@ int query_update_api(void){ | |
} | ||
|
||
/* generate the query */ | ||
asprintf(&api_query,"v=1&product=nagios&tinycheck=1&stableonly=1&version=%s%s",PROGRAM_VERSION,(api_query_opts==NULL)?"":api_query_opts); | ||
asprintf(&api_query,"v=1&product=nagios&tinycheck=1&stableonly=1"); | ||
if(bare_update_check==FALSE) | ||
asprintf(&api_query,"&version=%s%s",api_query,PROGRAM_VERSION,(api_query_opts==NULL)?"":api_query_opts); | ||
|
||
/* generate the HTTP request */ | ||
asprintf(&buf,"POST %s HTTP/1.0\r\n",api_path); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
// | ||
// AUTO | ||
|
||
|
||
$cfg['cgi_config_file']='@sysconfdir@/cgi.cfg'; // location of the CGI config file | ||
$cfg['main_config_file']='@sysconfdir@/nagios.cfg'; // default location of the main Nagios config file | ||
|
||
$cfg['status_file']='@localstatedir@/status.dat'; // default location of Nagios status file | ||
$cfg['state_retention_file']='@localstatedir@/retention.dat'; // default location of Nagios retention file | ||
|
||
|
||
|
||
// utilities | ||
require_once(dirname(__FILE__).'/includes/utils.inc.php'); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.