dos2unix is my friend, scotch is not...egarnel wrote:It looks like this plugin was developed in windows - lots of ^M chars and there is an .exe file in the zip.
Manage Plugin 0.6.2 for monitoring networks, servers...
Moderators: Developers, Moderators
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
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
OK, that shows up. thanks
Unix users will need to tweak the settings
see attached
Unix users will need to tweak the settings
see attached
- Attachments
-
- plugin_manage.jpg (50.61 KiB) Viewed 4769 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
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
yes, the exe is for windows, and only for people with buggy windows nt servers, like meegarnel wrote:It looks like this plugin was developed in windows - lots of ^M chars and there is an .exe file in the zip.
i don't know what ^M chars : i use notepad++ http://notepad-plus.sourceforge.net for Syntax Coloration
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
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
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
A lot of better ...gilles wrote:2. tell me
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
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
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
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
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
-
- Posts: 24
- Joined: Wed May 10, 2006 2:46 pm
- Location: Memphis, TN USA
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.
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]
[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]
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 ?
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 ?
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
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
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 :
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
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));
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
No cookies, more simple, you were near of the solution.gilles wrote:i don't know how to do this... (cookies...)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 ....
in setup.php line 268 replace
Code: Select all
$v = read_config_option("manage_list");
Code: Select all
$v1 = read_config_option("manage_list");
load_current_session_value("simple", "sess_device_simple", $v1);
$v = $_REQUEST["simple"];
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");
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
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
Add alsogilles wrote:pepj, thanks
i'm going to test this
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
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
Who is online
Users browsing this forum: No registered users and 2 guests