Manage Plugin 0.6.2 for monitoring networks, servers...

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
caoboth
Posts: 8
Joined: Fri Sep 09, 2005 2:59 am

Post by caoboth »

I must admit on my manage_check.php its reporting the correct oid for uptime (this is for Mib not Mib2) im also running 0.6 and have some very strange times within manage.

Im going to keep checking ive just switched the manage system to use the snmp times rather than do an uptime poll internally which i have a look around.

do we also know if manage is continuing to be developed as there a load of extra addons/additions that could be made (e.g alerting windows / group specific alerts from up/down/reboot etc)

Andy
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

caoboth wrote:I must admit on my manage_check.php its reporting the correct oid for uptime (this is for Mib not Mib2) im also running 0.6 and have some very strange times within manage.

Im going to keep checking ive just switched the manage system to use the snmp times rather than do an uptime poll internally which i have a look around.

do we also know if manage is continuing to be developed as there a load of extra addons/additions that could be made (e.g alerting windows / group specific alerts from up/down/reboot etc)

Andy
Yes, Gilles is still doing work with Manage, but I believe he has a real job somewhere so he works on it when he can.

If you look at the lines that I posted, the actual issue is with the MIB section, not the MIB2 section. MIB2 is actually correct, MIB is not, it's not pulling sysuptime, it's pulling hrsystemtime. I'm not sure why Gilles put the different values in for MIB and MIB2 as if you're looking for real system uptime, I believe you'd always want to pull sysuptime.
[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
danwdoo
Cacti User
Posts: 50
Joined: Thu Oct 26, 2006 11:42 pm

Which script for monitoring Windows Services

Post by danwdoo »

Hello,
I'm a little confused as to which script I should be using to monitor Windows services for uptime with Manage. I am running Cacti on Windows and many of the solutions in this thread list the scripts for Linux. Any clarification would help! I tried the updated Linux ones and they just return 0's so I'm guessing they aren't the right ones!

Thanks!
Danny
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Danny - search the Scripts and Templates forum for Windows Services (Cigamit) and Windows Processes (BSOD2600). Once you have these running, Manage detects these, and starts to monitor them.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

mcutting wrote:Danny - search the Scripts and Templates forum for Windows Services (Cigamit) and Windows Processes (BSOD2600). Once you have these running, Manage detects these, and starts to monitor them.
When you're adding a service to be monitored via SNMP, once you create the graph, do you need to re-index the services? That's what I've been having to do to make them work.
[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
steffenn
Posts: 19
Joined: Fri Jun 23, 2006 11:07 am
Location: Munich

Manage Plugin: none admin users keeps unauthorized

Post by steffenn »

1st of all, Manage 0.6 is a great plugin, good job :P

After establishing this plugin for the default admin user without problems, we get in trouble with user customizing:

Suse 10.3
PA 2.1
Cacti 0.8.7b
Manage 0.6

Despite setting all realm and permission flags in the userprofile of a 2nd user like for the admin user, the new user keeps unauthorized, when klicking the Manage Tab in thge Cacti GUI. What do we wrong?

Can I ask one further question: Are their an exchange plattform for Manage Plugin extensions, like templates and further probing of several device types.

Steffen
laraujo07
Posts: 1
Joined: Wed Jan 16, 2008 8:09 am

manage 0.6 + cacti 0.87

Post by laraujo07 »

Hello,

I'm running cacti 0.87b in Debian Etch with PA 2.1, manage 0.6 and spine. The graphs was create well and all others plugins (thold, discovery...) too. The graphs about TCP, Windows Process and windows services are creating with success, not problem, but I was with problem in manage windows Services and windows process in the cases following.
1- When I was using the Cacti_poller and SNMP (performance) the windows process are without problems and all windows services are down.
2 - When I was using the Cacti_poller and Poller_output (performance) the windows process are up (with many false/positive and many email alerts UP/DOWN) and the windows services are up without problems.

Any ideas ? Thanks.
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

If anyone is interested, I'm currently working on a modification to Manage that will do Text to Speech conversion and read the actual errors outloud using Flite (Festival Lite). So far, the only page I've needed to change to make this happen is manage_ajax.php. I should have something ready for others to test in a couple of days.
[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

That sounds like a "Bloom"ing great idea. :D :D

Wonders to self if the hint was too subtle...

It actually sounds like a great idea. Especially if you have a system that is dedicate to Cacti and it is always set at the Manage page. Kind of reminds me of the Monitor plugin that would use a voice prompt to alert you to a problem.

app
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

apperrault wrote:That sounds like a "Bloom"ing great idea. :D :D

Wonders to self if the hint was too subtle...

It actually sounds like a great idea. Especially if you have a system that is dedicate to Cacti and it is always set at the Manage page. Kind of reminds me of the Monitor plugin that would use a voice prompt to alert you to a problem.

app
Bloom is almost ready, I think N3ncy is finishing up testing his script soon. We've had to make a couple of changes while we were testing things out.

And you hit exactly why I did this. I have my Cacti box sitting in my office and I have it logged in while I'm here with the Manage page up, and every 5 minutes it reads if there are any errors based upon the refresh timer built into Manage.

Of course, it will also read it on a remote workstation as I have Flite piping the output to a WAV file. On the local server, it reads it directly from the text file.

The only issue that I don't think I'm gonna be able to overcome is having it play the WAV file running on a Linux workstation running Firefox, as I haven't found a good solution for playing a WAV file embedded in a webbrowser on Linux. I'm open to suggestions if anyone has one regarding that.

Evil thought: Combine Flite with CactiCam. Sit at home and watch the office on CactiCam while SSH'd into the box. When you see someone enter the office type messages to be played over the cacti speakers addressed directly to them.

Of course, the Motion software that I'm using for Cacti can trigger events so it could be relatively automatic in speaking phrases, but it would be great if it could do face recognition and address people by name.
[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

parameter disappearing after refresh or execute request

Post by pepj »

Hi Gilles
What about my changes ... agreeing or not ...

history:
1/It is very not funny when all selected parameters disappear (for example in "Event Reporting" the "filter" or "selected device") after a refresh or executing a request.
2/ It would be good at giving the number of the showed lines.

Here my corrections for this part:
in "manage_viewalerts.php" line 100:

Code: Select all

load_current_session_value("host_managed", "sess_host_managed", "1"); 
   load_current_session_value("event", "sess_event", "1"); 
   load_current_session_value("id", "sess_id", ""); 
   load_current_session_value("managenbrline", "sess_managenbrline", "20"); 
and for the number of lines of "Event Reporting"
"manage_viewalerts.php": near line 284

Code: Select all

               <td width="5"></td> 
<?php 
/* BEGIN CHANGES 2 */ 
      $managenbrline = (isset($_REQUEST["managenbrline"])) ? intval($_REQUEST["managenbrline"]) : 20; 
      $managenbrline = ($managenbrline<20) ? 20: $managenbrline; 
?> 
               <td width="20">&nbsp;&nbsp;&nbsp;&nbsp;nbr&nbsp;of&nbsp;events:&nbsp; 
            </td> 
            <td><input type='text' name='managenbrline' size='2' value='<?php print $managenbrline;?>'></td> 
<?php /* END CHANGES 2 */ ?> 
and "manage_viewalerts.php":

Code: Select all

$alerts = db_fetch_assoc("select 
      ida, 
      idh, 
      datetime, 
      ids, 
      message, 
      note, 
      oid 
      from manage_alerts 
      where idh=" . $_REQUEST["id"]. $tmp . " order by datetime DESC limit ".$managenbrline."");
Jean-Michel
cacti 0.8.7e | cmd & cactid (cactid 0.8.x) | Linux | MySQL Ver 14.7 Distrib 4.1.12, for Win32 | PHP v5.2.6 | Apache v2.x | Thold | Plugin Architecture | plugin "configuration manager" http://cactiusers.org/forums/topic257.html | plugin "IP subnet calculator IPv4 / IPV6" http://forums.cacti.net/viewtopic.php?t=15428 | plugin banner http://docs.cacti.net/userplugin:banner | Net-SNMP 5.5.2 | cygwin 1.5.18 of 02.07.2005
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

Ok, I think I have my modifications for the speaking portion of Manage ready for testing. I'll send it to the first three people that PM me here.

Pre-requisite though, you must have Flite already installed on your machine before you ask for it. Make sure that it works by creating a test wav file.

When I hear back from those three people that I send it to that it's working I'll publish it for everyone.
[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

for the uptime problem, i include a patch from uptime plugin thread.
somebody was having a problem with a bad snmp agent.
you can adjust this in options :

Code: Select all

Check system uptime
If available, rather than snmp agent uptime.
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

streaker69 wrote:
mcutting wrote:Yes, which makes it inaccurate, which I have noticed before.
FOUND IT!

Read the info on the first image, then make the change from the second image. The wrong OID is being called resulting in the incorrect values for Windows boxes.
i think NO don't touch that.
just look down in the code you post, there is the correct oid (MIB II).

if you launch manage from command line and it's outputting it use MIB, i think you have a problem.
to use MIB II, which is more accurate, use options (see my precedent post).

if you could confirm that...
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Re: parameter disappearing after refresh or execute request

Post by gilles »

pepj wrote:1/It is very not funny when all selected parameters disappear (for example in "Event Reporting" the "filter" or "selected device") after a refresh or executing a request.
i can't reproduce this.
can you explain me ?

currently, it's right that if you click save button, you come back to a clear screen.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests