From f491ec6580d99897c9e2a55125fead77d4717aeb Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Sat, 14 Apr 2012 23:28:23 +0000 Subject: [PATCH] cleanups, add epson printer discovery, fix bar colour on device overview for unknown toner colours git-svn-id: http://www.observium.org/svn/observer/trunk@3036 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/images/os/epson.png | Bin 0 -> 1611 bytes html/includes/functions.inc.php | 12 ++++++------ html/includes/graphs/device/toner.inc.php | 18 +++++++++--------- html/includes/graphs/toner/usage.inc.php | 4 ++-- html/pages/device/overview/toner.inc.php | 9 +-------- includes/discovery/os/epson.inc.php | 8 ++++++++ includes/polling/bgp-peers.inc.php | 10 ++-------- includes/polling/wifi.inc.php | 4 ++-- includes/static-config.php | 8 ++++++++ 9 files changed, 38 insertions(+), 35 deletions(-) create mode 100644 html/images/os/epson.png create mode 100644 includes/discovery/os/epson.inc.php diff --git a/html/images/os/epson.png b/html/images/os/epson.png new file mode 100644 index 0000000000000000000000000000000000000000..746fdc0513585873436eebfeb9fc8761c435daaa GIT binary patch literal 1611 zcmds0`BPH|5Pm2YDpf&XtWs$(LlvV*5D~d7kwd6*XsF;3Y*20_DI|bVRH85-6i3m5 zB~Xgc5d(-L_oX05s}RsYRFVinNE!k!gb)I}>2pTD<}$Z+Ep!dM(J+eSPXd6aw@q}^bpWsy2s#$*y$Kh;X%B59F3}7Zw;302j;C1?;w%aA7Wjm( z@zG{`>1KGkIi7AxNVRgHS?#B7aY)`wyu8(sxy_NW{Q%S2iSdmS>s#j(%)ulZXT}Z} zCe}3t>z0glPqB4Pv~^?daAn!JrP;V&v2jn^`8{i|Cv%qv%kJi+F@>?|Z}1Kl5NtO`z&+yd8QLM^H)|1#YZrt^1+KsB8Z&oE`)G#x+X?ahQvTBpFpQhdExSm&?ey5s! zuOYLbG3(d5tiorxoc8>(wt|X|lE=^4_g~zr=;m-ci@9CJRh=c(ot*0KlInr-+U|$7 z{grjSmGynxx;}0*?@8-GMZ^1=HhyhOe{CzTw(V_w*GLC%>?Kds!~57fG}g%*@8Qc{ z^Cw>qPYwvC1_aW9chW(DWKb|Q_(9S)ta|faIy5SMJ1XUirugES5utooG(9Yy84|07 z6Engo@S_AAlYm0WoLDw5Qz$3oYKeSqO0ggTHBxXkh{-1exRt&kbX&rEW-$-M^?}X!#W+T zgJJ!uBYFhZBM7Q}t`Jm4fuIH>XyY@{yZujbD*uKlx?r4fB7lsp{67O|e7Ly;01UW( zUZmjE(eq7#05R8MofA0r{Icv&R@a(@vft=NycUxRnkcHtKw#3FLfvC}NsABe94Km3 zikeeZyxAfr<+=7`h19*2)R-V{yCf6T7kL;5)5AZpZA}{RVYL^K3=^YiMRHh6Q+tDa zJY$0uA?)naIN_ztBJ)D$_Xj5}LO8@r&@?dGSm3}5iyA=!w=d>w@%zB1i zNy*uZmp8RGpN6c(RLdFbrXMIo#jCVTq50PC2+7^@B>Y&*FqRhoI^-jU8d>T-B2+RA zj*ea|bxLWhYhd=v!&ov \ No newline at end of file diff --git a/includes/polling/bgp-peers.inc.php b/includes/polling/bgp-peers.inc.php index 6586726fb..24e4685c8 100755 --- a/includes/polling/bgp-peers.inc.php +++ b/includes/polling/bgp-peers.inc.php @@ -2,21 +2,15 @@ ## We should walk, so we can discover here too. -echo("Polling BGP peers\n"); - global $debug; -if (!$config['enable_bgp']) -{ - echo("BGP Support Disabled\n"); -} -else +if ($config['enable_bgp']) { foreach (dbFetchRows("SELECT * FROM bgpPeers WHERE device_id = ?", array($device['device_id'])) as $peer) { ### Poll BGP Peer - echo("Checking ".$peer['bgpPeerIdentifier']." "); + echo("Checking BGP peer ".$peer['bgpPeerIdentifier']." "); if (!strstr($peer['bgpPeerIdentifier'],':')) { diff --git a/includes/polling/wifi.inc.php b/includes/polling/wifi.inc.php index 3e9da04a5..87e051873 100644 --- a/includes/polling/wifi.inc.php +++ b/includes/polling/wifi.inc.php @@ -1,9 +1,9 @@