myrun Struct Reference

Defines data for application runtime. More...


Data Fields

char * controlfile
 The file to read configuration from. More...

char * logfile
 The file to write logdata into. More...

char * localhostname
 The host name for localhost. More...

char * mailserver
 Mailserver used for alert notification. More...

char * pidfile
 This programs pidfile. More...

int debug
 Write debug information - TRUE or FALSE. More...

int use_syslog
 If TRUE write log to syslog. More...

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

int isdaemon
 TRUE if program should run as a daemon. More...

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

int dohttpd
 TRUE if monit HTTP server should run. More...

int httpdport
 The monit http server's portnumber. More...

int validate
 TRUE - use validate behaviour on startup. More...

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

int doprocess
 TRUE if process status engine is used. More...

char * bind_addr
 The address monit http will bind to. More...

mode_t umask
 The initial umask monit was started with. More...

double loadavg [3]
 Load average triple. More...

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

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

myrun::myformat MailFormat
 User selected standard mail format. More...

pthread_mutex_t mutex
 Mutex used for process data synchronization. More...


Detailed Description

Defines data for application runtime.

Definition at line 87 of file monitor.h.


Field Documentation

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 103 of file monitor.h.

Referenced by check_httpd(), dstart_process(), dstop_process(), and printrunlist().

char* myrun::controlfile
 

The file to read configuration from.

Definition at line 88 of file monitor.h.

Referenced by dstart_process(), dstop_process(), is_rcfile_changed(), printrunlist(), and set_file_timestamp().

int myrun::debug
 

Write debug information - TRUE or FALSE.

Definition at line 93 of file monitor.h.

Referenced by log(), and printrunlist().

int myrun::dohttpd
 

TRUE if monit HTTP server should run.

Definition at line 98 of file monitor.h.

Referenced by can_http(), and printrunlist().

int myrun::dolog
 

TRUE if program should log actions, otherwise FALSE.

Definition at line 95 of file monitor.h.

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

int myrun::doprocess
 

TRUE if process status engine is used.

Definition at line 102 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::httpdport
 

The monit http server's portnumber.

Definition at line 99 of file monitor.h.

Referenced by check_httpd(), dstart_process(), dstop_process(), monit_http(), and printrunlist().

int myrun::Init
 

TRUE - don't background to run from init.

Definition at line 101 of file monitor.h.

int myrun::isdaemon
 

TRUE if program should run as a daemon.

Definition at line 96 of file monitor.h.

Referenced by can_http(), and printrunlist().

double myrun::loadavg[3]
 

Load average triple.

Definition at line 106 of file monitor.h.

Referenced by update_loadavg().

char* myrun::localhostname
 

The host name for localhost.

Definition at line 90 of file monitor.h.

char* myrun::logfile
 

The file to write logdata into.

Definition at line 89 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 91 of file monitor.h.

Referenced by printrunlist().

pthread_mutex_t myrun::mutex
 

Mutex used for process data synchronization.

Definition at line 127 of file monitor.h.

char* myrun::pidfile
 

This programs pidfile.

Definition at line 92 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 97 of file monitor.h.

Referenced by printrunlist().

mode_t myrun::umask
 

The initial umask monit was started with.

Definition at line 104 of file monitor.h.

Referenced by spawn().

int myrun::use_syslog
 

If TRUE write log to syslog.

Definition at line 94 of file monitor.h.

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

int myrun::validate
 

TRUE - use validate behaviour on startup.

Definition at line 100 of file monitor.h.


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