Year: 2020
How to preserve old software – with snaps
https://snapcraft.io/blog/how-to-preserve-old-software-with-snaps
Configuring e-Mail Notifications in Nagios Core…
Now that you have installed the required components to enabled Nagios to send mail notifications, you will need to download two configurations files from your Nagios Server (using FileZilla and edit them using Notepad++ – if you need to understand how to do this, please review part 2 of my installing Nagios for Exchange series).
These files are:
- commands.cfg
- contacts.cfg
Which are located in:
/usr/local/nagios/etc/objects
Open the commands.cfg file in Notepad++ and modify the following two lines:
# 'notify-host-by-email' command definition define command{ command_name notify-host-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mailx -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ } # 'notify-service-by-email' command definition 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$\n" | /bin/mailx -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ }
To look like the following:
# 'notify-host-by-email' command definition define command{ command_name notify-host-by-email command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mailx -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$ } # 'notify-service-by-email' command definition 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$\n" | /usr/bin/mailx -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ }
In essence you are changing the /bin/mail part of each command to /usr/bin/mailx
When you are done, save the file and then using FileZilla upload it back to your Nagios Server.
Next open the contacts.cfg file and change the “email” property to that of the account where you would like the notifications to be sent – see below
define contact{ contact_name nagiosadmin ; Short name of user use generic-contact ; Inherit default values from generic-contact template (defined above) alias Nagios Admin ; Full name of user email administrator@prepad.com ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ****** }
When you are done, save the file, and upload it back to your Nagios server.
To finish up the configuration, from a PuTTY session type in the following command:
sudo /etc/init.d/nagios restart
Source: Configuring e-Mail Notifications in Nagios Core… – telnetport25.com
How to configure email notification from nagios
9.2. Configuring Nagios Server to Send Mail Notifications Red Hat Gluster Storage 3
How To Send Alerts From Nagios Core Using Gmail And Yahoo
https://www.unixmen.com/send-alerts-nagios-core-using-gmail-yahoo/
Problemi s perilicama posuđa (dishwasher e4535)
Znači, preostane jedino ono školsko razmatranje:
– svaka perilica prvo ispumpa vodu, smatra se da postoji preostali sadržaj šalica i sl. i to traje 20-30 sek (akustički: laaaaaah laaaaaaah laaaaaah)
– onda utoči svježu vodu otvaranjem niza elektroventila, to je tih zvuk bzzzzzzzzzzzzz i žubor
– nakon što utoči, trebalo bi otvoriti vrata da provjerite da li je vodostaj dostatan, obično je to 1-2 cm od donjeg ruba vrata
Ako ima radni vodostaj, kreće “prava akcija”:
– uključuje glavnu pumpu i to se čuje kako “bičuje” lim energično, dakle akustično žljaaam žljaaam žljaaam
– istodobno uklj. grijač i kad je voda mlačna, dakle nakon par minuta, čuje se udarac kad se oslobodi spremnik i pada tableta
Općenito, ako krene u “akciju” i zbrejka – tada rade samo gl. pumpa i grijač.
Ako gl. pumpa ima neki meh. problem, dakle zastoj ili teško okretanje rotora uslijed prodora iz smjera turbine (ispred motora), onda prekida jer troši previše struje takav motor i optočna pumpa je krivac. Imate novu, ne znam da li za taj tip, u Batis.hr i cijena je između 500 i 1000 kn, zapišite model pa nazovite
http://batis.hr/perilice.php?id=36&vrsta=22&id2=11
to je velik posao za zamijeniti odnosno 2 h minimalno će vam računati servis.
Ako grijač ima neki problem, onda nema očekivane krivulje rasta temp i zbrejka ciklus.
Grijač – da li uklj. ili ne – najlakše izmjeriti nekom spravom
https://www.chipoteka.hr/artikl/8627…821-6071050011
stavite u utičnicu i pratite potrošnju – odvodna pumpa 30 W cca, elektroventili nekoliko puta 2-3 W, ovisno o broju, glavna pumpa 150 W cca i grijač 1500-2000 W.
Ne znam da li to imate u domu – ali to je najviše pristupačna metoda.
I to bi bilo to – onako školski izrečeno…
Problemi s perilicama posuđa – Stranica 273
Frédéric Bazille
Using SageMath remotely with PuTTY
How to: Change Timezone in CentOS / RHEL 6 & CentOS / RHEL 7 – Mellowhost Blog
ln -s /usr/share/zoneinfo/Asia/Dhaka /etc/localtime
Source: How to: Change Timezone in CentOS / RHEL 6 & CentOS / RHEL 7 – Mellowhost Blog