Hi everyone great work on Synagios! I dont get email Notification working. First of all I’m no Linux Crack. Im on DSM 6.0.2-8451 Update 9 on my RS815+. I have installed 0.14.5. I have installed Syology Mail Server Package 1.6.1-0484 und Mail Station Package. I configured the Syology Mail Server with am SMTP Relay with the Checks on “Ignore LAN authentication” and “localhost” is my hostname Port is 25. In Mail Station I can connect to localhost port 25 and sent E-mails.
While installing Synagios I followed instructions put in an E-mail address an Checked everything twice.
This is my notify-host-by-email:
/usr/bin/printf "mail from: nagios@localhost\r\nrcpt to: %b\r\nDATA\r\nSubject: %b\nFrom: nagios@diskstation\nTo: %b\n\n%b\n.\n" "$CONTACTEMAIL$" "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" "$CONTACTEMAIL$" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\nAdditional Info:\n\n$HOSTOUTPUT$\n\n$NOTIFICATIONAUTHOR$\n\t$NOTIFICATIONCOMMENT$\n" | /usr/local/bin/mailsender 127.0.0.1 –
This is my notify-service-by-email
/usr/bin/printf "mail from: nagios@localhost\r\nrcpt to: %b\r\nDATA\r\nSubject: %b\nFrom: nagios@diskstation\nTo: %b\n\n%b\n.\n" "$CONTACTEMAIL$" "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" "$CONTACTEMAIL$" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n\n$NOTIFICATIONAUTHOR$\n\t$NOTIFICATIONCOMMENT$\n" | /usr/local/bin/mailsender 127.0.0.1 –
Still I don’t get e-mail notification working.
When typing this over SSH
chroot /volume1/@appstore/Synagios/nagios-chroot/ /bin/bash
I get
chroot: cannot change root directory to ‘/volume1/@appstore/Synagios/nagios-chroot/’: Operation not permitted
I think to determine the general functionality of the email notification I need to this try out on a command line level. But I don’t know how.
When typing this over SSH
chroot /volume1/@appstore/Synagios/nagios-chroot/ /bin/bash
I get
chroot: cannot change root directory to ‘/volume1/@appstore/Synagios/nagios-chroot/’: Operation not permitted
Hey Thx for
the quick reply
unfortunately It’s not going very far;
login as: admin
admin@nas's password:
admin@nas:~$ sudo -i
Password:
root@nas:~# sudo chroot /volume1/@appstore/Synagios/nagios-chroot/ /bin/bash
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
root@nas:/# chroot /volume1/@appstore/Synagios/nagios-chroot/ /bin/bash
chroot: cannot change root directory to
/volume1/@appstore/Synagios/nagios-chroot/: No such file
Like I said I’m no Linux Pro :-(
Yes, synagios_0.14.5_jessie_x86.spk. And I managed to get out of chroot.
Yes, synagios_0.14.5_jessie_x86.spk. And I managed to get out of chroot.
Hey, Thx for
the quick work. I think I go with the deinstallation and reinstallation of the
new package.
Hope that fixes my issue.
I’ll get back to you with the result.
Hey Mark. I dared myself using the SSH commandos and it worked imediately !!!!!! Thx for that great package and the great support!!!
Hey Mark. I dared myself using the SSH commandos and it worked imediately !!!!!! Thx for that great package and the great support!!!
Hey Marc,
everything is working fine in my Synagios. But after a while I figured out that
the Nagios Timezone is wrong, since installation of mailsender
login as:
admin
admin@nas's password:
admin@nas:~$ date
Sat Feb 4 09:40:45 CET 2017
admin@nas:~$ sudo -i
Password:
root@nas:~# sudo chroot /volume1/@appstore/Synagios/nagios-chroot/ /bin/bash
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.utf8)
root@nas:/# date
Sat Feb 4 08:42:35 UTC 2017
How can I change from UTC to CET. Or better how to get the synology time zone working for the synagios installation?
How can I change from UTC to CET. Or better how to get the synology time zone working for the synagios installation?
sudo su
cd /volume1/@appstore/Synagios/nagios-chroot/
cp etc/localtime etc/localtime.orig
cp usr/share/zoneinfo/CET etc/localtime
exit
Perferct! Worked imediately! Consider mentioning this in the nagrestconf Documentation Topics.
Great Work. Greetings Jogun
Perferct! Worked imediately! Consider mentioning this in the nagrestconf Documentation Topics.
Great Work. Greetings Jogun