{"id":608,"date":"2022-03-26T20:15:54","date_gmt":"2022-03-26T20:15:54","guid":{"rendered":"https:\/\/paynecentral.com\/tompayne\/?p=608"},"modified":"2022-03-26T20:21:32","modified_gmt":"2022-03-26T20:21:32","slug":"php-server-monitor","status":"publish","type":"post","link":"https:\/\/paynecentral.com\/tompayne\/2022\/03\/26\/php-server-monitor\/","title":{"rendered":"PHP Server Monitor"},"content":{"rendered":"\n<p>I think I have finally found the simple replacement for SiteScope that I have been trying to find. It is a little poorly documented, but provides a simple dashboard (see below) and email or SMS notifications.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"495\" src=\"https:\/\/paynecentral.com\/tompayne\/wp-content\/uploads\/sites\/2\/2022\/03\/image-1024x495.png\" alt=\"\" class=\"wp-image-609\" srcset=\"https:\/\/paynecentral.com\/tompayne\/wp-content\/uploads\/sites\/2\/2022\/03\/image-1024x495.png 1024w, https:\/\/paynecentral.com\/tompayne\/wp-content\/uploads\/sites\/2\/2022\/03\/image-300x145.png 300w, https:\/\/paynecentral.com\/tompayne\/wp-content\/uploads\/sites\/2\/2022\/03\/image-768x371.png 768w, https:\/\/paynecentral.com\/tompayne\/wp-content\/uploads\/sites\/2\/2022\/03\/image-1536x742.png 1536w, https:\/\/paynecentral.com\/tompayne\/wp-content\/uploads\/sites\/2\/2022\/03\/image-2048x989.png 2048w, https:\/\/paynecentral.com\/tompayne\/wp-content\/uploads\/sites\/2\/2022\/03\/image-1200x580.png 1200w, https:\/\/paynecentral.com\/tompayne\/wp-content\/uploads\/sites\/2\/2022\/03\/image-1980x956.png 1980w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>To get this up on my Raspberry Pi, I first needed to install samba file sharing so I could transfer the zip file from my laptop to the R-Pi. I used the instructions from the trusty &#8220;PiMyLife&#8221; site:<\/p>\n\n\n\n<p><a href=\"https:\/\/pimylifeup.com\/raspberry-pi-samba\/\">https:\/\/pimylifeup.com\/raspberry-pi-samba\/<\/a><\/p>\n\n\n\n<p>The PHP Server Monitor software can be found here:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-php-server-monitor wp-block-embed-php-server-monitor\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"VFwxZtt7tI\"><a href=\"https:\/\/www.phpservermonitor.org\/\">Welcome<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Welcome&#8221; &#8212; PHP Server Monitor\" src=\"https:\/\/www.phpservermonitor.org\/embed\/#?secret=G6o7nhbG7C#?secret=VFwxZtt7tI\" data-secret=\"VFwxZtt7tI\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>And the documentation is here: <a href=\"http:\/\/docs.phpservermonitor.org\/en\/latest\/intro.html\" data-type=\"URL\" data-id=\"http:\/\/docs.phpservermonitor.org\/en\/latest\/intro.html\">http:\/\/docs.phpservermonitor.org\/en\/latest\/intro.html<\/a><\/p>\n\n\n\n<p>The installation instructions is hardly step-by-step. It says you simply copy the files to your web directory, but does not talk about the database set up. For that, I found this site useful:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-itzgeek wp-block-embed-itzgeek\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/www.itzgeek.com\/how-tos\/linux\/ubuntu-how-tos\/install-php-server-monitor-on-ubuntu-15-04-centos-7-fedora-22.html\n<\/div><\/figure>\n\n\n\n<p>Also, it says to &#8220;run install.php&#8221;. I tried to run it from the command line but it mean to access it via the web server. <\/p>\n\n\n\n<p>Setting up the email\/SMTP from the UI was tricky as I had to find the right settings. I could not get it to work with Google&#8217;s SMPT server but luckily could use one from my DNS provider (Ionos).<\/p>\n\n\n\n<p>Finally, I would set up some failures to test the dashboard and email notifications. I unplugged my printer to see what happened. The dashboard went RED but I did not get an email. I used the email &#8220;TEST&#8221; button again and it worked. Somewhere online I noticed that I had to assign a &#8220;user&#8221; to each monitor (at the bottom of the monitor definition). Now it seems to be working.<\/p>\n\n\n\n<p>I will need to try this for a while, but so far, other than the lack of auto-discovery, I may have found my home monitoring solution.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I think I have finally found the simple replacement for SiteScope that I have been trying to find. It is a little poorly documented, but provides a simple dashboard (see below) and email or SMS notifications. To get this up on my Raspberry Pi, I first needed to install samba file sharing so I could [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[],"class_list":["post-608","post","type-post","status-publish","format-standard","hentry","category-home-network"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/paynecentral.com\/tompayne\/wp-json\/wp\/v2\/posts\/608"}],"collection":[{"href":"https:\/\/paynecentral.com\/tompayne\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/paynecentral.com\/tompayne\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/paynecentral.com\/tompayne\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/paynecentral.com\/tompayne\/wp-json\/wp\/v2\/comments?post=608"}],"version-history":[{"count":1,"href":"https:\/\/paynecentral.com\/tompayne\/wp-json\/wp\/v2\/posts\/608\/revisions"}],"predecessor-version":[{"id":610,"href":"https:\/\/paynecentral.com\/tompayne\/wp-json\/wp\/v2\/posts\/608\/revisions\/610"}],"wp:attachment":[{"href":"https:\/\/paynecentral.com\/tompayne\/wp-json\/wp\/v2\/media?parent=608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/paynecentral.com\/tompayne\/wp-json\/wp\/v2\/categories?post=608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/paynecentral.com\/tompayne\/wp-json\/wp\/v2\/tags?post=608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}