replacing <? with <?php

git-svn-id: http://www.observium.org/svn/observer/trunk@466 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2009-09-07 11:07:59 +00:00
parent 5e076981f5
commit bfc9f845ce
66 changed files with 73 additions and 73 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
## Common Functions
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
### Discover BGP peers on Cisco devices
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
unset ($mac_table);
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
$id = $device['device_id'];
$hostname = $device['hostname'];
$community = $device['community'];
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
$id = $device['device_id'];
$hostname = $device['hostname'];
$community = $device['community'];
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
echo("Cisco VLANs : ");
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
unset( $vrf_count );
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
# Discover interfaces
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
unset( $storage_exists );
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
$id = $device['device_id'];
$hostname = $device['hostname'];
$community = $device['community'];
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
## Include from PEAR
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
function pollDevice() {
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
function memgraphWin ($rrd, $graph, $from="-2d")
{
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
if(!$os) {
if(strstr($sysDescr, "FreeBSD")) { $os = "FreeBSD"; } ## It's FreeBSD!
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
if(!$os) {
if(preg_match("/^NetBSD/", $sysDescr)) { $os = "NetBSD"; }
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
if(!$os) {
if(preg_match("/^OpenBSD/", $sysDescr)) { $os = "OpenBSD"; }
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
echo("Polling BGP peers\n");
@@ -1,4 +1,4 @@
<?
<?php
$query = "SELECT * FROM entPhysical WHERE device_id = '" . $device['device_id'] . "' AND entPhysicalClass = 'sensor'";
$sensors = mysql_query($query);
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
$query = "SELECT * FROM cempMemPool WHERE device_id = '" . $device['device_id'] . "'";
$pool_data = mysql_query($query);
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
$query = "SELECT * FROM cpmCPU WHERE device_id = '" . $device['device_id'] . "'";
$proc_data = mysql_query($query);
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
$community = $device['community'];
$id = $device['device_id'];
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
$cpurrd = $config['rrd_dir'] . "/" . $hostname . "/cpu.rrd";
$memrrd = $config['rrd_dir'] . "/" . $hostname . "/mem.rrd";
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
echo("Doing Juniper Netscreen (ScreenOS)");
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
echo("Polling SNOM device...\n");
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
if(strstr($sysDescr, "x86")) { $hardware = "Generic x86"; }
if(strstr($sysDescr, "Windows Version 5.2")) { $version = "2003 Server"; }
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
$interface_query = mysql_query("SELECT * FROM `interfaces` $where");
while ($interface = mysql_fetch_array($interface_query)) {
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
$query = "SELECT * FROM temperature WHERE temp_host = '" . $device['device_id'] . "'";
$temp_data = mysql_query($query);
+1 -1
View File
@@ -1,4 +1,4 @@
<?
<?php
include("procurve-graphing.php");
+3 -4
View File
@@ -1,4 +1,3 @@
<?
include("unix-graphing.php");
<?php
include("unix-graphing.php");
?>