myrun Struct Reference

Defines data for application runtime. More...


Data Fields

char * controlfile
 The file to read configuration from.

char * logfile
 The file to write logdata into.

char * localhostname
 The host name for localhost.

char * mailserver
 Mailserver used for alert notification.

char * pidfile
 This programs pidfile.

char * mygroup
 Group Name of the Process.

int have_tty
 Do we have a valid tty.

int debug
 Write debug information - TRUE or FALSE.

int use_syslog
 If TRUE write log to syslog.

int dolog
 TRUE if program should log actions, otherwise FALSE.

int isdaemon
 TRUE if program should run as a daemon.

int polltime
 In deamon mode, the sleeptime (sec) between run.

int dohttpd
 TRUE if monit HTTP server should run.

int httpdssl
 TRUE if monit HTTP server uses ssl.

char * httpsslpem
 PEM file for the HTTPS server.

int clientssl
 TRUE if monit HTTP server uses ssl with client auth.

char * httpsslclientpem
 PEM file/dir to check against at connect.

int servicessl
 TRUE if monit has ssl service checks.

int allowselfcert
 TRUE if self certified client certs are allowed.

int httpdport
 The monit http server's portnumber.

int validate
 TRUE - use validate behaviour on startup.

int init
 TRUE - don't background to run from init.

int doprocess
 TRUE if process status engine is used.

char * bind_addr
 The address monit http will bind to.

mode_t umask
 The initial umask monit was started with.

time_t timestamp
 Control file last modified timestamp.

double loadavg [3]
 Load average triple.

myrun::myenvironment Env
 An object holding program relevant "environment" data, see; env.c.

myrun::myautentication Auth
 An object holding Basic Authentication information.

myrun::myformat MailFormat
 User selected standard mail format.

pthread_mutex_t mutex
 Mutex used for process data synchronization.


Detailed Description

Defines data for application runtime.

Definition at line 118 of file monitor.h.


Field Documentation

int myrun::allowselfcert
 

TRUE if self certified client certs are allowed.

Definition at line 137 of file monitor.h.

Referenced by printrunlist().

struct myrun::myautentication myrun::Auth
 

An object holding Basic Authentication information.

Referenced by can_http(), get_basic_authentication_header(), and printrunlist().

char* myrun::bind_addr
 

The address monit http will bind to.

Definition at line 142 of file monitor.h.

Referenced by check_httpd(), d_check_process(), and printrunlist().

int myrun::clientssl
 

TRUE if monit HTTP server uses ssl with client auth.

Definition at line 134 of file monitor.h.

char* myrun::controlfile
 

The file to read configuration from.

Definition at line 119 of file monitor.h.

Referenced by check_process(), init_files(), is_rcfile_changed(), and printrunlist().

int myrun::debug
 

Write debug information - TRUE or FALSE.

Definition at line 126 of file monitor.h.

Referenced by printrunlist().

int myrun::dohttpd
 

TRUE if monit HTTP server should run.

Definition at line 131 of file monitor.h.

Referenced by can_http(), and printrunlist().

int myrun::dolog
 

TRUE if program should log actions, otherwise FALSE.

Definition at line 128 of file monitor.h.

Referenced by log(), log_init(), and printrunlist().

int myrun::doprocess
 

TRUE if process status engine is used.

Definition at line 141 of file monitor.h.

Referenced by printrunlist().

struct myrun::myenvironment myrun::Env
 

An object holding program relevant "environment" data, see; env.c.

Referenced by find_rcfile(), and init_files().

int myrun::have_tty
 

Do we have a valid tty.

Definition at line 125 of file monitor.h.

Referenced by error(), init_env(), log(), and redirect_stdfd().

int myrun::httpdport
 

The monit http server's portnumber.

Definition at line 138 of file monitor.h.

Referenced by check_httpd(), d_check_process(), and printrunlist().

int myrun::httpdssl
 

TRUE if monit HTTP server uses ssl.

Definition at line 132 of file monitor.h.

Referenced by d_check_process(), destroy_wrapper(), printrunlist(), start_httpd(), status(), and status_group().

char* myrun::httpsslclientpem
 

PEM file/dir to check against at connect.

Definition at line 135 of file monitor.h.

Referenced by printrunlist(), start_httpd(), and status_group().

char* myrun::httpsslpem
 

PEM file for the HTTPS server.

Definition at line 133 of file monitor.h.

Referenced by d_check_process(), printrunlist(), start_httpd(), and status().

int myrun::init
 

TRUE - don't background to run from init.

Definition at line 140 of file monitor.h.

int myrun::isdaemon
 

TRUE if program should run as a daemon.

Definition at line 129 of file monitor.h.

Referenced by can_http(), and printrunlist().

double myrun::loadavg[3]
 

Load average triple.

Definition at line 146 of file monitor.h.

Referenced by update_loadavg().

char* myrun::localhostname
 

The host name for localhost.

Definition at line 121 of file monitor.h.

char* myrun::logfile
 

The file to write logdata into.

Definition at line 120 of file monitor.h.

Referenced by printrunlist().

struct myrun::myformat myrun::MailFormat
 

User selected standard mail format.

Referenced by printrunlist().

char* myrun::mailserver
 

Mailserver used for alert notification.

Definition at line 122 of file monitor.h.

Referenced by printrunlist().

pthread_mutex_t myrun::mutex
 

Mutex used for process data synchronization.

Definition at line 167 of file monitor.h.

char* myrun::mygroup
 

Group Name of the Process.

Definition at line 124 of file monitor.h.

Referenced by gc().

char* myrun::pidfile
 

This programs pidfile.

Definition at line 123 of file monitor.h.

Referenced by exist_daemon(), finalize_files(), init_files(), printrunlist(), and status().

int myrun::polltime
 

In deamon mode, the sleeptime (sec) between run.

Definition at line 130 of file monitor.h.

Referenced by printrunlist().

int myrun::servicessl
 

TRUE if monit has ssl service checks.

Definition at line 136 of file monitor.h.

time_t myrun::timestamp
 

Control file last modified timestamp.

Definition at line 144 of file monitor.h.

Referenced by init_files(), and is_rcfile_changed().

mode_t myrun::umask
 

The initial umask monit was started with.

Definition at line 143 of file monitor.h.

Referenced by spawn().

int myrun::use_syslog
 

If TRUE write log to syslog.

Definition at line 127 of file monitor.h.

Referenced by log(), log_close(), and printrunlist().

int myrun::validate
 

TRUE - use validate behaviour on startup.

Definition at line 139 of file monitor.h.


The documentation for this struct was generated from the following file: