summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/discovery.inc.php
diff options
context:
space:
mode:
authorsasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-03-30 19:41:18 +0000
committersasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-03-30 19:41:18 +0000
commit8e3e630441eaf134f276b3dcd67dce2f0e044387 (patch)
tree627860a10232ebe1caf4b496a132f52da553a9b1 /frontends/php/include/discovery.inc.php
parent5d1e6e58ae6245c3c2034ed7e35f95d45a73055a (diff)
- [DEV-15] autodiscovery by ICMP pings
git-svn-id: svn://svn.zabbix.com/trunk@5559 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/discovery.inc.php')
-rw-r--r--frontends/php/include/discovery.inc.php26
1 files changed, 14 insertions, 12 deletions
diff --git a/frontends/php/include/discovery.inc.php b/frontends/php/include/discovery.inc.php
index 673c9d40..577d983c 100644
--- a/frontends/php/include/discovery.inc.php
+++ b/frontends/php/include/discovery.inc.php
@@ -35,18 +35,19 @@
$port = 0;
switch($type_int){
- case SVC_SSH: $port = 22; break;
- case SVC_LDAP: $port = 389; break;
- case SVC_SMTP: $port = 25; break;
- case SVC_FTP: $port = 21; break;
- case SVC_HTTP: $port = 80; break;
- case SVC_POP: $port = 110; break;
- case SVC_NNTP: $port = 119; break;
- case SVC_IMAP: $port = 143; break;
- case SVC_TCP: $port = 80; break;
- case SVC_AGENT: $port = 10050; break;
- case SVC_SNMPv1:$port = 161; break;
- case SVC_SNMPv2:$port = 161; break;
+ case SVC_SSH: $port = 22; break;
+ case SVC_LDAP: $port = 389; break;
+ case SVC_SMTP: $port = 25; break;
+ case SVC_FTP: $port = 21; break;
+ case SVC_HTTP: $port = 80; break;
+ case SVC_POP: $port = 110; break;
+ case SVC_NNTP: $port = 119; break;
+ case SVC_IMAP: $port = 143; break;
+ case SVC_TCP: $port = 80; break;
+ case SVC_AGENT: $port = 10050; break;
+ case SVC_SNMPv1: $port = 161; break;
+ case SVC_SNMPv2: $port = 161; break;
+ case SVC_ICMPPING: $port = 0; break;
}
return $port;
@@ -66,6 +67,7 @@
$str_type[SVC_AGENT] = S_ZABBIX_AGENT;
$str_type[SVC_SNMPv1] = S_SNMPV1_AGENT;
$str_type[SVC_SNMPv2] = S_SNMPV2_AGENT;
+ $str_type[SVC_ICMPPING] = S_ICMPPING;
if(isset($str_type[$type_int]))
return $str_type[$type_int];