Manage Plugin 0.6.2 for monitoring networks, servers...

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

egarnel wrote:It looks like this plugin was developed in windows - lots of ^M chars and there is an .exe file in the zip.
dos2unix is my friend, scotch is not...
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

okay,
1. download 0.4.1
http://gilles.boulon.free.fr/manage/manage-0.4.1.zip
2. tell me
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

OK, that shows up. thanks


Unix users will need to tweak the settings
see attached
Attachments
plugin_manage.jpg
plugin_manage.jpg (50.61 KiB) Viewed 4764 times
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

egarnel wrote:It looks like this plugin was developed in windows - lots of ^M chars and there is an .exe file in the zip.
yes, the exe is for windows, and only for people with buggy windows nt servers, like me

i don't know what ^M chars : i use notepad++ http://notepad-plus.sourceforge.net for Syntax Coloration
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

it is the carriage return char that occurs under windows.

ways to get rid of it:

dos2unix <file>

under vi - :%s/<control-v><control-m>//g

whole lotta tips


http://www.vim.org/tips/tip.php?tip_id=26
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Post by pepj »

gilles wrote:2. tell me
A lot of better ...

Please make peace NO war .... I am using both since years, with problem on both. I am sure we could add feature in this plugin for linux too.
(you can also use ultraedit.exe)

A lot of better ... But ...
1/ The previous settings are not saved !! I clicked before on "list view" and "hosts with error", but it come again with the default ....

2/ Could you do a dynamic host breadth or calculated with the longest host name? (I am lazy and don't want to slide the cursor each time).

3/ What about my UDP ports ? (67)
Last edited by pepj on Mon Aug 28, 2006 10:42 am, edited 1 time in total.
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
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

thanks for putting in the overlib function - very nice!

It is working. Now I don't have to make friends with scotch which is a good thing cause tequila might get jealous
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

pepj wrote: 1/ The previous settings are not saved !! I clicked before on "list view" and "hosts with error", but it come again with the default ....
i don't know how to do this... (cookies...)
pepj wrote: 3/ What about my UDP ports ? (67)
it's planned...
jherrinike
Posts: 24
Joined: Wed May 10, 2006 2:46 pm
Location: Memphis, TN USA

Post by jherrinike »

I have loaded the latest version and changed the perl line to match my linux config. I am not seeing any error's in the log file but my devices are not being updated under mange any more. If I add any in they just stay blue for waiting and the uptime is not changing. I did not have this issue on the previous versions.

Any thought on what I can do to get it running again? I am using the regular Cacti poller.
[quote][b]Cacti Version[/b] - 0.8.6h
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-34.ELsmp
[b]Web Server[/b] - Apache/2.2.2 (Unix) PHP/5.1.4
[b]PHP[/b] - 5.1.4
[b]PHP Extensions[/b] - xmlwriter, libxml, dom, xmlreader, xml, tokenizer, standard, SimpleXML, SPL, session, sockets, PDO, SQLite, Reflection, posix, mysql, iconv, hash, gd, date, ctype, zlib, pcre, apache2handler
[b]MySQL[/b] - 5.0.22-log
[b]RRDTool[/b] - 1.2.13
[b]SNMP[/b] - 5.1.4
[b]Plugins[/b][list]configmanager - v0.2
cycle - v0.1
Read-only Devices Tab (devices - v0.4)
Network Discovery (discovery - v0.5)
Syslog Monitoring (haloe - v0.4)
Host Info (hostinfo - v0.1)
Simple Links page (links - v0.3)
Device Tracking (mactrack - v0.0.1b)
Device Monitoring (monitor - v0.6)
Thresholds (thold - v0.3.0)
Network Tools (tools - v0.2)
Update Checker (update - v0.2)
PHP Network Weathermap (weathermap - v0.82)[/list][/quote]
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

jherrinike,

perl is only needed if you select something other than "none" for "netsend events" in "settings"
try to select "none"

in "settings", for "windows patch" : select "no"

have you something in the logs related to "manage" ?
try searching after "Checking Manage" in cacti.log

what appends when you launch "check-manage.php" from shell ?
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

same here. Here are the results

Code: Select all

 php check-manage.php
Content-type: text/html
X-Powered-By: PHP/4.3.9

08/28/2006 12:40:20 PM - MANAGE: Poller[0] Checking Manage
nb pollers : 5
38 20 10 46 26 33 12 25 32 29
count : 10
N : 2
reste : 0
exec 1 -> 2 38 20
exec 3 -> 4 10 46
exec 5 -> 6 26 33Error in argument 1, char 3: option not found
Error in argument 1, char 3: option not found

exec 7 -> 8 12 25Error in argument 1, char 3: option not found

exec 9 -> 10 32 29
[root@monitor1 manage]# Error in argument 1, char 3: option not found
Error in argument 1, char 3: option not found
Cacti1 OS: CentOS 5.6 | 300+ devices
Cacti2 OS: CentOS 5.6 | 300+ devices
King of the Elves
Local Anarchists Union #427
"Anarchism is founded on the observation that since few men are wise enough to rule themselves, even fewer are wise enough to rule others." -Edward Abbey
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

egarnel,

can you run this check-manage.php ?

http://gilles.boulon.free.fr/manage/che ... ge.php.txt
normally, it won't do anything but it won't do errors too...

at the end of the file, there are 3 lines commented :

Code: Select all

//exxec("./" . $exe . " " . escapeshellarg($args) . " > /dev/null &");
//exxec("./" . $exe . " " . escapeshellarg($args) . " > /dev/null 2>&1 &");
//exxec("./" . $exe . " " . escapeshellarg($args));
can you give me the results for each "check-manage.php", please...

it is important that each "exec" process run in the background and don't block the script
i don't know how to do this in linux/unix
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Post by pepj »

gilles wrote:
pepj wrote: 1/ The previous settings are not saved !! I clicked before on "list view" and "hosts with error", but it come again with the default ....
i don't know how to do this... (cookies...)
No cookies, more simple, you were near of the solution.

in setup.php line 268 replace

Code: Select all

		$v = read_config_option("manage_list");
with

Code: Select all

		$v1 = read_config_option("manage_list");
		load_current_session_value("simple", "sess_device_simple", $v1);
		$v = $_REQUEST["simple"];
and in manage.php line 33 insert

Code: Select all

load_current_session_value("simple", "sess_device_simple", "");
load_current_session_value("group", "sess_device_group", "0");
load_current_session_value("err", "sess_device_err", "0");
load_current_session_value("cbo_host_status4", "sess_device_cbo_host_status4", "0");
For "cbo_host_status4" I am not sure of the default value, so I put "0";

PS: you can also add a button clear (like Mactrac ... a lot of good examples). In this case you will have to add.

Code: Select all

	if (isset($_REQUEST["your_clear_request"])) {
		...
		kill_session_var("sess_device_simple");
		...
		unset($_REQUEST["simple"]);
        }
Last edited by pepj on Mon Aug 28, 2006 3:51 pm, edited 1 time in total.
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
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

pepj, thanks

i'm going to test this
pepj
Cacti User
Posts: 324
Joined: Thu Sep 29, 2005 5:03 am
Location: switzerland

Post by pepj »

gilles wrote:pepj, thanks

i'm going to test this
Add also

Code: Select all

load_current_session_value("err", "sess_device_err", "0"); 
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
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests