discovery plugin customization

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

surajitpal2007
Posts: 35
Joined: Tue Feb 15, 2011 4:51 am

Re: discovery plugin customization

Post by surajitpal2007 »

Can any one please specify how I can add different subnet in discovery plugin? I would like to add 10.24.0.254/28 at following at default subnet area mentioned in plugin findhosts.php:

// 10.1.0.1
if (preg_match("/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/", $h)) {
return $h;
}

and

// 10.1.0.1
if (preg_match("/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/", $h)) {
return 1;
}
Thanks in advance
Jit
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest