mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Remove user-facing references to Observium
This eliminates nearly all of the user-facing references to Observium, including in the names of temporary files and in the metadata of PDFs. Many of these may not be used any more, but I've adjusted them anyway. These changes should also make it easier to change the branding later if it is needed. There are a few references of which I still don't understand the significance, so I've left them as-is for now. The Unix agent in particular is rather untidy.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
These are local plugin scripts for the Observium Unix Agent.
|
||||
These are local plugin scripts for the LibreNMS Unix Agent.
|
||||
|
||||
*DO NOT* put all of these files into your local folder, only use the scripts you want.
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
use LWP::Simple;
|
||||
|
||||
$CACHETIME = 30;
|
||||
$CACHEFILE = '/tmp/observium-agent-apache';
|
||||
$CACHEFILE = '/tmp/agent-local-apache';
|
||||
|
||||
# check for cache file newer CACHETIME seconds ago
|
||||
if ( -f $CACHEFILE && time - (stat( $CACHEFILE ))[9] < $CACHETIME) {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# We cache because it is a 1sec delay, which is painful for the poller
|
||||
if [ -x /usr/bin/dpkg-query ]; then
|
||||
DATE=$(date +%s)
|
||||
FILE=/tmp/observium-agent-dpkg
|
||||
FILE=/tmp/agent-local-dpkg
|
||||
|
||||
if [ ! -e $FILE ]; then
|
||||
dpkg-query -W --showformat='${Status} ${Package} ${Version} ${Architecture} ${Installed-Size}\n'|grep " installed "|cut -d\ -f4- > $FILE
|
||||
|
||||
@@ -283,7 +283,7 @@ function ss_get_mysql_stats( $options ) {
|
||||
}
|
||||
|
||||
$sanitized_host = str_replace(array(":", "/"), array("", "_"), $host);
|
||||
$cache_file = "$cache_dir/observium-agent-mysql";
|
||||
$cache_file = "$cache_dir/agent-local-mysql";
|
||||
debug("Cache file is $cache_file");
|
||||
|
||||
# First, check the cache.
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
# We cache because it is a 1sec delay, which is painful for the poller
|
||||
if [ -x /bin/rpm ]; then
|
||||
DATE=$(date +%s)
|
||||
FILE=/tmp/observium-agent-rpm
|
||||
FILE=/tmp/agent-local-rpm
|
||||
if [ ! -e $FILE ]; then
|
||||
/bin/rpm -q --all --queryformat '%{N} %{V} %{R} %{ARCH} %{SIZE}\n' > $FILE
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user