Icinga Critical Faxserver

Hallo Community,

ich habe auf einer MD 7.11.03 seit dem Update das Problem, dass der Icinga Critical für den Faxserver wirft.
Auch nach mehrmaligen Neustart von hylafax oder “Faxserver Konfigurieren” bekomme ich Ihn nicht mehr Grün.

“CRITICAL: iaxmodem procs PROCS OK: 6 processes with command name ‘iaxmodem’”

Korrekt scheint der Faxserver eingerichtet zu sein, mit aktuell 5 Leitungen


root@rei-voip:~# ps aux | grep -i fax
root     17814  0.0  0.0   6876   564 ?        S    Mar21   0:00 tail -f /var/log/syslog /var/log/mobydick/rest.log /var/log/hylafax/hylafax.log.0
root     22120  0.0  0.0  11092   880 pts/8    S+   12:35   0:00 grep -i fax
uucp     29060  0.0  0.0  29716  1220 ?        Ss   Mar22   0:02 /usr/sbin/faxq
uucp     29064  0.0  0.0  36236  1852 ?        S    Mar22   0:00 /usr/sbin/hfaxd -d -i 4559
uucp     29095  0.0  0.0  32228  1588 ?        Ss   Mar22   0:04 /usr/sbin/faxgetty -D ttyIAX0
uucp     29099  0.0  0.0  32228  1192 ?        Ss   Mar22   0:03 /usr/sbin/faxgetty -D ttyIAX2
uucp     29102  0.0  0.0  32228  1200 ?        Ss   Mar22   0:04 /usr/sbin/faxgetty -D ttyIAX3
uucp     29103  0.0  0.0  32228  1200 ?        Ss   Mar22   0:03 /usr/sbin/faxgetty -D ttyIAX1
uucp     29104  0.0  0.0  32228  1196 ?        Ss   Mar22   0:06 /usr/sbin/faxgetty -D ttyIAX4
uucp     29221  0.1  0.1  40580  2256 ?        S    Mar22   2:19 /usr/sbin/hfaxd -d -i 4559

Hat jemand eine Idee? Ein Neustart meldet


Mar 23 12:36:38 localhost FaxGetty[29095]: CAUGHT SIGNAL 15
Mar 23 12:36:38 localhost FaxGetty[29095]: CLOSE /dev/ttyIAX0
Mar 23 12:36:38 localhost FaxGetty[29099]: CAUGHT SIGNAL 15
Mar 23 12:36:38 localhost FaxGetty[29099]: CLOSE /dev/ttyIAX2
Mar 23 12:36:38 localhost FaxGetty[29102]: CAUGHT SIGNAL 15
Mar 23 12:36:38 localhost FaxGetty[29102]: CLOSE /dev/ttyIAX3
Mar 23 12:36:38 localhost FaxGetty[29103]: CAUGHT SIGNAL 15
Mar 23 12:36:38 localhost FaxGetty[29103]: CLOSE /dev/ttyIAX1
Mar 23 12:36:38 localhost FaxGetty[29104]: CAUGHT SIGNAL 15
Mar 23 12:36:38 localhost FaxGetty[29104]: CLOSE /dev/ttyIAX4
Mar 23 12:36:41 localhost FaxQueuer[23533]: HylaFAX (tm) Version 6.0.5
Mar 23 12:36:41 localhost FaxQueuer[23533]: Copyright (c) 1990-1996 Sam Leffler
Mar 23 12:36:41 localhost FaxQueuer[23533]: Copyright (c) 1991-1996 Silicon Graphics, Inc.
Mar 23 12:36:41 localhost FaxQueuer[23533]: HylaClient::send: client/29221: Cannot open FIFO: No such device or address
Mar 23 12:36:41 localhost HylaFAX[23538]: Listening to 0.0.0.0:4559
Mar 23 12:36:41 localhost HylaFAX[23538]: HylaFAX INET Protocol Server: restarted.
Mar 23 12:36:41 localhost FaxGetty[23553]: Cannot open file "etc/dialrule.europe" for reading
Mar 23 12:36:41 localhost FaxGetty[23553]: Parse error in dial string rules "etc/dialrule.europe"
Mar 23 12:36:41 localhost FaxGetty[23560]: Cannot open file "etc/dialrule.europe" for reading
Mar 23 12:36:41 localhost FaxGetty[23560]: Parse error in dial string rules "etc/dialrule.europe"
Mar 23 12:36:41 localhost FaxGetty[23559]: Cannot open file "etc/dialrule.europe" for reading
Mar 23 12:36:41 localhost FaxGetty[23559]: Parse error in dial string rules "etc/dialrule.europe"
Mar 23 12:36:41 localhost FaxGetty[23570]: OPEN /dev/ttyIAX0  HylaFAX (tm) Version 6.0.5
Mar 23 12:36:41 localhost FaxGetty[23574]: OPEN /dev/ttyIAX3  HylaFAX (tm) Version 6.0.5
Mar 23 12:36:41 localhost FaxGetty[23573]: OPEN /dev/ttyIAX4  HylaFAX (tm) Version 6.0.5
Mar 23 12:36:41 localhost FaxGetty[23555]: Cannot open file "etc/dialrule.europe" for reading
Mar 23 12:36:41 localhost FaxGetty[23555]: Parse error in dial string rules "etc/dialrule.europe"
Mar 23 12:36:41 localhost FaxGetty[23581]: OPEN /dev/ttyIAX1  HylaFAX (tm) Version 6.0.5
Mar 23 12:36:41 localhost FaxGetty[23558]: Cannot open file "etc/dialrule.europe" for reading
Mar 23 12:36:41 localhost FaxGetty[23558]: Parse error in dial string rules "etc/dialrule.europe"
Mar 23 12:36:41 localhost FaxGetty[23582]: OPEN /dev/ttyIAX2  HylaFAX (tm) Version 6.0.5
Mar 23 12:36:50 localhost FaxGetty[23573]: MODEM WWW.SOFT-SWITCH.ORG spandsp/
Mar 23 12:36:50 localhost FaxGetty[23570]: MODEM WWW.SOFT-SWITCH.ORG spandsp/
Mar 23 12:36:50 localhost FaxGetty[23574]: MODEM WWW.SOFT-SWITCH.ORG spandsp/
Mar 23 12:36:50 localhost FaxGetty[23582]: MODEM WWW.SOFT-SWITCH.ORG spandsp/
Mar 23 12:36:50 localhost FaxGetty[23581]: MODEM WWW.SOFT-SWITCH.ORG spandsp/

  • Ein Re-check sieht so aus und keine Besserung

Mar 23 12:37:13 localhost HylaFAX[23603]: checkHostIdentity("srv2012-00.office.reinisch.de")
Mar 23 12:37:13 localhost HylaFAX[23603]: pam_authenticate failed in pamCheck with 0x7: Authentication failure
Mar 23 12:37:48 localhost icinga: EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;rei-voip;Faxserver;1458733068
Mar 23 12:37:49 localhost HylaFAX[23686]: checkHostIdentity("localhost.localdomain")
Mar 23 12:37:49 localhost HylaFAX[23686]: Parsing hostPort(): "PORT"

Hi,

wenn du beim Icinga selbst schaust, z.B. Status->Tactical Overview bei Service Faxserver. Hier gibts eine “Services State Information”.

Gruß
Markus

Hallo Marcus,

der Icinga meldet, dass 2x der hafxd Deamon läuft er aber wie es ausschaut nur einen haben will
Ich habe mal einen von beiden gekillt und schau mal was nun passiert


root@rei-voip:~# ps aux | grep -i fax
uucp     13872  0.4  0.1  40448  2248 ?        S    11:38   0:00 /usr/sbin/hfaxd -d -i 4559
root     13880  0.0  0.0  11092   884 pts/9    S+   11:38   0:00 grep -i fax
root     17814  0.0  0.0   6876   564 ?        S    Mar21   0:00 tail -f /var/log/syslog /var/log/mobydick/rest.log /var/log/hylafax/hylafax.log.0
uucp     23533  0.0  0.0  32628  1328 ?        Ss   Mar23   0:13 /usr/sbin/faxq
uucp     23538  0.0  0.0  36236  1852 ?        S    Mar23   0:02 /usr/sbin/hfaxd -d -i 4559
uucp     23570  0.0  0.0  35116  1748 ?        Ss   Mar23   0:31 /usr/sbin/faxgetty -D ttyIAX0
uucp     23573  0.0  0.0  35116  1276 ?        Ss   Mar23   0:53 /usr/sbin/faxgetty -D ttyIAX4
uucp     23574  0.0  0.0  35116  1268 ?        Ss   Mar23   0:32 /usr/sbin/faxgetty -D ttyIAX3
uucp     23581  0.0  0.0  35116  1272 ?        Ss   Mar23   0:31 /usr/sbin/faxgetty -D ttyIAX1
uucp     23582  0.0  0.0  35116  1272 ?        Ss   Mar23   0:29 /usr/sbin/faxgetty -D ttyIAX2

root@rei-voip:~# kill 23538

Jetzt ist icinga grün, aber nur kurzfristig. Zum test mal die Faxkonfiguration neu eingerichtet und siehe da, der Daemon ist wieder 2x da. Also nur eine kurzfristige Lösung.


root@rei-voip:~# ps aux | grep -i fax
uucp     16193  0.0  0.0  32628  1328 ?        Ss   11:42   0:00 /usr/sbin/faxq
uucp     16198  0.0  0.0  36236  1832 ?        S    11:42   0:00 /usr/sbin/hfaxd -d -i 4559
uucp     16233  0.0  0.0  35116  1212 ?        Ss   11:42   0:00 /usr/sbin/faxgetty -D ttyIAX0
uucp     16234  0.0  0.0  35116  1204 ?        Ss   11:42   0:00 /usr/sbin/faxgetty -D ttyIAX1
uucp     16235  0.0  0.0  35116  1200 ?        Ss   11:42   0:00 /usr/sbin/faxgetty -D ttyIAX3
uucp     16236  0.0  0.0  35116  1204 ?        Ss   11:42   0:00 /usr/sbin/faxgetty -D ttyIAX4
uucp     16237  0.0  0.0  35116  1212 ?        Ss   11:42   0:00 /usr/sbin/faxgetty -D ttyIAX2
uucp     16328  0.2  0.1  40448  2248 ?        S    11:43   0:00 /usr/sbin/hfaxd -d -i 4559
root     16577  0.0  0.0  11096   880 pts/9    S+   11:44   0:00 grep -i fax

Noch eine Idee?

Re,

der “hfaxd” sollte nur einmal laufen. Für bitte mal auf der Shell

/etc/inti.d/hylafax stop
und

/etc/init.d/iaxmodem stop
aus.
Falls dann noch Fax-Prozesse oder IAX Prozesse über sind, beende die bitte (kill).
Danach bitte wieder iaxmodem und hylafax starten

Gruß
Markus

Hallo Markus,

habe ich gemacht aber gleiches Bild wie vorher


  660  /etc/init.d/hylafax stop
  661  /etc/init.d/iaxmodem stop

  • Keine Prozesse mehr am laufen

root@rei-voip:~# ps aux | grep -i fax
root      6487  0.0  0.0  11092   884 pts/9    S+   14:22   0:00 grep -i fax

  • Starten der Prozesse wieder

  663  /etc/init.d/hylafax start
  664  /etc/init.d/iaxmodem start

  • dann startet er brav und ok

root@rei-voip:~# ps aux | grep -i fax
uucp      7977  0.0  0.0  32628  1328 ?        Ss   14:23   0:00 /usr/sbin/faxq
uucp      7981  0.0  0.0  36232  1820 ?        S    14:23   0:00 /usr/sbin/hfaxd -d -i 4559
root      8025  0.0  0.0  11092   876 pts/9    S+   14:23   0:00 grep -i fax

  • dann sind kurze Zeit wieder 2 Daemon da

root@rei-voip:~# ps aux | grep -i fax
uucp      7977  0.0  0.0  32628  1328 ?        Ss   14:23   0:00 /usr/sbin/faxq
uucp      7981  0.0  0.0  36232  1820 ?        S    14:23   0:00 /usr/sbin/hfaxd -d -i 4559
uucp      8248  0.4  0.1  40444  2236 ?        S    14:23   0:00 /usr/sbin/hfaxd -d -i 4559
root      8336  0.0  0.0  11092   880 pts/9    S+   14:23   0:00 grep -i fax

  • Dann startet der hylafax neu?!!?!

root@rei-voip:~# ps aux | grep -i fax
root      8415  0.0  0.0   4040   552 ?        S    14:23   0:00 sh -c /etc/init.d/hylafax start
root      8416 10.0  0.0   4044   708 ?        S    14:23   0:00 /bin/sh /etc/init.d/hylafax start
root      8714  0.0  0.0  11092   880 pts/9    S+   14:23   0:00 grep -i fax

  • Nun sind die Faxdevices da und nur ein Daemon

root@rei-voip:~# ps aux | grep -i fax
uucp      9758  0.0  0.0  32628  1324 ?        Ss   14:24   0:00 /usr/sbin/faxq
uucp      9763  0.0  0.0  36236  1828 ?        S    14:24   0:00 /usr/sbin/hfaxd -d -i 4559
root      9794  0.0  0.0  34916   964 ?        Ss   14:24   0:00 /usr/sbin/faxgetty -D ttyIAX4
root      9797  0.0  0.0  34916   960 ?        Ss   14:24   0:00 /usr/sbin/faxgetty -D ttyIAX3
root      9798  0.0  0.0  34916   952 ?        Ss   14:24   0:00 /usr/sbin/faxgetty -D ttyIAX0
root      9801  0.0  0.0  34916   952 ?        Ss   14:24   0:00 /usr/sbin/faxgetty -D ttyIAX1
root      9802  0.0  0.0  34916   960 ?        Ss   14:24   0:00 /usr/sbin/faxgetty -D ttyIAX2
root      9819  0.0  0.0  11092   876 pts/9    S+   14:24   0:00 grep -i fax

  • Und auf einmal wieder 2 ?!?!?!?!

root@rei-voip:~# ps aux | grep -i fax
uucp      9758  0.0  0.0  32628  1324 ?        Ss   14:24   0:00 /usr/sbin/faxq
uucp      9763  0.0  0.0  36236  1828 ?        S    14:24   0:00 /usr/sbin/hfaxd -d -i 4559
uucp      9794  0.0  0.0  35116  1208 ?        Ss   14:24   0:00 /usr/sbin/faxgetty -D ttyIAX4
uucp      9797  0.0  0.0  35116  1208 ?        Ss   14:24   0:00 /usr/sbin/faxgetty -D ttyIAX3
uucp      9798  0.0  0.0  35116  1200 ?        Ss   14:24   0:00 /usr/sbin/faxgetty -D ttyIAX0
uucp      9801  0.0  0.0  35116  1200 ?        Ss   14:24   0:00 /usr/sbin/faxgetty -D ttyIAX1
uucp      9802  0.0  0.0  35116  1204 ?        Ss   14:24   0:00 /usr/sbin/faxgetty -D ttyIAX2
uucp      9959  0.5  0.1  40448  2248 ?        S    14:24   0:00 /usr/sbin/hfaxd -d -i 4559
root      9977  0.0  0.0  11092   880 pts/9    S+   14:24   0:00 grep -i fax

Hi,

für bitte mal ps -ef|grep fax bzw. ps -ef|grep iax aus um zu sehen, wie die Prozesse zusammen hängen.

Gruß
Markus

Gerne hier der output


root@rei-voip:~# ps -ef|grep fax
uucp      9758     1  0 14:24 ?        00:00:00 /usr/sbin/faxq
uucp      9763     1  0 14:24 ?        00:00:00 /usr/sbin/hfaxd -d -i 4559
uucp      9794     1  0 14:24 ?        00:00:00 /usr/sbin/faxgetty -D ttyIAX4
uucp      9797     1  0 14:24 ?        00:00:00 /usr/sbin/faxgetty -D ttyIAX3
uucp      9798     1  0 14:24 ?        00:00:00 /usr/sbin/faxgetty -D ttyIAX0
uucp      9801     1  0 14:24 ?        00:00:00 /usr/sbin/faxgetty -D ttyIAX1
uucp      9802     1  0 14:24 ?        00:00:00 /usr/sbin/faxgetty -D ttyIAX2
uucp      9959  9763  0 14:24 ?        00:00:01 /usr/sbin/hfaxd -d -i 4559
root     12310  2639  0 14:42 pts/9    00:00:00 grep fax

root@rei-voip:~# ps -ef|grep iax
root      8409     1  0 14:23 ?        00:00:00 /usr/bin/iaxmodem
uucp      8410  8409  0 14:23 ?        00:00:00 /usr/bin/iaxmodem
uucp      8411  8409  0 14:23 ?        00:00:00 /usr/bin/iaxmodem
uucp      8412  8409  0 14:23 ?        00:00:00 /usr/bin/iaxmodem
uucp      8413  8409  0 14:23 ?        00:00:00 /usr/bin/iaxmodem
uucp      8414  8409  0 14:23 ?        00:00:00 /usr/bin/iaxmodem
root     12323  2639  0 14:42 pts/9    00:00:00 grep iax

Hi,

der zweite hfaxd scheint ein Unterprozess zu sein.
Hast du schon mal geprüft ob in der fax queue noch ein Job drin hängt, faxstat -s bzw. -r.

Gruß
Markus

Hi,

sieht normal aus


root@rei-voip:~# faxstat -s
HylaFAX scheduler on localhost.localdomain: Running
Modem ttyIAX4 (48096): Running and idle
Modem ttyIAX3 (48096): Running and idle
Modem ttyIAX1 (48096): Running and idle
Modem ttyIAX2 (48096): Running and idle
Modem ttyIAX0 (48096): Running and idle
root@rei-voip:~# faxstat -r
HylaFAX scheduler on localhost.localdomain: Running
Modem ttyIAX4 (48096): Running and idle
Modem ttyIAX3 (48096): Running and idle
Modem ttyIAX1 (48096): Running and idle
Modem ttyIAX2 (48096): Running and idle
Modem ttyIAX0 (48096): Running and idle

Protect Page  Owner        Sender/TSI  Recvd@ Filename
-rw-rw-    2  10       +49 7121 43323   11:10 fax000000066.tif
-rw-rw-    2  10                      01Mar16 fax000000045.tif
-rw-rw-    2  10                      03Mar16 fax000000048.tif
-rw-rw-    2  10         0212 2809 61 11Mar16 fax000000058.tif
-rw-rw-    1  10           0049711811 07Mar16 fax000000052.tif
-rw-rw-    1  10        <UNSPECIFIED> 07Mar16 fax000000054.tif
-rw-rw-    4  10       +4962517706151 Tue02PM fax000000065.tif
-rw-rw-    3  10         0221 2589294 23Mar16 fax000000063.tif
-rw-rw-    1  10        +493026011260 22Mar16 fax000000061.tif
-rw-rw-    1  10        <UNSPECIFIED> 07Mar16 fax000000055.tif
-rw-rw-    1  10                      01Mar16 fax000000047.tif
-rw-rw-    2  10                      16Mar16 fax000000059.tif
-rw-rw-    1  10        +493026011260 11Mar16 fax000000057.tif
-rw-rw-    2  10       +49 4121 870 7 03Mar16 fax000000050.tif
-rw-rw-    2  10       +49 7121 43323 25Feb16 fax000000043.tif
-rw-rw-    2  10               Techem 03Mar16 fax000000051.tif
-rw-rw-    2  10               Techem 25Feb16 fax000000042.tif
-rw-rw-    2  10       +49 7121 43323 26Feb16 fax000000044.tif
-rw-rw-    2  10                      10Mar16 fax000000056.tif
-rw-rw-    1  10         0221 2589294 03Mar16 fax000000049.tif
-rw-rw-    1  10        +493026011260 22Mar16 fax000000062.tif
-rw-rw-    1  10          +0 00 00000 Tue08AM fax000000064.tif
-rw-rw-    2  10       +49(7222)93219 01Mar16 fax000000046.tif
-rw-rw-    2  10       +49 7121 43323   11:54 fax000000067.tif
-rw-rw-    1  10       00497219703970 07Mar16 fax000000053.tif


Hi,

was ich heute noch zufällig gesehen habe, ist dass er im Log diesen Eintrag schreibt


root@rei-voip:/etc/openvpn# Apr  4 16:12:36 localhost HylaFAX[26040]: checkHostIdentity("srv2012-00.office.reinisch.de")
Apr  4 16:12:36 localhost HylaFAX[26040]: checkHostIdentity("srv2012-00.office.reinisch.de")
Apr  4 16:12:36 localhost HylaFAX[26040]: pam_authenticate failed in pamCheck with 0x7: Authentication failure
Apr  4 16:12:36 localhost HylaFAX[26040]: pam_authenticate failed in pamCheck with 0x7: Authentication failure

und dann ist diese ominöse Prozess wieder da.

Den Server “srv2012-00.office.reinisch.de” gibt es zwar in der Domäne, aber was macht denn der Hylafax da?!?!

Gruß"srv2012-00.office.reinisch.de"

Hi

Fehler gefunden, es war ein “YajHFC Fax Client” auf dem Server “srv2012-00.office.reinisch.de” installiert.
Dieser hat den Prozess geöffnet.

Eine Deinstallation brachte den gewünschten Erfolg!!!

Gott sei dank :wink:

Re,

schön, wenn es nun wieder passt!

Gruß
Markus