00001 #ifndef __MONITOR_H__ 00002 #define __MONITOR_H__ 00003 00004 #include <syslog.h> /* for logging */ 00005 00006 #define MON_INFO 0 00007 #define MON_WARNING 1 00008 #define MON_CRITICAL 2 00009 #define MON_FAILURE 3 00010 00011 int monitor(unsigned int sev, const char * pattern, const char * message); 00012 int syslogMonitor (unsigned int logLvl, unsigned int sev, const char *pattern, const char * message, ...) __attribute__ ((format (printf, 4, 5))); 00013 00014 #endif /* __MONITOR_H__ */
1.5.8