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:
Paul Gear
2013-11-05 09:33:32 +10:00
parent 346ca22a97
commit aa9dded019
32 changed files with 109 additions and 169 deletions

View File

@@ -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.

View File

@@ -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) {

View File

@@ -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

View 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.

View File

@@ -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