Manage Plugin 0.6.2 for monitoring networks, servers...

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

the whitness, good luck for rewrite

manage code is sometimes strange, even for me

for the security, keep in mind that, in my case, cacti is not exposed to internet and that i have IP restrictions for IT staff and ssl for my apache web server
and that manage is already listed ALPHA in the first post


mcutting, try to upgrade to php 5, strripos function is not implemented in php 4

or maybe try this code :

Code: Select all

  while ($row3 = mysql_fetch_array($result3, MYSQL_ASSOC)) {
    ?>
	<input type='checkbox' style='margin: 0px;' name='chk2_<?php $pos=strrpos($row3['name_cache']," - ")+1; $str=substr($row3['name_cache'],$pos); print $str;?>'<?php
	  for ($m=0;$m<count($o);$m++) {
	  if (strtolower($str) == strtolower($o[$m])) {
	    print " checked";
	  }
	}
	?>
	><?php print $str;
	print "</select><br>";
DAP
Posts: 43
Joined: Mon Jul 18, 2005 10:42 pm
Location: Melbourne, Australia

Post by DAP »

Thanks TheWitness, changing logger to manage_logger has fixed my issue.

Cheers
[quote][b]Cacti Version[/b] - 0.8.6j
[b]Plugin Architecture[/b] - 1.1
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Windows NT 6.0
[b]Web Server[/b] - Microsoft-IIS/7.0
[b]PHP[/b] - 5.2.0
[b]PHP Extensions[/b] - bcmath, calendar, com_dotnet, ctype, session, filter, ftp, hash, iconv, json, odbc, pcre, Reflection, date, libxml, standard, tokenizer, zlib, SimpleXML, dom, SPL, wddx, xml, xmlreader, xmlwriter, ISAPI, gd, mysql, snmp, sockets
[b]MySQL[/b] - 5.0.27-community-nt
[b]RRDTool[/b] - 1.2.15
[b]SNMP[/b] - 5.4
[b]Plugins[/b][list]Large Site Performane Booster for Cacti (boost - v1.0)
Read-only Devices Tab (devices - v0.4)
Network Discovery (discovery - v0.7)
Simple Links page (links - v0.3)
Host Info (hostinfo - v0.1)
Device Monitoring (monitor - v0.7)
PHP Network Managing (manage - v0.4)
NTop Viewer (ntop - v0.1)
Report Creator (reports - v0.1b)
Network Tools (tools - v0.2)
Update Checker (update - v0.3)
PHP Network Weathermap (weathermap - v0.82)[/list][/quote]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Gilles,

I really like your UI design approach. I need to rework the code to use the standard functions though. When I have the first one or two done, I will send you the revised code.

I think you will like it.

Regards,

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Hi Gilles,

Thanks for the new code. This seems to work fine under my version of PHP. However, although I can see the process as "pending", when the poller runs, this seems to get deleted, and the process is unticked when I check it under manage.

Any ideas as to why this is ?

Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
DennisS
Posts: 2
Joined: Sat Jun 10, 2006 10:04 am

Re: Manage plugin

Post by DennisS »

Hello,

I have tried v4.2 but i have still some errors....

The MySQL table already exists.

Can somebody help my?

Thnxs
ServerTweak wrote:you have an" how to install " doc information or can someone provide one?
gilles wrote:ALPHA VERSION

ONLY FOR TESTERS

I NEED FEEDBACK

screenshots are in 2nd post, much recents are coming

Roadmap : http://forums.cacti.net/viewtopic.php?p=69297#69297

15/06/2006 LAST VERSION 0.3.2 : http://gilles.boulon.free.fr/manage/manage-0.3.2.zip

Old versions :
http://gilles.boulon.free.fr/manage/manage-0.3.1.zip : 15/06/2006
http://gilles.boulon.free.fr/manage/manage-0.3.zip : 14/06/2006
http://gilles.boulon.free.fr/manage/manage-0.2.zip : 03/06/2006
http://gilles.boulon.free.fr/manage/manage.zip : 29/05/2006[/url]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

There is a functional version at www.cactiusers.org under Cigamit's SVN. I will be moving it to the SVN at www.cact.net within the next day or so.

Please note that this plugin is NOT expoit proof and is still considered ALPHA. I would not recommend that you place it on an externally facing server at this moment.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
DennisS
Posts: 2
Joined: Sat Jun 10, 2006 10:04 am

Post by DennisS »

I have all install the version of cactiuser...

Your version of manage gives these error: Table 'cactidb.manage_host' doesn't exist
TheWitness wrote:There is a functional version at www.cactiusers.org under Cigamit's SVN. I will be moving it to the SVN at www.cact.net within the next day or so.

Please note that this plugin is NOT expoit proof and is still considered ALPHA. I would not recommend that you place it on an externally facing server at this moment.

TheWitness
User avatar
ruud
Cacti User
Posts: 64
Joined: Tue Aug 22, 2006 3:07 am
Location: Rotterdam, The Netherlands
Contact:

Post by ruud »

My virus scanners start to panic when i try unpacking this zip file..
Is doesnt like the pskill.exe, complaining it contains the Tool.PsKill.1101 virus !

Is my scanner crazy or are the files on the download server corrupted ??

Apparantly it is recognized as a hacking tool.. is this supposed to be ?
Server #1 : Cacti 0.8.7b | cmd.php | HP Proliant DL380 G5 (Dual Core Xeon 3.2 GHz, 14 Gb, 2x73 Gb RAID1 - System + 3x73 Gb RAID5 - SQL/RRA) | Gentoo Linux
_________SYSTEM STATS: Time:114.6022 Method:cmd.php Processes:8 Threads:N/A Hosts:408 HostsPerProcess:51 DataSources:32276 RRDsProcessed:16148
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

you can try to download original pskill here
http://www.microsoft.com/technet/sysint ... skill.mspx

tell me if you have the same error or not

pskill is used to kill php process which doesn 't terminate correctly before launch another

you won't need it
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Gilles - I noticed that there seems to be v5 (or 0.4.3) of the Manage plugin at cactiusers.org (in SVN). I downloaded this version, but couldn't get it to work. Do you have this version ready for public use, or is it still in test ?

Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
N3NCY
Cacti User
Posts: 260
Joined: Thu Sep 22, 2005 7:50 pm
Location: Landenberg, PA
Contact:

Post by N3NCY »

Greetings all!

I recently updated to the latest versions of Cacti v0.8.6j and Cactid v0.8.6i and Plugin Architecture v1.1 and Thold v0.3.2 and Boost v1.1!
Rock on Boost!

Everything went seemingly well.

Then I noticed the manage plugin was no longer updating.
And new devices I just added stayed at 0h 0m 0s

So I upgraded my manage plugin from an older 0.4 to the latest 0.42.
No help.

So I tried the posted fix of editing check.php and changing all logger to manager_logger
No help.

I can run the command manually and I get output:
/usr/local/bin/php /opt/apache/htdocs/cacti/plugins/manage/check-manage.php
03/09/2007 07:49:51 PM - MANAGE: Poller[0] Checking Manage
nb pollers : 1
137 138 4 5 6 7 102 97 98 130 129 100 101 103 104 105 106 107 108 109 110 111 112 126 127 128 2 113 114 115 116 117 118 119 120 121 123 124 125 133 134 135 136 140 141 142 143 144 145 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 206 213 214 215 216 217 218 219 220 221 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298
count : 191
N : 191
reste : 0
exec 1 -> 191 137 138 4 5 6 7 102 97 98 130 129 100 101 103 104 105 106 107 108 109 110 111 112 126 127 128 2 113 114 115 116 117 118 119 120 121 123 124 125 133 134 135 136 140 141 142 143 144 145 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 206 213 214 215 216 217 218 219 220 221 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298


However my uptime still does not update for any devices.

Does my command line output look ok?
Any thoughts on why my uptimes do not update?
Thank you,

Ernie
http://www.NMSWorld.com
[b]Dual Zeon Dual Core 2.6Ghz / 8GB RAM / 4x15k RPM SATA RAID5[/b]
[b]Cacti Version[/b] - 0.8.7b
[b]Poller Type[/b] - cactid 0.8.7 with Boost v1.7
[b]Server Info[/b] - FreeBSD 7.0-RELEASE
[b]Web Server[/b] - Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 PHP/5.2.5 mod_perl/2.0.3 Perl/v5.8.8
[b]PHP[/b] - 5.2.6
[b]MySQL[/b] - 5.0.51b Mod: poller_output ENGINE = MEMORY
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Host Info (hostinfo - v0.2), Update Checker (update - v0.3), Network Tools (tools - v0.2), FlowView (flowview - v0.3), Read-only Devices Tab (devices - v0.4), Network Discovery (discovery - v0.8.3), Syslog Monitoring (syslog - v0.5.2), Thresholds (thold - v0.3.9), Device Monitoring (monitor - v0.8.2), PHP Network Weathermap (weathermap - v0.941), SuperLinks (superlinks - v0.72), Report Creator (reports - v0.1b)
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Ernie,

Try the version at the following address:

Code: Select all

svn checkout svn://svn.cacti.net/var/svnroot/cacti_plugins
Larry

I am meaning to complete the certification, but pretty busy these days.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Is the manage plugin from svn functional ? I couldn't get it to work?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

According to Gilles, yes. However, I have not reviewed/certified it. I have take and cursory look and it needs some changes. But it is quite a nice concept.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
N3NCY
Cacti User
Posts: 260
Joined: Thu Sep 22, 2005 7:50 pm
Location: Landenberg, PA
Contact:

Post by N3NCY »

Ouch!

Nuclear meltdown on the SVN version.
(I did dos2unix too, no help)

My entire Cacti web interface shows only this:

Warning: opendir(/usr/opt/apache/htdocs/cacti/plugins/manage\images\themes) [function.opendir]: failed to open dir: No such file or directory in /usr/opt/apache/htdocs/cacti/plugins/manage/setup.php on line 391

Warning: readdir(): supplied argument is not a valid Directory resource in /usr/opt/apache/htdocs/cacti/plugins/manage/setup.php on line 392

Warning: closedir(): supplied argument is not a valid Directory resource in /usr/opt/apache/htdocs/cacti/plugins/manage/setup.php on line 399


Warning: include(/usr/opt/apache/htdocs/cacti/plugins/manage\manage_lib.php) [function.include]: failed to open stream: No such file or directory in /usr/opt/apache/htdocs/cacti/plugins/manage/setup.php on line 82

Warning: include() [function.include]: Failed opening '/usr/opt/apache/htdocs/cacti/plugins/manage\manage_lib.php' for inclusion (include_path='.:/usr/local/lib/php') in /usr/opt/apache/htdocs/cacti/plugins/manage/setup.php on line 82

Fatal error: Call to undefined function manage_check_version() in /usr/opt/apache/htdocs/cacti/plugins/manage/setup.php on line 84


I switched back to the version that won't update for now.
The version I have has command line output.
What should good command line output look like?
Thank you,

Ernie
http://www.NMSWorld.com
[b]Dual Zeon Dual Core 2.6Ghz / 8GB RAM / 4x15k RPM SATA RAID5[/b]
[b]Cacti Version[/b] - 0.8.7b
[b]Poller Type[/b] - cactid 0.8.7 with Boost v1.7
[b]Server Info[/b] - FreeBSD 7.0-RELEASE
[b]Web Server[/b] - Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 PHP/5.2.5 mod_perl/2.0.3 Perl/v5.8.8
[b]PHP[/b] - 5.2.6
[b]MySQL[/b] - 5.0.51b Mod: poller_output ENGINE = MEMORY
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Host Info (hostinfo - v0.2), Update Checker (update - v0.3), Network Tools (tools - v0.2), FlowView (flowview - v0.3), Read-only Devices Tab (devices - v0.4), Network Discovery (discovery - v0.8.3), Syslog Monitoring (syslog - v0.5.2), Thresholds (thold - v0.3.9), Device Monitoring (monitor - v0.8.2), PHP Network Weathermap (weathermap - v0.941), SuperLinks (superlinks - v0.72), Report Creator (reports - v0.1b)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests