Manage Plugin 0.6.2 for monitoring networks, servers...

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

Hi all, thanks for all the help. I got the Manage plugin to work!!!! One question, i am running the Manage Poller every 2 minutes, is there any way to not have it alert and send emails, unless the system is not responding for 2 consecutive poller cycles? Many of my systems are hit very hard, and have a lot of activity, and it is not un-common for them to not respond to SNMP on 1 cycle, but respond the next. I love the fact that it is telling me that these systems may have an issue, but when i get systems that fail to respond 1 cycle and do respond the next, i really don't need to get paged for that.

Any assistance would be greatly appreciated.

thanks much

app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

There is a way to do this. If you click on DEVICES (under Device Managing), then choose the affected host, you should be able to change the THRESHOLD level (probably set at 1 or 0) to the value you desire. I've done this (set to 3) for one of my hosts, and this seems to have resolved the issue.

See enclosed screenshot
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 »

I added at site.
When I try to add a group I get
Validation error.
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)
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

MCutting,
Thank you for finding this. I know it is asking a lot, but do you know where in the DB this is stored? I have 78 items being monitored, and i don't want to manually edit each one. If i could run a script that would change that value, that would be great. Hey, or a script where i can add the remaining 100 hosts to the manage plugin as well.

Thanks much

app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

App - Not sure where in the DB this is stored - sorry. Perhaps you may have some success in looking at manage_hosts (just a guess)

N3NCY - have you replaced your manage_groups.php file with the one I posted earlier in this thread ?

Regds
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

Thanks for the pointer, it was in the Manage_hosts table. I did a MySQL dump of that table, changed a host, and did another dump, and found where it was, then it was just a simple matter of changing all of the data for the other hosts, and re-importing that table.

Thanks for all the help.

app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Thanks App - would you mind sharing your procedure so that others looking at this topic may benefit from it ?
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

I know that this is the VERY long way around doing this (if someone knows of an easier way, please let me know!!) I created a backup of the manage_host table using MySQL Administrator. Then, once i determined that the last column (thresold_ref) held the data that needed to be changed, i opened the backup SQL file in my editor (i use UltraEdit, but any other IDE should work) and i changed the data to what i wanted it to look like, and then re-imported the SQL Script.

Here are a couple of examples. I can upload the files if you would like:

Old Version:

Code: Select all


DROP TABLE IF EXISTS `manage_host`;
CREATE TABLE `manage_host` (
  `id` mediumint(8) unsigned NOT NULL default '0',
  `uptime` bigint(20) default NULL,
  `type` mediumint(8) unsigned NOT NULL default '0',
  `services` text,
  `statut` text,
  `force` mediumint(8) unsigned NOT NULL default '9',
  `group` mediumint(8) default '0',
  `thresold` mediumint(8) unsigned NOT NULL default '0',
  `thresold_ref` mediumint(8) unsigned NOT NULL default '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

/*!40000 ALTER TABLE `manage_host` DISABLE KEYS */;
INSERT INTO `manage_host` (`id`,`uptime`,`type`,`services`,`statut`,`force`,`group`,`thresold`,`thresold_ref`) VALUES 
 (9,407749194,1,'389','up',0,3,0,1),
 (5,406861691,1,'389','up',0,3,0,1),
 (6,406330577,1,'389','up',0,3,0,1),
 (35,54516028,1,'3306;22;443;80','up',0,3,0,1),
 (147,185623492,1,'2546','up',0,5,0,1),
New Version:

Code: Select all


DROP TABLE IF EXISTS `manage_host`;
CREATE TABLE `manage_host` (
  `id` mediumint(8) unsigned NOT NULL default '0',
  `uptime` bigint(20) default NULL,
  `type` mediumint(8) unsigned NOT NULL default '0',
  `services` text,
  `statut` text,
  `force` mediumint(8) unsigned NOT NULL default '9',
  `group` mediumint(8) default '0',
  `thresold` mediumint(8) unsigned NOT NULL default '0',
  `thresold_ref` mediumint(8) unsigned NOT NULL default '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

/*!40000 ALTER TABLE `manage_host` DISABLE KEYS */;
INSERT INTO `manage_host` (`id`,`uptime`,`type`,`services`,`statut`,`force`,`group`,`thresold`,`thresold_ref`) VALUES 
 (9,407749194,1,'389','up',0,3,0,2),
 (5,406861691,1,'389','up',0,3,0,2),
 (6,406330577,1,'389','up',0,3,0,2),
 (35,54516028,1,'3306;22;443;80','up',0,3,0,2),
 (147,185623492,1,'2546','up',0,5,0,2),
I hope that helps.

Thanks for all the assistance on this Plugin. Now it is time to get the THold percentages to work. Off to lurk in that thread!!

app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Thanks App.

Come back to me if you struggle with THold percentages, as I've just implemented this myself !

Regds
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 »

mcutting: I copied in the new manage_groups.php from a few posts back.

I can now add sites and groups.
I added a device to a site and group etc.

On the Manage tab I see the device with an error on it:
Fatal error: Call to undefined function bcmod() in /usr/opt/apache/htdocs/cacti/plugins/manage/manage_ajax.php on line 619

Also, the uptime on my device is not incrementing.
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)
zeki
Cacti User
Posts: 92
Joined: Fri Feb 09, 2007 10:55 pm
Location: So. Cal
Contact:

Post by zeki »

There is a way to do this. If you click on DEVICES (under Device Managing), then choose the affected host, you should be able to change the THRESHOLD level (probably set at 1 or 0) to the value you desire. I've done this (set to 3) for one of my hosts, and this seems to have resolved the issue.
See enclosed screenshot
i'm using 0.4.2 and i don't see this option under devices in device managing.
it just gives me the option for

Select OS type :
Select Group :
Force ping or SNMP for this host :
TCP Ports to monitor :
(110;25 for a mail server or 80 for a web server)
This will be ignored if you select a template.
Template :
Services :
Process :

i also wanted to know if it adds anything to thold. i saw somewhere that it uses it but it doesn't add anything under thold correct?
i installed thold at the same time as manage and i've been getting e-mails when hosts go down. i'm not sure if thats from manage or thold.
i'm guessing it's from thold since i don't see any reports in the events reporting under device managing
i hope you guys can help me.
TIA
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

i'm using 0.4.2 and i don't see this option under devices in device managing.
it just gives me the option for
This option is only availale in Manage version 0.5. 0.4.2 doesn't add anything to threshold as far as I know.

Hope this helps.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
zeki
Cacti User
Posts: 92
Joined: Fri Feb 09, 2007 10:55 pm
Location: So. Cal
Contact:

Post by zeki »

i forgot to mention
something is wrong with manage plugin. The uptime is not working and nothing is repoted in event managing. It doesn't tell me anything when devices go down, while thold does.

nb pollers : 10
3 4 1 10 9 8 2 14 5 6 7
count : 11
N : 1
reste : 1
reste different de 0
nouvelle valeur de N : 2
exec 1 -> 2 3 4
exec 3 -> 4 1 10
exec 5 -> 6 9 8
exec 7 -> 8 2 14
exec 9 -> 10 5 6
exec 11 -> 11 7


php check.php 3 4 1 10 9 8 2 14 5 6 7
PHP Fatal error: Cannot redeclare logger() (previously declared in /var/www/cacti/plugins/manage/check.php:300) in /var/www/cacti/plugins/thold/thold-functions.php on line 220
Content-type: text/html
X-Powered-By: PHP/4.3.9

i think that this is the problem. any way to fix it? maybe delete the logger() in thold-functions.php?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

If you are using Plugin Architecture 1.1, you will need to use the patch provided by Larry (TheWitness) for Manage 0.4.2. This has been posted in the Manage topic threads.

If this fails, this issue has been fixed in the upgrade to 0.5
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
tviktor
Posts: 12
Joined: Sun Apr 01, 2007 11:25 pm

Post by tviktor »

manage_list.php smth wrong...
first i anbled management for host ssterminal1, then i click on it and get several errors (1.jpg)
i select sitename, after i can select groupname (that already exists)/ then i save all changes.
but when i open devace again, i get another picture (2.jpg)
group show "none" (in database it's correct)
i cant edit TCP port (no filed)
when i select TCP port template? save changes and open again - it's "none" again

i think, it manage_list.php errors, but i dont know, what to change

management plugin (v. 0.5) i get via svn on april, 02
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests