<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://tech.snathan.org/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://tech.snathan.org/feed.php">
        <title>Senthil&#039;s Tech Wiki/Blog - tech:linux:others</title>
        <description></description>
        <link>https://tech.snathan.org/</link>
        <image rdf:resource="https://tech.snathan.org/_media/wiki/dokuwiki.svg" />
       <dc:date>2026-05-13T09:31:36+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://tech.snathan.org/tech/linux/others/journalctl?rev=1699965129&amp;do=diff"/>
                <rdf:li rdf:resource="https://tech.snathan.org/tech/linux/others/notify_reboot_req?rev=1416064423&amp;do=diff"/>
                <rdf:li rdf:resource="https://tech.snathan.org/tech/linux/others/ntp_update?rev=1416064423&amp;do=diff"/>
                <rdf:li rdf:resource="https://tech.snathan.org/tech/linux/others/pflogsumm_mail_report?rev=1697542312&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://tech.snathan.org/_media/wiki/dokuwiki.svg">
        <title>Senthil's Tech Wiki/Blog</title>
        <link>https://tech.snathan.org/</link>
        <url>https://tech.snathan.org/_media/wiki/dokuwiki.svg</url>
    </image>
    <item rdf:about="https://tech.snathan.org/tech/linux/others/journalctl?rev=1699965129&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-11-14T12:32:09+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>journalctl</title>
        <link>https://tech.snathan.org/tech/linux/others/journalctl?rev=1699965129&amp;do=diff</link>
        <description>journalctl

Show Logs


# All log entries for postfix
journalctl _UID=`id -u postfix` --no-pager
# Or
journalctl _SYSTEMD_UNIT=postfix@-.service
journalctl _SYSTEMD_UNIT=ssh.service
journalctl -u ssh.service
journalctl -u ssh.service -u postfix@-.service</description>
    </item>
    <item rdf:about="https://tech.snathan.org/tech/linux/others/notify_reboot_req?rev=1416064423&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-11-15T15:13:43+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>notify_reboot_req</title>
        <link>https://tech.snathan.org/tech/linux/others/notify_reboot_req?rev=1416064423&amp;do=diff</link>
        <description>Email notification of reboot

This can / should be setup using nagios, but here it is anyway!  

	*  Include this in cron.daily.  
	*  Change the email address before enabling.


#!/bin/sh -e
#
HOST=`hostname`
if [ -f /var/run/reboot-required ]; then
    #echo &quot;Sytem will reboot in 5 minutes ...&quot; | /usr/bin/wall
    #sleep 240
    #echo &quot;Sytem will reboot in 1 minute ...&quot; | /usr/bin/wall
    #sleep 60
    cat /var/run/reboot-required | mailx -s &quot;Reboot required on $HOST&quot; system@example.com
    #…</description>
    </item>
    <item rdf:about="https://tech.snathan.org/tech/linux/others/ntp_update?rev=1416064423&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-11-15T15:13:43+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>ntp_update</title>
        <link>https://tech.snathan.org/tech/linux/others/ntp_update?rev=1416064423&amp;do=diff</link>
        <description>Adjust System Clock by polling Network Time Protocol (NTP) server

Create below script /etc/cron.daily/ntpdate

Comment out the echo statements to avoid cron spewing out mail daily!


#!/bin/bash
#
# Update time daily
#
echo &quot;hwclock: Before running ntpdate date: `hwclock -r`&quot;
echo &quot;rtclock: Before running ntpdate date: `date`&quot;
/usr/sbin/ntpdate ntp.ubuntu.com pool.ntp.org
echo &quot;hwclock: After running ntpdate date: `hwclock -r`&quot;
echo &quot;rtclock: After running ntpdate date: `date`&quot;
echo &quot; &quot;
#
exit …</description>
    </item>
    <item rdf:about="https://tech.snathan.org/tech/linux/others/pflogsumm_mail_report?rev=1697542312&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2023-10-17T11:31:52+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>pflogsumm_mail_report</title>
        <link>https://tech.snathan.org/tech/linux/others/pflogsumm_mail_report?rev=1697542312&amp;do=diff</link>
        <description>pflogsumm Mail reports

pflogsumm is a simple yet great mail summary reporting tool.  You can install it using aptitude.

Features/Tasks and Limitations

	*  Emails report via cron
	*  Keeps 40 days worth of reporting at /var/log/postfixrep
	*  Limitation: Since log rotate does not do a daily rotation, reports will overlap!</description>
    </item>
</rdf:RDF>
