blob: 9677d920f99178b877d96c73d627293bab2a9b7d [file] [log] [blame]
/*
* Copyright (C) Tildeslash Ltd. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License version 3.
*
* 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 Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* In addition, as a special exception, the copyright holders give
* permission to link the code of portions of this program with the
* OpenSSL library under certain conditions as described in each
* individual source file, and distribute linked combinations
* including the two.
*
* You must obey the GNU Affero General Public License in all respects
* for all of the code used other than OpenSSL.
*/
#ifndef MONIT_PROTOCOL_H
#define MONIT_PROTOCOL_H
#include "config.h"
#include "monit.h"
#include "socket.h"
/* Protocols supported */
typedef enum {
Protocol_DEFAULT = 0,
Protocol_HTTP,
Protocol_FTP,
Protocol_SMTP,
Protocol_POP,
Protocol_IMAP,
Protocol_NNTP,
Protocol_SSH,
Protocol_DWP,
Protocol_LDAP2,
Protocol_LDAP3,
Protocol_RDATE,
Protocol_RSYNC,
Protocol_GENERIC,
Protocol_APACHESTATUS,
Protocol_NTP3,
Protocol_MYSQL,
Protocol_DNS,
Protocol_POSTFIXPOLICY,
Protocol_TNS,
Protocol_PGSQL,
Protocol_CLAMAV,
Protocol_SIP,
Protocol_LMTP,
Protocol_GPS,
Protocol_RADIUS,
Protocol_MEMCACHE
} Protocol_Type;
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);
int check_sip(Socket_T);
int check_lmtp(Socket_T);
int check_gps(Socket_T);
int check_radius(Socket_T);
int check_memcache(Socket_T);
/*
* Returns a protocol object for the given protocol type
*/
Protocol_T Protocol_get(Protocol_Type type);
#endif