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 »

gilles wrote: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
I think the link is broken. I get a bunch junk

Code: Select all

<br />
<b>Warning</b>:  chdir() [<a href='function.chdir'>function.chdir</a>]: Unable to access ../../ in <b>/mnt/121/sdc/f/8/gilles.boulon/manage/check-manage.php.txt</b> on line <b>3</b><br />
<br />
<b>Warning</b>:  main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/mnt/121/sdc/f/8/gilles.boulon/manage/../../include/config.php) is not within the allowed path(s): (/mnt/121/sdc/f/8/gilles.boulon) in <b>/mnt/121/sdc/f/8/gilles.boulon/manage/check-manage.php.txt</b> on line <b>4</b><br />
<br />
<b>Warning</b>:  main(/mnt/121/sdc/f/8/gilles.boulon/manage/../../include/config.php) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in <b>/mnt/121/sdc/f/8/gilles.boulon/manage/check-manage.php.txt</b> on line <b>4</b><br />
<br />
<b>Warning</b>:  main() [<a href='function.include'>function.include</a>]: Failed opening '/mnt/121/sdc/f/8/gilles.boulon/manage/../../include/config.php' for inclusion (include_path='/mnt/121/sdc/f/8/gilles.boulon/include:.:/usr/php4/lib/php') in <b>/mnt/121/sdc/f/8/gilles.boulon/manage/check-manage.php.txt</b> on line <b>4</b><br />
.....<snip>
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
jherrinike
Posts: 24
Joined: Wed May 10, 2006 2:46 pm
Location: Memphis, TN USA

Post by jherrinike »

I get the same web page when I go to that link.

Here is my output from running the check-manage.php: /usr/local/bin/php /usr/local/apache2/htdocs/cacti/plugins/manage/check-manage.php
08/28/2006 05:58:22 PM - MANAGE: Poller[0] Checking Manage
nb pollers : 5
97 98 64 63 47 48 49 50 51 65 66 69 70 71 72 73 74 75 77 78 76 79 80 99 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 30 31 32 33 34 35 36 37 38 39 40 41 105 104 101 102 60 43 44 56 57 59 114 2 67 8 9 3 10 11 12 13 14 15 16 113 19 20 21 22 23 4 24 25 26 27 28 5 115 52 53 54 42 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 142 143 141 144 145 147 148 149 151 152
count : 127
N : 25
reste : 2
reste different de 0
nouvelle valeur de N : 26
exec 1 -> 26 97 98 64 63 47 48 49 50 51 65 66 69 70 71 72 73 74 75 77 78 76 79 80 99 81 82
exec 27 -> 52 83 84 85 86 87 88 89 90 91 92 93 94 95 96 30 31 32 33 34 35 36 37 38 39 40 41
exec 53 -> 78 105 104 101 102 60 43 44 56 57 59 114 2 67 8 9 3 10 11 12 13 14 15 16 113 19 20
exec 79 -> 104 21 22 23 4 24 25 26 27 28 5 115 52 53 54 42 117 118 119 120 121 122 123 124 125 126 127
exec 105 -> 127 128 129 130 131 132 133 134 135 136 137 138 139 140 142 143 141 144 145 147 148 149 151 152

in my cacti logs all I get for manage is: 08/28/2006 05:58:22 PM - MANAGE: Poller[0] Checking Manage

Besides it just not updating I do like all of the changes to the plugin and can not wait to test it.

Thanks.
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

seems to have errors with exec function under linux...


jherrinike, i don't see any errors

can you run
php check.php 97 98 64 63 47 48 49 50 51 65 66 69 70 71 72 73 74 75 77 78 76 79 80 99 81 82
php check.php 83 84 85 86 87 88 89 90 91 92 93 94 95 96 30 31 32 33 34 35 36 37 38 39 40 41
php check.php 105 104 101 102 60 43 44 56 57 59 114 2 67 8 9 3 10 11 12 13 14 15 16 113 19 20
php check.php 21 22 23 4 24 25 26 27 28 5 115 52 53 54 42 117 118 119 120 121 122 123 124 125 126 127
php check.php 128 129 130 131 132 133 134 135 136 137 138 139 140 142 143 141 144 145 147 148 149 151 152
jherrinike
Posts: 24
Joined: Wed May 10, 2006 2:46 pm
Location: Memphis, TN USA

Post by jherrinike »

Here is what I get: id : 97 - statut : up
method : 0
Host : es054sw001 (ES054SW001), old uptime is : 2011129223, new is : 2019159685
+ host : nothing to do...
+ port : 23 : nopoll
+ mail or netsend demande :


running that command from the console does update my mange screen but still not on its own.
spoonman
Cacti User
Posts: 305
Joined: Tue May 03, 2005 8:54 am
Location: GA

Post by spoonman »

I have the same issue.......
All my checks seem to be ok, but no automatic updates are happening like before...I"m gonna roll back my version until resolved...using linux aswell.
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

new version : 0.4.2

http://gilles.boulon.free.fr/manage/manage-0.4.2.zip

some small bugs under firefox and a big one under linux/unix are corrected ...i hope

include modifications from pepj, too
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

Post by egarnel »

Thanks.

version 4.2 now updates fine under linux
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 »

jherrinike,

it seems that you have much hosts (127) and using only 5 pollers.
so each poller handle 26 hosts.

i think you need to take care of PHP max execution time, like me.

maybe you need to use 10 or 15 pollers.
jherrinike wrote: nb pollers : 5
97 98 64 63 47 48 49 50 51 65 66 69 70 71 72 73 74 75 77 78 76 79 80 99 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 30 31 32 33 34 35 36 37 38 39 40 41 105 104 101 102 60 43 44 56 57 59 114 2 67 8 9 3 10 11 12 13 14 15 16 113 19 20 21 22 23 4 24 25 26 27 28 5 115 52 53 54 42 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 142 143 141 144 145 147 148 149 151 152
count : 127
N : 25
reste : 2
reste different de 0
nouvelle valeur de N : 26
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

Hi,

installed 0.4.2 and I got this behavior:
In full display mode the device names below the pictures are not always displayed. I also get some red blinking names.

At console->Managing->Devices after selecting one:
"Services :
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/html/cacti/plugins/manage/list.php on line 967"

After editing one device and relecting a template and saving it and return to this device again the selected template is not displayed.

Which sorting algorithm is used to display the host on the manage screen?
The alphabetic order does not work here.
Selecting OS-Type,Uptime-Check to devices and applying it this error occours:
"1
Warning: Cannot modify header information - headers already sent by (output started at XXXXXXXX/cacti/plugins/manage/list.php:137) in XXXXXXXXX/cacti/plugins/manage/list.php on line 207"

Feature requests:
- add posibility to check snmp-oids beside tcp-ports (for example the powersupply status)
- add possibility to select devices in that way as you can do it in the management (selecting with name or free text)

Torsten
Attachments
mgt042.GIF
mgt042.GIF (19.03 KiB) Viewed 6899 times
Last edited by torstentfk on Thu Aug 31, 2006 7:49 am, edited 3 times in total.
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

red (or yellow) blinking : it is because this device has a treshold reached
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

torstentfk wrote:In full display mode the device names below the pictures are not always displayed.
does this happens with others views ?
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

torstentfk wrote:After editing one device and relecting a template and saving it and return to this device again the selected template is not displayed.
it's normal, but can you confirm me that TCP ports are saved ?
User avatar
NHDave
Cacti User
Posts: 61
Joined: Sun Mar 20, 2005 9:14 am
Contact:

Post by NHDave »

gilles wrote:
torstentfk wrote:In full display mode the device names below the pictures are not always displayed.
does this happens with others views ?
I have the same thing happening in all views for a small number of hosts.
User avatar
gilles
Cacti User
Posts: 250
Joined: Tue Jul 12, 2005 8:16 pm

Post by gilles »

torstentfk wrote: Selecting OS-Type,Uptime-Check to devices and applying it this error occours:
"1
Warning: Cannot modify header information - headers already sent by (output started at XXXXXXXX/cacti/plugins/manage/list.php:137) in XXXXXXXXX/cacti/plugins/manage/list.php on line 207"
can you comment line 137 in list.php and tell me ?
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

gilles wrote:
torstentfk wrote:In full display mode the device names below the pictures are not always displayed.
does this happens with others views ?
- in all views.

- blinking: I am sorry - this device is in thold monitoring, but no threshold is reached.

- tcp ports are saved

Torsten
Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests