You are not permitted to perform this function"); exit; } echo("

Add Device

"); if($_POST['hostname'] && $_POST['community']) { if($_SESSION['userlevel'] > '5') { $hostname = $_POST['hostname']; $community = $_POST['community']; $snmpver = $_POST['snmpver']; echo("

"); echo("Adding host $hostname community $community

"); $result = addHost($hostname, $community, $snmpver); echo("$result"); echo("

"); } else { echo("

Error: You don't have the necessary privileges to add hosts.

"); } } elseif ( $_POST['hostname'] && !$_POST['community'] ) { echo("

Error: A community string is required.

"); } elseif ( !$_POST['hostname'] && $_POST['community'] ) { echo("

Error: A hostname is required.

"); } ?>

Devices will be checked for Ping and SNMP reachability before being probed. Only devices with recognised OSes will be added.

Hostname
Community
SNMP Version