Personal tools
HylaFAX The world's most advanced open source fax server

Difference between revisions of "Monitor your fax scheduler/queue with OpenSMART"

 
m (Reverted edits by YzzRtw (Talk); changed back to last version by Pfournier)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
The OpenSMART Monitoring and Reporting Tool (see http://opensmart.sourceforge.net/) is able
 
The OpenSMART Monitoring and Reporting Tool (see http://opensmart.sourceforge.net/) is able
to monitor the Hylafax Scheduler/Queue.
+
to monitor the Hylafax scheduler/queue.
  
A HowTo to monitor your hylafax server can be found at http://opensmart.sourceforge.net/docs/documentation/userguide/appmon_hylafax.html
+
A HowTo for monitoring your hylafax server can be found at http://opensmart.sourceforge.net/docs/documentation/userguide/appmon_hylafax.html
  
 
Here is an example configuration part for the OpenSMART agent:
 
Here is an example configuration part for the OpenSMART agent:
Line 11: Line 11:
 
   <PROCESS>
 
   <PROCESS>
 
     <PROCNAME>faxq|hfaxd|faxgetty</PROCNAME>
 
     <PROCNAME>faxq|hfaxd|faxgetty</PROCNAME>
     <NUMBER>3</NUMBER
+
     <NUMBER>3</NUMBER>
 
     <ERRORLEVEL>ERROR</ERRORLEVEL>
 
     <ERRORLEVEL>ERROR</ERRORLEVEL>
 
     <DESCRIPTION>
 
     <DESCRIPTION>
Line 24: Line 24:
 
<SOCKETS>
 
<SOCKETS>
 
   <CHECK4SOCKET>
 
   <CHECK4SOCKET>
     <!-- Maybe you have do define the right interface definition for
+
     <!-- Maybe you have to define the right interface definition for
 
     your system -->
 
     your system -->
 
     <INTERFACE>:::</INTERFACE>
 
     <INTERFACE>:::</INTERFACE>
Line 41: Line 41:
 
     <LOGFILTER>
 
     <LOGFILTER>
 
       <REGEX>FaxGetty\[\d+\]: RECV FAX \(\d+\): recvq/fax.*.tif from .*, route
 
       <REGEX>FaxGetty\[\d+\]: RECV FAX \(\d+\): recvq/fax.*.tif from .*, route
  to unspecified, \d pages in \d:\d\d</REGEX></REGEX>
+
  to unspecified, \d pages in \d:\d\d</REGEX>
 
       <REGEX>HylaFAX\[\d+\]: .* of .* \[.*\] deleted /recvq/fax.*.tif</REGEX>
 
       <REGEX>HylaFAX\[\d+\]: .* of .* \[.*\] deleted /recvq/fax.*.tif</REGEX>
 
       <REGEX>FaxGetty\[\d+\]: RECV FAX \(\d+\): from .*, page \d in \d:\d\d, INF, 3.85 line/mm, .*, .* bit/s</REGEX>
 
       <REGEX>FaxGetty\[\d+\]: RECV FAX \(\d+\): from .*, page \d in \d:\d\d, INF, 3.85 line/mm, .*, .* bit/s</REGEX>
Line 59: Line 59:
  
 
<DISK>
 
<DISK>
   <!-- We assume, /var/spool/hylafax is a own filesystem! -->
+
   <!-- We assume, /var/spool/hylafax is an own filesystem! -->
 
   <FS>
 
   <FS>
 
     <FSNAME>^/var/spool/hylafax$</FSNAME>
 
     <FSNAME>^/var/spool/hylafax$</FSNAME>
Line 70: Line 70:
 
     <ERRORLEVEL>ERROR</ERRORLEVEL>
 
     <ERRORLEVEL>ERROR</ERRORLEVEL>
 
     <VALUE>95</VALUE>
 
     <VALUE>95</VALUE>
     <DESCRIPTION>/var/spool/hylafax is full.</DESCRIPTION>
+
     <DESCRIPTION>/var/spool/hylafax is full.</DESCRIPTION>
 
   </FS>
 
   </FS>
  

Latest revision as of 01:44, 19 June 2007

The OpenSMART Monitoring and Reporting Tool (see http://opensmart.sourceforge.net/) is able to monitor the Hylafax scheduler/queue.

A HowTo for monitoring your hylafax server can be found at http://opensmart.sourceforge.net/docs/documentation/userguide/appmon_hylafax.html

Here is an example configuration part for the OpenSMART agent:

<!-- ... -->
<PROC>
  <PROCESS>
    <PROCNAME>faxq|hfaxd|faxgetty</PROCNAME>
    <NUMBER>3</NUMBER>
    <ERRORLEVEL>ERROR</ERRORLEVEL>
    <DESCRIPTION>
      hylafax isn't running. You should restart hylafax with
      /etc/init.d/hylafax start (as root)
      <!-- The restart command depends on your system... -->
    </DESCRIPTION>
  </PROCESS>
  <!-- More processes you want to check -->
</PROC>

<SOCKETS>
  <CHECK4SOCKET>
    <!-- Maybe you have to define the right interface definition for
    your system -->
    <INTERFACE>:::</INTERFACE>
    <PORT>4559</PORT>
    <ERRORLEVEL>ERROR</ERRORLEVEL>
    <DESCRIPTION>hylafax scheduler hasn't an opened socket on 4559</DESCRIPTION>
  </CHECK4SOCKET>
  <!-- More sockets you want to check -->
</SOCKETS>

<LOGS>
  <LOGFILE>
    <LOGFILENAME>/var/log/messages</LOGFILENAME>
    
    <!-- we want to filter all proper recieved/sended fax entries
    <LOGFILTER>
      <REGEX>FaxGetty\[\d+\]: RECV FAX \(\d+\): recvq/fax.*.tif from .*, route
 to unspecified, \d pages in \d:\d\d</REGEX>
      <REGEX>HylaFAX\[\d+\]: .* of .* \[.*\] deleted /recvq/fax.*.tif</REGEX>
      <REGEX>FaxGetty\[\d+\]: RECV FAX \(\d+\): from .*, page \d in \d:\d\d, INF, 3.85 line/mm, .*, .* bit/s</REGEX>
      <REGEX>FaxGetty\[\d+\]: RECV FAX: bin/faxrcvd "recvq/fax.*.tif" "ttyS1"
".*" ""</REGEX>
    </LOGFILTER>

    <LOGFILTER>
      <REGEX>.*</REGEX><!-- Everything unknown -->
      <PRIORITY>1000</PRIORITY>
      <!-- That is AFTER all default priorities! -->
      <ERRORLEVEL>WARNING</ERRORLEVEL>
    </LOGFILTER>
  </LOGFILE>
  <!-- More logs you want to check -->
</LOGS>

<DISK>
  <!-- We assume, /var/spool/hylafax is an own filesystem! -->
  <FS>
    <FSNAME>^/var/spool/hylafax$</FSNAME>
    <ERRORLEVEL>WARNING</ERRORLEVEL>
    <VALUE>80</VALUE>
    <DESCRIPTION>/var/spool/hylafax is getting full.</DESCRIPTION>
  </FS>
  <FS>
    <FSNAME>^/var/spool/hylafax$</FSNAME>
    <ERRORLEVEL>ERROR</ERRORLEVEL>
    <VALUE>95</VALUE>
    <DESCRIPTION>/var/spool/hylafax is full.</DESCRIPTION>
  </FS>

  <!-- More filesystems you want to check -->
</DISK>

This page was last edited on 19 June 2007, at 01:44.

Powered by MediaWiki
Attribution-ShareAlike 2.5

Project hosted by iFAX Solutions