Manage Plugin 0.6.2 for monitoring networks, servers...

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

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

Post by mcutting »

Hi Gilles,

Results below - note that I have placed hostname.domain.co.uk in place of the actual hostnames for security. Interestingly enough, neither the WMI or VBS pollers have the value near : "+ mail or netsend demande :" . SNMP seems to have this, but with the errors below.

C:\wamp\www\Cacti\plugins\manage>php manage_check.php wmi_perl 41
id : 41 , statut was : up , method : 0 , result : 125945636
Host : hostname.domain.co.uk(hostname), old uptime is : 125944731, new is : 125945636
+ service gfi languard s.e.l.m. 5.0 alerter agent service , was up -> no change
+ service gfi languard s.e.l.m. 5.0 archiver agent service , was up -> no change
+ service gfi languard s.e.l.m. 5.0 collector agent service , was up -> no change
+ service print spooler , was up -> no change

C:\wamp\www\Cacti\plugins\manage>php manage_check.php wmi_vbs 41
id : 41 , statut was : up , method : 0 , result : 125956008
Host : hostname.domain.co.uk (hostname), old uptime is : 125955501, new is : 125956008
+ service gfi languard s.e.l.m. 5.0 alerter agent service , was up -> no change
+ service gfi languard s.e.l.m. 5.0 archiver agent service , was up -> no change
+ service gfi languard s.e.l.m. 5.0 collector agent service , was up -> no change
+ service print spooler , was up -> no change

Finally - this is clearly what's wrong with SNMP

id : 41 , statut was : up , method : 0 , result : 126005583
Host : hostname.domain.co.uk (hostname), old uptime is : 126004717, new is : 126005583
+ service gfi languard s.e.l.m. 5.0 alerter agent service , was up
Notice: Undefined variable: r2 in C:\wamp\www\Cacti\plugins\manage\manage_check.php on line 303

Notice: Undefined variable: r2 in C:\wamp\www\Cacti\plugins\manage\manage_check.php on line 303

Notice: Undefined variable: r2 in C:\wamp\www\Cacti\plugins\manage\manage_check.php on line 307
-> change

Notice: Undefined variable: r2 in C:\wamp\www\Cacti\plugins\manage\manage_check.php on line 311
+ mail or netsend demande : mcutting@domain.co.uk;mcutting@domain.co.uk
+ No mail or netsend for this event.

Notice: Undefined variable: r2 in C:\wamp\www\Cacti\plugins\manage\manage_check.php on line 313
+ service gfi languard s.e.l.m. 5.0 archiver agent service , was up
Notice: Undefined variable: r2 in C:\wamp\www\Cacti\plugins\manage\manage_check.php on line 303

Notice: Undefined variable: r2 in C:\wamp\www\Cacti\plugins\manage\manage_check.php on line 303

Notice: Undefined variable: r2 in C:\wamp\www\Cacti\plugins\manage\manage_check.php on line 307
-> change

Notice: Undefined variable: r2 in C:\wamp\www\Cacti\plugins\manage\manage_check.php on line 311
+ mail or netsend demande : mcutting@domain.co.uk;mcutting@domain.co.uk
+ No mail or netsend for this event.

Notice: Undefined variable: r2 in C:\wamp\www\Cacti\plugins\manage\manage_check.php on line 313
+ service gfi languard s.e.l.m. 5.0 collector agent service , was up
Notice: Undefined variable: r2 in C:\wamp\www\Cacti\plugins\manage\manage_check.php on line 303

Notice: Undefined variable: r2 in C:\wamp\www\Cacti\plugins\manage\manage_check.php on line 303

Notice: Undefined variable: r2 in C:\wamp\www\Cacti\plugins\manage\manage_check.php on line 307
-> change

Notice: Undefined variable: r2 in C:\wamp\www\Cacti\plugins\manage\manage_check.php on line 311
+ mail or netsend demande : mcutting@domain.co.uk;mcutting@domain.co.uk
+ No mail or netsend for this event.

Notice: Undefined variable: r2 in C:\wamp\www\Cacti\plugins\manage\manage_check.php on line 313
+ service print spooler , was up
Notice: Undefined variable: r2 in C:\wamp\www\Cacti\plugins\manage\manage_check.php on line 303

Notice: Undefined variable: r2 in C:\wamp\www\Cacti\plugins\manage\manage_check.php on line 303

Notice: Undefined variable: r2 in C:\wamp\www\Cacti\plugins\manage\manage_check.php on line 307
-> change

Notice: Undefined variable: r2 in C:\wamp\www\Cacti\plugins\manage\manage_check.php on line 311
+ mail or netsend demande : mcutting@domain.co.uk;mcutting@domain.co.uk
+ No mail or netsend for this event.

Notice: Undefined variable: r2 in C:\wamp\www\Cacti\plugins\manage\manage_check.php on line 313

2007-4-23, at 13:55:4


Let me know if you need anything else.
Last edited by mcutting on Mon Apr 23, 2007 7:56 am, edited 2 times in total.
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: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

:(

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

Doesn't look that good does it !!

I'm sure Gilles can sort this out. Most of the GUI is fixed in his new release...
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 »

please, call it with snmp, not SNMP

Code: Select all

php manage_check.php snmp 41
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Hi Gilles.

Code fixes for email work a treat - thanks.

If you could just sort out the SNMP poller, and the ability to monitor for all three (UP, DOWN, and REBOOT), then my life would be complete !!

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 »

Sorry - my mistake :

id : 41 , statut was : prob , method : 0 , result : 126132491
Host : hostname.domain.co.uk (hostname), old uptime is : 126128856, new is : 126132491
+ mail or netsend demande : mcutting@domain.co.uk
+ OK up
+ service gfi languard s.e.l.m. 5.0 alerter agent service , was down -> no change
+ service gfi languard s.e.l.m. 5.0 archiver agent service , was down -> no change
+ service gfi languard s.e.l.m. 5.0 collector agent service , was down -> no change
+ service print spooler , was down -> no change

2007-4-23, at 14:16:24

These services are actually UP and not DOWN..
Last edited by mcutting on Mon Apr 23, 2007 8:19 am, edited 3 times in total.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

Hi,

after upgrading all groups dissapeared.
It would be nice to get the groups into new the table "sites" at version 0.51.
Also nice to have defining global groups and not site-local groups: As I can see I need groups in every site. I have sites for each customer and in this sites I define groups of switches and routers. So I must define several groups with equal names.
By the way: Could you please implement a possibility to define a selection criterion for the host list? (see normal device listing under "Management")

Torsten
User avatar
cpt_ahab
Cacti User
Posts: 61
Joined: Tue Feb 01, 2005 11:34 am

Post by cpt_ahab »

Hmm updated to version 5.01
Still the Same errors with processes and srvices.
Anyone got this plugin on a linux box..?
I think it has something todo whith that.
manage_services and manage_process are empty.
Thats why i get the mysql_fetch error
and thats why i get the errors in my log.
Debug says all tables are fine..

greez ahab
cacti 0.8.6j ** cactid 0.8.6d ** rrdtool 1.2.15
Debain ** Apache 2 ** PHP 4.3.0
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Mcutting,

The problems not the upgrade, well sort of anyway, it the fact that it is based on the old code base :( So, it's a lot of work to move the changes forward. I have sent a note to Gilles. We will work something out.

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

Larry,

No problems - I can use WMI for the time being, as this works fine. SNMP would be nice to have, along with the UP, DOWN, and REBOOT events all in one.

My issue is that I am monitoring across domains, and SNMP would have fitted the bill nicely.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
cpt_ahab
Cacti User
Posts: 61
Joined: Tue Feb 01, 2005 11:34 am

Post by cpt_ahab »

ok found this in the new REDAME

notes :
- if you use cactid, not cmd.php : services template seems to be
incompatible with cactid, so delete graphs created and disable data
sources to avoid errors in cacti.log

What do you mean by

delete graphs :D and disable datasources :D...?

greez ahab
cacti 0.8.6j ** cactid 0.8.6d ** rrdtool 1.2.15
Debain ** Apache 2 ** PHP 4.3.0
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Gilles - just one small issue I found. If I have multiple email addresses in the global field in manage seperated by a ";", only the first recipient gets the mail - the others following are ignored - an ideas ?

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 »

cpt_ahab wrote:ok found this in the new REDAME

notes :
- if you use cactid, not cmd.php : services template seems to be
incompatible with cactid, so delete graphs created and disable data
sources to avoid errors in cacti.log

What do you mean by

delete graphs :D and disable datasources :D...?

greez ahab
well, the templates have never worked on my linux box...
the cacti poller crash
go to Console -> Data Sources
disable them to force the cacti poller not to update them
for security, delete the associated graph (go to Console -> Graph Management)
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

mcutting wrote:Gilles - just one small issue I found. If I have multiple email addresses in the global field in manage seperated by a ";", only the first recipient gets the mail - the others following are ignored - an ideas ?

Thanks
Gilles - I have found that using a "," instead of ";" to seperate email addresses works - please diregard my previous post, although you may want to change the wording in settings.

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
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

WMI does not work from a Linux box to a Windows box unless you are using the WEBEM extensions provided by Microsoft. This allows things like the "file" command in PHP to get an HTML equivalent of the WMI call. So, instead of something like:

cscript.exe blah_blah_blah

you would use:

$results = file("http://somehost:someport/path_to_blah_blah_blah");

Then process that in a script server script.

Bottom line Windows WMI works using DCOM, CIM (The Open version, does not). Therefore, it breaks in Linux.

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests