opsi-product-updater

Antworten
ed_2
Beiträge: 18
Registriert: 12 Mai 2009, 08:20

opsi-product-updater

Beitrag von ed_2 »

Hi,

Der Opsi-Product-Updater sendet ja eine E-Mail wenn er etwas getan hat.
Bei uns sendet er diese E-Mail nur steht nichts mehr in der Mail.
Was kann das sein wir benutzen jetzt leider Windows Exchange 2010
und hatten schon Probleme mit angehängten Dateien Die blat versendet hat dort muste
-attach statt -attacht eingestellt werden kann das hier auch sein?

Mfg

ed_2
Benutzeravatar
ueluekmen
uib-Team
Beiträge: 1940
Registriert: 28 Mai 2008, 10:53

Re: opsi-product-updater

Beitrag von ueluekmen »

Hi,

schwer zu sagen, das ist aber das zweite mal, dass ich höre, dass es mit dem Mailversenden ein Problem gibt, wenn ein Umstieg auf Exchange gemacht wurde. Ich denke wir werden versuchen der Sache auf den Grund zu gehen, allerdings ist das wahrscheinlich für uns nicht so einfach, denn wir benutzen intern keinen Exchange (Wir sind ja auch eine OpenSource Firma :D ).

Ich kann sagen, dass wir der Sache eventuell mal bei Gelegenheit nachgehen, aber ich kann nicht versprechen dass es einen Fix geben wird und bald schon gar nicht. Was uns helfen könnte an der Stelle ist entweder ein offizieller Auftrag, oder jemand aus der Community, der uns Debug Arbeit an der Stelle abnimmt und seine Ergebnisse mit uns teilt.


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


TD_SPX
Beiträge: 18
Registriert: 09 Jan 2012, 17:05

Re: opsi-product-updater

Beitrag von TD_SPX »

Hallo zusammen,

ich beobachte auf meinem Server ein Ähnliches verhalten. Ich rufe den Cronjob wie folgt auf:

Code: Alles auswählen

00 6    * * *   root    opsi-product-updater -vv | mailx -s "CRON: opsi-product-updater" operator_opsi@mydomain.com
Jede nacht bekomme ich dann zum einen eine Leere Mail
From: root <root@helios77.mydomain.com>
To: operator_opsi@mydomain.com
Subject: CRON: opsi-product-updater
Date: Wed, 17 Oct 2012 06:01:05 +0200 (CEST)
und eine seltsam formatierte Mail...
From: Cron Daemon <root@helios77.mydomain.com>
To: root@helios77.mydomain.com
Subject: Cron <root@opsi> opsi-product-updater -vv | mailx -s "CRON: opsi-product-updater" operator_opsi@mydomain.com
Date: Wed, 17 Oct 2012 06:01:05 +0200 (CEST)


[0;32;40mZsync command found: /usr/bin/zsync[0;0;0m
[0;32;40mReading config file '/etc/opsi/opsi-product-updater.conf'[0;0;0m
[0;32;40mGetting installed products[0;0;0m
[0;32;40mGetting info for local packages in '/var/lib/opsi/repository'[0;0;0m
[0;32;40mGetting package infos from repository 'http://download.uib.de'[0;0;0m
[0;32;40mconfig-win-base_4.0.1-1.opsi - installation not required: installed version '4.0.1-1' of product 'config-win-base' is up to date[0;0;0m
[0;32;40mhwaudit_4.0.4-1.opsi - installation not required: installed version '4.0.4-1' of product 'hwaudit' is up to date[0;0;0m
[0;32;40mjavavm_1.6.0.35-2.opsi - installation not required: installed version '1.6.0.35-2' of product 'javavm' is up to date[0;0;0m
[0;32;40mjedit_4.5-3.opsi - installation not required: installed version '4.5-3' of product 'jedit' is up to date[0;0;0m
[0;32;40mopsi-adminutils_4.0.1.12-1.opsi - installation not required: installed version '4.0.1.12-1' of product 'opsi-adminutils' is up to date[0;0;0m
[0;32;40mopsi-client-agent_4.0.2.1-1.opsi - installation not required: installed version '4.0.2.1-1' of product 'opsi-client-agent' is up to date[0;0;0m
[0;32;40mopsi-template-with-admin_1.0-8.opsi - installation not required: installed version '1.0-8' of product 'opsi-template-with-admin' is up to date[0;0;0m
[0;32;40mopsi-template_4.0.1-5.opsi - installation not required: installed version '4.0.1-5' of product 'opsi-template' is up to date[0;0;0m
[0;32;40mopsi-winst-test_4.11.3-2.opsi - installation not required: installed version '4.11.3-2' of product 'opsi-winst-test' is up to date[0;0;0m
[0;32;40mopsi-winst_4.11.2.9-1.opsi - installation not required: installed version '4.11.2.9-1' of product 'opsi-winst' is up to date[0;0;0m
[0;32;40mshutdownwanted_1.0-4.opsi - installation not required: installed version '1.0-4' of product 'shutdownwanted' is up to date[0;0;0m
[0;32;40mswaudit_4.0-11.opsi - installation not required: installed version '4.0-11' of product 'swaudit' is up to date[0;0;0m
[0;32;40mhwinvent_4.0-1.opsi - installation not required: installed version '4.0-1' of product 'hwinvent' is up to date[0;0;0m
[0;32;40mmemtest86_3.5b-1.opsi - installation not required: installed version '3.5b-1' of product 'memtest86' is up to date[0;0;0m
[0;32;40mntfs-restore-image_4.0-1.opsi - installation not required: installed version '4.0-1' of product 'ntfs-restore-image' is up to date[0;0;0m
[0;32;40mntfs-write-image_4.0-1.opsi - installation not required: installed version '4.0-1' of product 'ntfs-write-image' is up to date[0;0;0m
[0;32;40mwipedisk_1.0-2.opsi - installation not required: installed version '1.0-2' of product 'wipedisk' is up to date[0;0;0m
[0;32;40macroread9_9.5.2-1.opsi - installation not required: installed version '9.5.2-1' of product 'acroread9' is up to date[0;0;0m
[0;32;40macroread_10.1.4-1.opsi - installation not required: installed version '10.1.4-1' of product 'acroread' is up to date[0;0;0m
[0;32;40mfirefox_10.0.7esrorstandard-3.opsi - installation not required: installed version '10.0.7esrorstandard-3' of product 'firefox' is up to date[0;0;0m
[0;32;40mflashplayer_10.3.183.29or11.4.402.287-1.opsi - installation not required: installed version '10.3.183.29or11.4.402.287-1' of product 'flashplayer' is up to date[0;0;0m
[0;32;40mgnupg_1.4.9-1.opsi - installation not required: installed version '1.4.9-1' of product 'gnupg' is up to date[0;0;0m
[0;32;40mlibreoffice_3.5.6-1.opsi - installation not required: installed version '3.5.6-1' of product 'libreoffice' is up to date[0;0;0m
[0;32;40mooffice3_3.4.1-1.opsi - installation not required: installed version '3.4.1-1' of product 'ooffice3' is up to date[0;0;0m
[0;32;40mthunderbird_10.0.7esrorstandard-2.opsi - installation not required: installed version '10.0.7esrorstandard-2' of product 'thunderbird' is up to date[0;0;0m
Null message body; hope that's ok
obwohl ich eigentlich nur eine erhalten möchte. Als MTA kommt dabei ein gewöhnlicher Postfix zum Einsatz.

Das am Anfang der Zeile sind sicherlich shell Farbcodes, die den Spaß auf der shell einfärben, was aber in einem cronjob völlig sinnfrei ist.

Mit der Formatierung der 2. Mail könnte ich leben, dass aber immer noch eine leere zusätzlich verschickt wird nervt allerdings.

Beste Grüße,
Thomas
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3327
Registriert: 04 Jun 2008, 14:27

Re: opsi-product-updater

Beitrag von d.oertel »

Hi,

mal ohne -vv probieren.
Ein cron-job soll ja eher schweigsam sein und sich nur melden wenn es ein Problem gibt.
Daher sind die -vv Ausgaben vom Entwickler nur für den interaktiven Einsatz gedacht gewesen.

gruß

d.oertel


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


toni.foerster
Beiträge: 23
Registriert: 24 Mai 2011, 11:20

Re: opsi-product-updater

Beitrag von toni.foerster »

@TP_SPX

Das bei dir 2 Mails verschickt werden liegt daran wie dein Cronjob eingerichtet ist. Was du machst ist den opsi-product-updater im verbose-Modus zu starten und die Ausgabe dann per E-Mail zu versenden, deshalb bekommst du auch diese "komisch" formatierte E-Mail. Wenn du das so belassen willst bleibt dein Cronjob wie gehabt:

Code: Alles auswählen

00 6    * * *   root    opsi-product-updater -vv | mailx -s "CRON: opsi-product-updater" operator_opsi@mydomain.com
Allerdings musst du in der opsi-product-updater.conf folgendes ändern:

Code: Alles auswählen

[notification]
; Activate/deactivate eMail notification
active = false
Wenn man allerdings nur die von opsi generierte Mail haben möchte muss der Cronjob wie folgt aussehen:

Code: Alles auswählen

00 6    * * *   root    opsi-product-updater
Damit bekommst du die Mail geschickt welche opsi generiert. Diese ist aber leer wenn du nicht noch eine Einstellung in der opsi-product-updater.conf vornimmst. Was wohl auch das Problem von ed_2 lösen sollte.

Code: Alles auswählen

[notification]
; Activate/deactivate eMail notification
active = true
; SMTP server address
;smtphost = 
; SMTP server port
;smtpport = 25
; Sender eMail address
sender = opsi@deine-domain.tld
; Comma separated list of receivers
receivers = empfänger@deine-domain.tld
Wichtig dabei ist das SMTP-Server und -Port auskommentiert werden, da sich dein Postfix um den Mailversand kümmert.
Antworten