monitor.h
431 Bytes
#ifndef __MONITOR_H__
#define __MONITOR_H__
#include <syslog.h> /* for logging */
#define MON_INFO 0
#define MON_WARNING 1
#define MON_CRITICAL 2
#define MON_FAILURE 3
int monitor(unsigned int sev, const char * pattern, const char * message);
int syslogMonitor (unsigned int logLvl, unsigned int sev, const char *pattern, const char * message, ...) __attribute__ ((format (printf, 4, 5)));
#endif /* __MONITOR_H__ */