[[Monitoring Alert]]
[[The following instance has entered an error state]]: $instance.name
[[Errors]]:
#if($monitored.isreachable == "false")
- [[The instance seems to be down]]: $instance.name ($monitored.monitoringurl)
#end
#if($monitored.isssl == "true")
-
#if($monitored.sslstatus == "torenew")
[[The instance's SSL certificate will expires in ]]$monitored.daystoexpiration[[days]],[[on]] $monitored.expirationdate. [[Please renew it by running sudo /home/entermedia/letsencrypt/letsencrypt-auto renew on the corresponding instance's server]].
#elseif($monitored.sslstatus == "expired")
[[The instance's SSL certificate has expired on]] $monitored.expirationdate.
[[Deploy a new one by running sudo: /home/entermedia/letsencrypt/letsencrypt-auto renew on the instance's server]].
#elseif($monitored.sslstatus == "error")
[[Can't retrieve any SSL certificate for]]: $instance.instanceurl
#end
#else
#if ($monitored.isdisk == "true")
#foreach($partition in $monitored.getValue("partitions"))
#if($partition.isIsOverloaded() == true)
- [[The following instance's partition is running out of disk space]]: $partition.getName() ${partition.getFreePartitionSpace()}Mb [[remaining of]] ${partition.getUsablePartitionSpace()}Mb.
#end
#end
#end
#if($monitored.iscpu == "true")
- [[The instance's CPUs are overloaded]]: $monitored.loadaverage [[currently used]].
#end
#if($monitored.isheap == "true")
- [[The instance's heap partition is running out of space]]: $monitored.heapusedpercent [[currenlty used]].
#end
#if($monitored.ismemory == "true")
- [[The instance is running out of memory]]: ${monitored.servermemoryfree}Mb [[remaining of]] ${monitored.servermemorytotal}Mb.
#end
#end
[[Trace Result]]:
$traceresult
[[Monitor]]:https://monitoring.entermediadb.org/entermediadb/emshare2/views/modules/entermedia_instances_monitor/index.html