"); $os = strtolower(str_replace(" ", "_", $device['os'])); if(is_file($config['install_dir'] . "/html/pages/device/graphs/os-$os.inc.php")) { include($config['install_dir'] . "/html/pages/device/graphs/os-$os.inc.php"); } switch ($device['os']) { case "JunOS": echo("
Processor Utilisation
"); $graph_type = "device_cpu"; include ("includes/print-device-graph.php"); if(mysql_result(mysql_query("SELECT count(*) FROM temperature WHERE temp_host = '" . $device['device_id'] . "'"),0)) { echo("
Temperatures
"); $graph_type = "dev_temperatures"; include ("includes/print-device-graph.php"); echo("
"); } include("graphs/netstats.inc.php"); include("graphs/uptime.inc.php"); break; case "Fortigate": echo("
Processor Utilisation
"); $graph_type = "fortigate_cpu"; include ("includes/print-device-graph.php"); echo("
Memory Usage
"); $graph_type = "fortigate_memory"; include ("includes/print-device-graph.php"); echo("
Firewall Sessions
"); $graph_type = "fortigate_sessions"; include ("includes/print-device-graph.php"); include("graphs/netstats.inc.php"); include("graphs/uptime.inc.php"); break; case "BCM96348": echo("
ADSL Attainable Rate
"); $graph_type = "adsl_rate"; include ("includes/print-device-graph.php"); echo("
"); echo("
ADSL Signal-to-Noise Margin
"); $graph_type = "adsl_snr"; include ("includes/print-device-graph.php"); echo("
"); echo("
ADSL Attenuation
"); $graph_type = "adsl_atn"; include ("includes/print-device-graph.php"); echo("
"); include("graphs/netstats.inc.php"); include("graphs/uptime.inc.php"); break; case "ScreenOS": echo("
Processor Utilisation
"); $graph_type = "netscreen_cpu"; include ("includes/print-device-graph.php"); echo("
Memory Usage
"); $graph_type = "netscreen_memory"; include ("includes/print-device-graph.php"); echo("
Firewall Sessions
"); $graph_type = "netscreen_sessions"; include ("includes/print-device-graph.php"); include("graphs/netstats.inc.php"); include("graphs/uptime.inc.php"); break; case "ProCurve": echo("
Processor Utilisation
"); $graph_type = "device_cpu"; include ("includes/print-device-graph.php"); echo("
"); echo("
Memory Usage
"); $graph_type = "device_memory"; include ("includes/print-device-graph.php"); echo("
"); echo("
Device Uptime
"); $graph_type = "device_uptime"; include ("includes/print-device-graph.php"); break; echo("
"); break; case "Windows": $graph_type = "device_cpu"; include ("includes/print-device-graph.php"); $memgraph = memgraphWin ($device[hostname] . "-mem.rrd", $device[hostname] . "-mem.png", $day, $now, 335, 100); $loadgraph = loadgraphWin ($device[hostname] . "-load.rrd", $device[hostname] . "-load.png", $day, $now, 335, 100); $cpugraphm = cpugraphWin ($device[hostname] . "-cpu.rrd", $device[hostname] . "-cpu-m.png", $month, $now, 335, 100); $memgraphm = memgraphWin ($device[hostname] . "-mem.rrd", $device[hostname] . "-mem-m.png", $month, $now, 335, 100); $loadgraphm = loadgraphWin ($device[hostname] . "-load.rrd", $device[hostname] . "-load-m.png", $month, $now, 335, 100); $usersgraph = usersgraphWin ($device[hostname] . "-sys.rrd", $device[hostname] . "-users.png", $day, $now, 335, 100); $usersgraphm = usersgraphWin ($device[hostname] . "-sys.rrd", $device[hostname] . "-users-m.png", $month, $now, 335, 100); $procsgraph = procsgraphWin ($device[hostname] . "-sys.rrd", $device[hostname] . "-procs.png", $day, $now, 335, 100); $procsgraphm = procsgraphWin ($device[hostname] . "-sys.rrd", $device[hostname] . "-procs-m.png", $month, $now, 335, 100); break; case "FreeBSD": case "NetBSD": case "Linux": case "m0n0wall": case "Voswall": case "DragonFly": case "OpenBSD": case "pfSense": echo("
Processor Utilisation
"); $graph_type = "device_cpu"; include ("includes/print-device-graph.php"); echo("
"); if($device[os] == "m0n0wall" || $device[os] == "pfSense" || $device[os] == "Voswall" || $device[monowall]) { echo("
IP Statistics
"); $graph_type = "device_ip"; include ("includes/print-device-graph.php"); echo("
"); echo("
Device Uptime
"); $graph_type = "device_uptime"; include ("includes/print-device-graph.php"); break; } if($device['os'] != "NetBSD") { echo("
Memory Utilisation
"); $graph_type = "device_memory"; include ("includes/print-device-graph.php"); echo("
"); } if(mysql_result(mysql_query("SELECT count(storage_id) FROM storage WHERE host_id = '" . $device['device_id'] . "'"),0)) { echo("
Storage
"); $graph_type = "device_unixfs"; include ("includes/print-device-graph.php"); echo("
"); } if(mysql_result(mysql_query("SELECT count(*) FROM temperature WHERE temp_host = '" . $device['device_id'] . "'"),0)) { echo("
Temperatures
"); $graph_type = "device_temperatures"; include ("includes/print-device-graph.php"); echo("
"); } include("graphs/netstats.inc.php"); include("graphs/uptime.inc.php"); echo("
System Load
"); $graph_type = "device_load"; include ("includes/print-device-graph.php"); echo("
"); echo("
Users Logged On
"); $graph_type = "device_users"; include ("includes/print-device-graph.php"); echo("
"); echo("
Running Processes
"); $graph_type = "device_procs"; include ("includes/print-device-graph.php"); echo("
"); break; case "CatOS": break; case "IOS": case "IOS XE": break; case "Snom": echo("
Calls
"); $graph_type = "snom_calls"; include ("includes/print-device-graph.php"); } if($memgraph) { echo(" "); } if($storagegraph) { echo("$storagegraph"); } if($loadgraph) { echo(" "); } if($tempgraph) { echo(" "); } if($mailsgraph) { echo(" "); } if($mailerrorgraph) { echo(" "); } if($couriergraph) { echo(" "); } if($ahitsgraph) { echo(" "); } if($abitsgraph) { echo(" "); } if($usersgraph) { echo(" "); } if($procsgraph) { echo(" "); } if($uptimegraph) { echo(" "); } echo(""); } ?>