Manage Plugin 0.6.2 for monitoring networks, servers...

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Definately back it off then until there are some additional changes. Looks like he was implementing theme that broke it.

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 »

Help ! I am running a dev box under windows using wamp. Everything works great, but for some unkown reason, manage wont show services as up, euen though Jimmy's template shows them as running, which they are. Strange, as it works fine for localhost, but not for remote boxes. Is there a setting in php i have missed? Any help would be much appreciated ! Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

*** BUMP *** Anyone able to help ?

I now also see

03/12/2007 03:06:16 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "INSERT INTO manage_alerts ( idh , datetime , ids , message, ida, oid ) VALUES ('11', '2007/3/12, 15:6:16', '9999', 'down', '', '35.77.105.99.114.111.115.111.102.116.32.69.120.99.104.97.110.103.101.32.83.121.115.116.101.109.32.65.116.116.101.110.100.97.110.116')"
03/12/2007 03:06:12 PM - CMDPHP: Poller[0] ERROR: SQL Exec Failed "INSERT INTO manage_alerts ( idh , datetime , ids , message, ida, oid ) VALUES ('11', '2007/3/12, 15:6:12', '', 'up', '', '')"


In the cacti logs - anyone offer any pearls of wisdom ?

Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Anyone able to help ?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Manage SVN - Issues

Post by mcutting »

Ok. I gave up on Manage 0.4.2, as I can't seem to make it work. I thought I'd try the latest MANAGE from SVN. I have got this running (well, sort of), but have a few error messages, which I'm hoping either Gilles or TheWitness may be able to help with (or anyone else for that fact)

Please see below

Note - Ignore the stats in my signature, as these are now out of date (I need to change these, I know). I am running on

Windows XP Professional, SP2 (test machine)
MySQL 5.0.27-community-nt
PHP Version 5.2.0
CMD.PHP Poller
Plugin Architecture 1.1
RRDTool - 1.2.15
SNMP - 5.2.1.2

I also see in the logs

03/13/2007 10:42:13 AM - CMDPHP: Poller[0] ERROR: SQL Cell Failed "select site_id from manage_groups where id="
03/13/2007 10:42:10 AM - CMDPHP: Poller[0] ERROR: SQL Cell Failed "select site_id from manage_groups where id="

UPDATE: 10:53am - Interestingly, the MANAGE POLLER seems to be working, although I don't see any hosts listed in the console. Also, the services are not showing as up (hmmm) - see below

Any help would be most appreciated !

PS - Gilles: I really like this plugin, and would love to have it working !
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Some additional info.

I reverted back to Manage 0.4.2, and change the poller log to DEBUG. In the log:

03/14/2007 09:39:40 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:/wamp/php/php.exe, ARGS: -q c:/wamp/www/cacti/scripts/win_services.php xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxx 2 11 get servstate 21.79.102.102.105.99.101.83.99.97.110.78.84.32.76.105.115.116.101.110.101.114]

03/14/2007 09:43:58 AM - CMDPHP: Poller[0] Host[11] DS[402] SERVER: C:\wamp\www\Cacti\scripts\win_services.php win_services xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxx 2 11 get servstate 21.79.102.102.105.99.101.83.99.97.110.78.84.32.76.105.115.116.101.110.101.114 , output: 1

MANAGE seems to be polling everything correctly, and there are no errors whatsoever in the log. The graphs show the services as being up, although MANAGE reports them as down. Interestingly enough, the services on LOCALHOST are working correctly ???

I'm banging my head against the wall with this one - any help would be much appreciated.

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
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

mcutting,

a group must be associated with a site (and only one)

verify your association in "Console -> Manage Groups"
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 info, however, if I try to add a group / site, I get "Validation Error"

Any ideas as to what this is ? Also, the poller seems to be running, but no network objects, servers etc are listed ?

Is this plugin ready for prime time yet ?

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
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

mcutting wrote: if I try to add a group / site, I get "Validation Error"
Thanks
a popup error or a php error ?

can you post a screenshot ?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

It's a PHP error, although it's displayed in the browser window. Nothing much of a screenshot to post - it just says "Validation Error"
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Gilles,

Perhaps the below screenshots help:
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

oh yes i have the same error.

in manage_groups.php, search for

Code: Select all

/* ================= input validation ================= */
and delete or insert a

Code: Select all

//
it is a modification from the witness, related to security

i don't know why this happens

i will send my last version to him and let him take a look
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Thanks Gilles,

Could you post your working plugin here, as I'm not sure that the SVN version is correct ?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Ok - got it working - left a snippet of code that should have been deleted. However, I still get the MySQL errors when trying to manage a new host, so the screenshots in the earlier postings still apply.

This plugin looks fantastic, and I'd love to use it !!!

Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Ok - last bit (I think). On some hosts I want to manage, I get the following error

Notice: Undefined index: group in C:\wamp\www\Cacti\plugins\manage\manage_list.php on line 1030

Can you help ?

Also, the services are still showing as down, regardless of the graphs being up (patch applied as per mories)...I'm desperate to have this working - any assistance would be appreciated.

Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests