Saturday, May 18th 2013, 12:40pm UTC+2
You are not logged in.
Dear visitor, welcome to Monitoring-Portal.
Although this is a german monitoring forum, please don't hesitate to post in
English. Nearly everybody here understands you and will answer in English as well.
If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form to register here or read more information about the registration process. If you are already registered, please login here.
Beginner
Location: Hamburg
Number of monitoring servers: 1
Nagios Version: Nagios3
Icinga Version: Icinga 1.6.1
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 100+
Number of services: 1000+
OS: CentOS, Ubuntu, Gentoo
Plugin Version: 1.4.15
|
|
Source code |
1 2 3 4 5 6 |
define contact{
contact_name nagiosadmin
use notifications
alias Nagios Admin
email zxy@xxx.de
}
|
|
|
Source code |
1 2 3 4 5 |
define contactgroup{
contactgroup_name admins
alias Administratoren
members nagiosadmin
}
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
define command{
command_name notifications-disabled
command_line $USER1$/check_dummy 0 "Keine Benachrichtigung"
}
define command{
command_name notify-host-by-email
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LOGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$
}
define command{
command_name notify-service-by-email
command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
}
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
define contact{
name no-notifications
host_notification_period 24x7
service_notification_period 24x7
host_notification_commands notifications-disabled
service_notification_commands notifications-disabled
host_notification_options n
service_notification_options n
host_notifications_enabled 0
service_notifications_enabled 0
register 0
}
define contact{
name notifications
host_notification_period 24x7
service_notification_period 24x7
host_notification_commands notify-host-by-email
service_notification_commands notify-service-by-email
host_notification_options d,u,r
service_notification_options u,w,c,r
host_notifications_enabled 1
service_notifications_enabled 1
register 0
}
|
Gender: male
Number of monitoring servers: 2
Nagios Version: 3.2.1
Icinga Version: Icinga 1.7.x
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: >70
Number of services: >200
OS: SLES11
Plugin Version: 1.4.15
Other Addons: NRPE 2.6, NSCA 2.7, PNP 0.4.14 / 0.6.18
Birthday: Jun 8th
Gender: male
Location: bei den Stadtmusikanten
Occupation: Sysadmin
Number of monitoring servers: 1
Hobbies: Meine Kawa quälen
Nagios Version: 3.3.1
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: ~50
Number of services: ~4500
OS: OpenSuSE 11.1
Plugin Version: 1.4.x
NagVis Version: 1.5.9
NDO Version: 1.4b9
Other Addons: pnp4nagios-0.6.7, mrtg-2.16.4, nagtrap-0.1.3, check_mk 1.2.2, DokuWiki
|
|
Source code |
1 2 3 4 |
define command{
command_namenotify-host-by-email
command_line/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LOGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$
}
|
Beginner
Location: Hamburg
Number of monitoring servers: 1
Nagios Version: Nagios3
Icinga Version: Icinga 1.6.1
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 100+
Number of services: 1000+
OS: CentOS, Ubuntu, Gentoo
Plugin Version: 1.4.15
??? Ein Zeilenumbruch zuviel ??? Das kann es nun wirklich nicht sein.$NOTIFICATIONTYPE$\n\nHost:
Birthday: Jun 8th
Gender: male
Location: bei den Stadtmusikanten
Occupation: Sysadmin
Number of monitoring servers: 1
Hobbies: Meine Kawa quälen
Nagios Version: 3.3.1
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: ~50
Number of services: ~4500
OS: OpenSuSE 11.1
Plugin Version: 1.4.x
NagVis Version: 1.5.9
NDO Version: 1.4b9
Other Addons: pnp4nagios-0.6.7, mrtg-2.16.4, nagtrap-0.1.3, check_mk 1.2.2, DokuWiki
This post has been edited 1 times, last edit by "webspace" (Mar 10th 2011, 12:03pm)
Gender: male
Number of monitoring servers: 2
Nagios Version: 3.2.1
Icinga Version: Icinga 1.7.x
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: >70
Number of services: >200
OS: SLES11
Plugin Version: 1.4.15
Other Addons: NRPE 2.6, NSCA 2.7, PNP 0.4.14 / 0.6.18
nein, denn
Quoted from "webspace"
Evtl.:
/usr/bin/mail -s "** $NOTIFICATIONTYPE$ (bei sendmail)
Quoted from "cami"
Testmails via /bin/mail kommen von der Console aus verschickt ohne Probleme an
Beginner
Location: Hamburg
Number of monitoring servers: 1
Nagios Version: Nagios3
Icinga Version: Icinga 1.6.1
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 100+
Number of services: 1000+
OS: CentOS, Ubuntu, Gentoo
Plugin Version: 1.4.15
Also, in den Logs stehen nur die üblichen Meldungen:schau mal in der nagios.log nach Fehlermeldungen
|
|
Source code |
1 2 3 4 |
[1299756928] SERVICE NOTIFICATION: nagiosadmin;yxz.xxx.de;Load;WARNING;notify-service-by-email;WARNING - load average: 7.50, 6.49, 6.24 [1299756928] SERVICE ALERT: xxx;PING;CRITICAL;SOFT;1;CRITICAL - xxx.org: rta 65,232ms, lost 20% [1299756938] SERVICE NOTIFICATION: nagiosadmin;xxx.de;Load;WARNING;notify-service-by-email;WARNING - load average: 7.87, 7.90, 7.93 [1299756968] SERVICE ALERT: xxx.de;Disk /boot/;CRITICAL;HARD;1;CHECK_NRPE: Socket timeout after 10 seconds. |
Gender: male
Number of monitoring servers: 2
Nagios Version: 3.2.1
Icinga Version: Icinga 1.7.x
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: >70
Number of services: >200
OS: SLES11
Plugin Version: 1.4.15
Other Addons: NRPE 2.6, NSCA 2.7, PNP 0.4.14 / 0.6.18
dann verschickt Nagios die Mails (vermutlich) wie gewünscht. Schau mal im Log deines Mail-Programms.
Quoted
Keine Fehlermeldungen bezüglich der Mails
Beginner
Location: Hamburg
Number of monitoring servers: 1
Nagios Version: Nagios3
Icinga Version: Icinga 1.6.1
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 100+
Number of services: 1000+
OS: CentOS, Ubuntu, Gentoo
Plugin Version: 1.4.15
|
|
Source code |
1 2 3 4 5 6 7 |
Mar 10 13:13:08 nagios sendmail[23139]: p2ACD89v023139: from=nagios, size=227, class=0, nrcpts=1, msgid=<201103101213.p2ACD89v023139@localhost.localdomain>, relay=nagios@localhost Mar 10 13:13:08 nagios sendmail[23140]: p2ACD8po023140: from=<nagios@localhost.localdomain>, size=524, class=0, nrcpts=1, msgid=<201103101213.p2ACD89v023139@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=nagios [127.0.0.1] Mar 10 13:13:08 nagios sendmail[23139]: p2ACD89v023139: to=nagios@xxx.net, ctladdr=nagios (101/103), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30227, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p2ACD8po023140 Message accepted for delivery) Mar 10 13:13:08 nagios sendmail[23142]: STARTTLS=client, relay=mail.xxx.net., version=TLSv1/SSLv3, verify=FAIL, cipher=AES256-SHA, bits=256/256 Mar 10 13:13:08 nagios sendmail[23142]: p2ACD8po023140: to=<nagios@xxx.net>, ctladdr=<nagios@localhost.localdomain> (101/103), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120524, relay=mail.xxx.net. [x.x.x.x], dsn=5.1.1, stat=User unknown Mar 10 13:13:08 nagios sendmail[23142]: p2ACD8po023140: p2ACD8po023142: DSN: User unknown Mar 10 13:13:08 nagios sendmail[23142]: p2ACD8po023142: to=<nagios@localhost.localdomain>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31748, dsn=2.0.0, stat=Sent |
This post has been edited 2 times, last edit by "cami" (Mar 11th 2011, 1:48pm)
Number of monitoring servers: 2-5
Nagios Version: 3.x
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 80-200
Number of services: 1400-2000
OS: Linux
Plugin Version: Whatever I can download, patch, or cobble together myself :-)
Other Addons: n2rrd, PNP, livestatus
Dann solltest Du Dir den DSN 'mal genauer ansehen (vermutlich in /var/spool/mail/nagios) ...ok, jetzt bin ich wirklich ratlos. aus der console kann ich die mails an genau diesen benutzer verschicken und es kommt mit einer kleinen verzögerung an...
Warum verschickt Nagios die Mails mit: STARTTLS=client
Beginner
Location: Hamburg
Number of monitoring servers: 1
Nagios Version: Nagios3
Icinga Version: Icinga 1.6.1
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 100+
Number of services: 1000+
OS: CentOS, Ubuntu, Gentoo
Plugin Version: 1.4.15
|
|
Source code |
1 |
Mar 10 13:13:08 nagios sendmail[23142]: p2ACD8po023140: p2ACD8po023142: DSN: User unknown |
Number of monitoring servers: 2-5
Nagios Version: 3.x
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 80-200
Number of services: 1400-2000
OS: Linux
Plugin Version: Whatever I can download, patch, or cobble together myself :-)
Other Addons: n2rrd, PNP, livestatus
Gar nicht, Dein sendmail baut zwar die DSN und stellt sie zu, aber streiken und damit den Bounce verursachen tut er hier:Wie mache ich Sendmail den User bekannt?
|
|
Source code |
1 |
to=<nagios@xxx.net>, ctladdr=<nagios@localhost.localdomain> [...] relay=mail.xxx.net. [84.19.182.143], dsn=5.1.1, stat=User unknown |
Beginner
Location: Hamburg
Number of monitoring servers: 1
Nagios Version: Nagios3
Icinga Version: Icinga 1.6.1
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 100+
Number of services: 1000+
OS: CentOS, Ubuntu, Gentoo
Plugin Version: 1.4.15
Puh, danke schonmal - also der Mailserver der die Post annehmen soll streikt, aber auf dem hab ich zur Zeit keinen Zugriff.Gar nicht, Dein sendmail baut zwar die DSN und stellt sie zu, aber streiken und damit den Bounce verursachen tut er hier:
Das ist mit einiger Sicherheit nicht die vollständige Meldung vom Mailserver, deswegen sagte ich, daß Du Dir die DSN (in der mehr Angaben drinstecken) 'mal ansehen solltest.
Number of monitoring servers: 2-5
Nagios Version: 3.x
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 80-200
Number of services: 1400-2000
OS: Linux
Plugin Version: Whatever I can download, patch, or cobble together myself :-)
Other Addons: n2rrd, PNP, livestatus
Und wenn aus der DSN dann (hoffentlich) klarer geworden ist, woran genau sich der Server eigentlich stört (ich habe die unzustellbare Absenderadresse im Verdacht), kommt das "wie" ins Spiel.Dann solltest Du Dir den DSN 'mal genauer ansehen (vermutlich in /var/spool/mail/nagios) ...ok, jetzt bin ich wirklich ratlos. aus der console kann ich die mails an genau diesen benutzer verschicken und es kommt mit einer kleinen verzögerung an...
Location: Schweiz
Occupation: System Engineer
Number of monitoring servers: 1
Hobbies: unzählige :-)
Nagios Version: 3.x
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 1
Number of services: 10
OS: OpenSuSE 11.1
Plugin Version: -
Other Addons: NagiosQL
Beginner
Location: Hamburg
Number of monitoring servers: 1
Nagios Version: Nagios3
Icinga Version: Icinga 1.6.1
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 100+
Number of services: 1000+
OS: CentOS, Ubuntu, Gentoo
Plugin Version: 1.4.15
Location: Schweiz
Occupation: System Engineer
Number of monitoring servers: 1
Hobbies: unzählige :-)
Nagios Version: 3.x
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 1
Number of services: 10
OS: OpenSuSE 11.1
Plugin Version: -
Other Addons: NagiosQL

Beginner
Location: Hamburg
Number of monitoring servers: 1
Nagios Version: Nagios3
Icinga Version: Icinga 1.6.1
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 100+
Number of services: 1000+
OS: CentOS, Ubuntu, Gentoo
Plugin Version: 1.4.15
|
|
Source code |
1 2 3 4 5 |
Mar 14 12:56:05 nagios sendmail[30004]: p2EBu5rL030004: from=root, size=58, class=0, nrcpts=1, msgid=<201103141156.p2EBu5rL030004@localhost.localdomain>, relay=root@localhost Mar 14 12:56:05 nagios sendmail[30005]: p2EBu5j6030005: from=<root@localhost.localdomain>, size=358, class=0, nrcpts=1, msgid=<201103141156.p2EBu5rL030004@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=nagios [127.0.0.1] Mar 14 12:56:05 nagios sendmail[30004]: p2EBu5rL030004: to=nagios@meinefirma.net, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30058, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p2EBu5j6030005 Message accepted for delivery) Mar 14 12:56:06 nagios sendmail[30007]: STARTTLS=client, relay=mail.meinefirma.net., version=TLSv1/SSLv3, verify=FAIL, cipher=AES256-SHA, bits=256/256 Mar 14 12:56:06 nagios sendmail[30007]: p2EBu5j6030005: to=<nagios@meinefirma.net>, ctladdr=<root@localhost.localdomain> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120358, relay=mail.meinefirma.net. [x.x.x.x], dsn=2.0.0, stat=Sent (OK id=1Pz6Nd-0005DD-9P) |
|
|
Source code |
1 2 3 4 5 6 7 |
Mar 14 12:58:01 nagios sendmail[30092]: p2EBw1sf030092: from=nagios, size=62, class=0, nrcpts=1, msgid=<201103141158.p2EBw1sf030092@localhost.localdomain>, relay=nagios@localhost Mar 14 12:58:01 nagios sendmail[30093]: p2EBw1Sl030093: from=<nagios@localhost.localdomain>, size=359, class=0, nrcpts=1, msgid=<201103141158.p2EBw1sf030092@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=nagios [127.0.0.1] Mar 14 12:58:01 nagios sendmail[30092]: p2EBw1sf030092: to=nagios@meinefirma.net, ctladdr=nagios (101/103), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30062, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p2EBw1Sl030093 Message accepted for delivery) Mar 14 12:58:01 nagios sendmail[30095]: STARTTLS=client, relay=mail.meinefirma.net., version=TLSv1/SSLv3, verify=FAIL, cipher=AES256-SHA, bits=256/256 Mar 14 12:58:01 nagios sendmail[30095]: p2EBw1Sl030093: to=<nagios@meinefirma.net>, ctladdr=<nagios@localhost.localdomain> (101/103), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120359, relay=mail.meinefirma.net. [x.x.x.x], dsn=5.1.1, stat=User unknown Mar 14 12:58:01 nagios sendmail[30095]: p2EBw1Sl030093: p2EBw1Sl030095: DSN: User unknown Mar 14 12:58:01 nagios sendmail[30095]: p2EBw1Sl030095: to=<nagios@localhost.localdomain>, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31583, dsn=2.0.0, stat=Sent |
Location: Schweiz
Occupation: System Engineer
Number of monitoring servers: 1
Hobbies: unzählige :-)
Nagios Version: 3.x
Distributed monitoring: Nein
Redundant monitoring: Nein
Number of hosts: 1
Number of services: 10
OS: OpenSuSE 11.1
Plugin Version: -
Other Addons: NagiosQL