/*
* Copyright (C), 2000-2007 by the monit project group.
* All Rights Reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MONIT_PROTOCOL_H
#define MONIT_PROTOCOL_H
#include <config.h>
#include "monitor.h"
#include "socket.h"
/* Protocols supported */
#define P_DEFAULT 1
#define P_HTTP 2
#define P_FTP 3
#define P_SMTP 4
#define P_POP 5
#define P_IMAP 6
#define P_NNTP 7
#define P_SSH 8
#define P_DWP 9
#define P_LDAP2 10
#define P_LDAP3 11
#define P_RDATE 12
#define P_RSYNC 13
#define P_GENERIC 14
#define P_APACHESTATUS 15
#define P_NTP3 16
#define P_MYSQL 17
#define P_DNS 18
#define P_POSTFIXPOLICY 19
#define P_TNS 20
#define P_PGSQL 21
#define P_CLAMAV 22
void gc_protocols();
/* Protocol Factory routines */
void* create_apache_status();
void* create_default();
void* create_dns();
void* create_dwp();
void* create_ftp();
void* create_generic();
void* create_http();
void* create_imap();
void* create_clamav();
void* create_ldap2();
void* create_ldap3();
void* create_mysql();
void* create_nntp();
void* create_ntp3();
void* create_postfix_policy();
void* create_pop();
void* create_smtp();
void* create_ssh();
void* create_rdate();
void* create_rsync();
void* create_tns();
void* create_pgsql();
/* "Package" locale Protocol routines */
int check_apache_status(Socket_T);
int check_default(Socket_T);
int check_dns(Socket_T);
int check_dwp(Socket_T);
int check_ftp(Socket_T);
int check_generic(Socket_T);
int check_http(Socket_T);
int check_imap(Socket_T);
int check_clamav(Socket_T);
int check_ldap2(Socket_T);
int check_ldap3(Socket_T);
int check_mysql(Socket_T);
int check_nntp(Socket_T);
int check_ntp3(Socket_T);
int check_postfix_policy(Socket_T);
int check_pop(Socket_T);
int check_smtp(Socket_T);
int check_ssh(Socket_T);
int check_rdate(Socket_T);
int check_rsync(Socket_T);
int check_tns(Socket_T);
int check_pgsql(Socket_T);
#endif
syntax highlighted by Code2HTML, v. 0.9.1