|
|
| Author |
Message |
TheWitness Developer
Joined: 14 May 2002 Posts: 9697 Location: MI, USA
|
Posted: Tue Sep 18, 2007 10:20 am Post subject: |
|
|
But ever increasing? What is your PHP os? Is it 64-bit?
TheWitness
|
|
| Back to top |
|
 |
adrianmarsh Cacti User
Joined: 17 Aug 2005 Posts: 417 Location: UK
|
Posted: Tue Sep 18, 2007 10:23 am Post subject: |
|
|
I'll capture an example snmpwalk on the next "reboot" to see if its the client or the plugin..
Last edited by adrianmarsh on Tue Sep 18, 2007 10:28 am; edited 1 time in total |
|
| Back to top |
|
 |
adrianmarsh Cacti User
Joined: 17 Aug 2005 Posts: 417 Location: UK
|
Posted: Tue Sep 18, 2007 10:27 am Post subject: |
|
|
Centos 4 32bit 2.6.9-42.0.10.EL,
net-snmp-devel-5.1.2-11.EL4.10.0.1
net-snmp-5.1.2-11.EL4.10.0.1
php-snmp-4.3.9-3.22.5
net-snmp-libs-5.1.2-11.EL4.10.0.1
net-snmp-utils-5.1.2-11.EL4.10.0.1
|
|
| Back to top |
|
 |
achea
Joined: 24 Sep 2007 Posts: 6
|
Posted: Thu Oct 11, 2007 4:14 am Post subject: |
|
|
i use the host.php patch
with Plugin Architecture1.1 and cacti 0.8.6j
In the Device page I can see the uptime column
but it also report an error :
Notice: Undefined index: host_status in /var/www/html/cacti/host.php on line 804
part of the host.php:
if (!empty($_SESSION["sess_host_status"])) {
if ($_SESSION["sess_host_status"] != $_REQUEST["host_status"]) { $_REQUEST["page"] = 1; } }
anyone know whats wrong?
|
|
| Back to top |
|
 |
ariesow
Joined: 19 Aug 2007 Posts: 2 Location: Malaysia
|
Posted: Wed Nov 07, 2007 3:29 am Post subject: |
|
|
| My environment her a lot devices and most probably that 10 records is no sufficient for the records. is that possible to me to make it display more than 10 records in the "UPTIME" tab ?
|
|
| Back to top |
|
 |
adrianmarsh Cacti User
Joined: 17 Aug 2005 Posts: 417 Location: UK
|
Posted: Sat Nov 17, 2007 6:58 am Post subject: |
|
|
| Anyone tried this plugin in 0.8.7 yet?
|
|
| Back to top |
|
 |
mcutting Cacti Pro User
Joined: 16 Oct 2006 Posts: 978
|
Posted: Sat Nov 17, 2007 10:00 am Post subject: |
|
|
| Yes - I have it working on 0.8.7
|
|
| Back to top |
|
 |
kurowsky
Joined: 04 Feb 2004 Posts: 46 Location: Richmond, VA.
|
Posted: Mon Nov 19, 2007 12:00 pm Post subject: Patch for 8.7 with auto reload reason |
|
|
I still like this plugin, I don't really have a need for the full blown manage plugin.
Here's my patched check-uptime.php file.
Works with Cacti 8.7, PA 1.3, and Spine (as far as I can tell ...)
Also made a change to auto-fill the reload reason for cisco devices.
Included in email notifications.
| Description: |
copy to ../plugins/uptime/ patch < check-uptime.patch |
|
 Download |
| Filename: |
check-uptime.patch |
| Filesize: |
3.48 KB |
| Downloaded: |
202 Time(s) |
Last edited by kurowsky on Mon Nov 19, 2007 3:56 pm; edited 1 time in total |
|
| Back to top |
|
 |
mcutting Cacti Pro User
Joined: 16 Oct 2006 Posts: 978
|
Posted: Mon Nov 19, 2007 12:08 pm Post subject: |
|
|
These changes look good. However, I'm running windows - could you post the actual check-uptime.php file you have working ?
Thanks
|
|
| Back to top |
|
 |
kurowsky
Joined: 04 Feb 2004 Posts: 46 Location: Richmond, VA.
|
Posted: Mon Nov 19, 2007 12:22 pm Post subject: |
|
|
Absolutely.
| Description: |
|
 Download |
| Filename: |
check-uptime.tar.gz |
| Filesize: |
1.21 KB |
| Downloaded: |
171 Time(s) |
| Description: |
|
 Download |
| Filename: |
check-uptime.zip |
| Filesize: |
1.19 KB |
| Downloaded: |
166 Time(s) |
|
|
| Back to top |
|
 |
adrianmarsh Cacti User
Joined: 17 Aug 2005 Posts: 417 Location: UK
|
Posted: Tue Dec 11, 2007 1:27 pm Post subject: |
|
|
My current (Original version) gives the below output when I manually run the poller.. do you changes "fix" those:
12/11/2007 06:25:10 PM - WEATHERMAP: Poller[0] ColourFromPercent: Clipped node1176241292-node1176241508 103.241590744% to 100%
[root@ubiq-serv6 cacti]# PHP Notice: Undefined variable: config in /var/www/html/cacti/plugins/uptime/check-uptime.php on line 5
PHP Warning: include_once(/plugins/thold/thold-functions.php): failed to open stream: No such file or directory in /var/www/html/cacti/plugins/uptime/check-uptime.php on line 5
PHP Warning: include_once(): Failed opening '/plugins/thold/thold-functions.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/cacti/plugins/uptime/check-uptime.php on line 5
PHP Notice: Undefined variable: config in /var/www/html/cacti/plugins/uptime/check-uptime.php on line 6
PHP Warning: include_once(/lib/snmp.php): failed to open stream: No such file or directory in /var/www/html/cacti/plugins/uptime/check-uptime.php on line 6
PHP Warning: include_once(): Failed opening '/lib/snmp.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/cacti/plugins/uptime/check-uptime.php on line 6
PHP Fatal error: Call to undefined function read_config_option() in /var/www/html/cacti/plugins/uptime/check-uptime.php on line 8
|
|
| Back to top |
|
 |
kurowsky
Joined: 04 Feb 2004 Posts: 46 Location: Richmond, VA.
|
Posted: Wed Dec 12, 2007 8:08 am Post subject: |
|
|
the include for Thold functions was changed from | Code: | | thold-functions.php | to | Code: | | thold_funtions.php. |
Back up your original check-uptime.php and try the new one.
Should resolve the issue.
This is my set up:
| Quote: | Cacti Version - 0.8.7
Plugin Architecture - 1.3
Poller Type - Cactid v
Server Info - Linux 2.6.17-2-686
Web Server - Apache
PHP - 5.2.3-1+lenny1
PHP Extensions - zip, xmlwriter, libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, SimpleXML, sockets, soap, SPL, shmop, standard, Reflection, posix, mime_magic, mbstring, json, iconv, hash, gettext, ftp, filter, exif, dom, dba, date, ctype, calendar, bz2, bcmath, zlib, pcre, openssl, xmlreader, apache2handler, mysql, gd, mysqli, PDO, pdo_mysql, snmp
MySQL - 5.0.45-Debian_1-log
RRDTool - 1.2.19
SNMP - 5.2.3
PluginsGlobal Plugin Settings (settings - v0.3)
Host Info (hostinfo - v0.2)
Update Checker (update - v0.4)
ReportIt (ReportIt - v0.5.1)
Real-time statistics (zond - v0.33)
Read-only Devices Tab (devices - v0.4)
Uptime (uptime - v0.3)
Thresholds (thold - v0.3.8)
Network Discovery (discovery - v0.8.2)
Device Tracking (mactrack - v1.1)
Syslog Monitoring (syslog - v0.5.1)
SuperLinks (superlinks - v0.7) |
|
|
| Back to top |
|
 |
adrianmarsh Cacti User
Joined: 17 Aug 2005 Posts: 417 Location: UK
|
Posted: Wed Dec 12, 2007 8:38 am Post subject: |
|
|
Think that might of done the trick!!
hopefully its also solved the issue where the counters wrap around after 7 days and tell me all the devices have rebooted (see thread)... will post back in 8 days..
|
|
| Back to top |
|
 |
chrisgapske Cacti User
Joined: 22 May 2007 Posts: 266 Location: Padacuh, Ky-Alpena, MI-Gulf Shores,AL
|
Posted: Mon Dec 17, 2007 11:38 am Post subject: Error |
|
|
I get this error when I look at the device page.
I am not sure where I need to look but It looks like there is a table or field missing from SQL?
12/17/2007 10:32:56 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT uptime.id, uptime.uptime FROM uptime,host where host.id = '30' and host.uptime = 'on' and host.id = uptime.id"
12/17/2007 10:32:56 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT uptime.id, uptime.uptime FROM uptime,host where host.id = '21' and host.uptime = 'on' and host.id = uptime.id"
12/17/2007 10:32:56 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT uptime.id, uptime.uptime FROM uptime,host where host.id = '131' and host.uptime = 'on' and host.id = uptime.id"
12/17/2007 10:32:56 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT uptime.id, uptime.uptime FROM uptime,host where host.id = '155' and host.uptime = 'on' and host.id = uptime.id"
12/17/2007 10:32:56 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT uptime.id, uptime.uptime FROM uptime,host where host.id = '59' and host.uptime = 'on' and host.id = uptime.id"
12/17/2007 10:32:56 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT uptime.id, uptime.uptime FROM uptime,host where host.id = '210' and host.uptime = 'on' and host.id = uptime.id"
12/17/2007 10:32:56 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT uptime.id, uptime.uptime FROM uptime,host where host.id = '67' and host.uptime = 'on' and host.id = uptime.id"
12/17/2007 10:32:56 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT uptime.id, uptime.uptime FROM uptime,host where host.id = '135' and host.uptime = 'on' and host.id = uptime.id"
12/17/2007 10:32:56 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT uptime.id, uptime.uptime FROM uptime,host where host.id = '160' and host.uptime = 'on' and host.id = uptime.id"
12/17/2007 10:32:56 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT uptime.id, uptime.uptime FROM uptime,host where host.id = '36' and host.uptime = 'on' and host.id = uptime.id"
12/17/2007 10:32:56 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT uptime.id, uptime.uptime FROM uptime,host where host.id = '64' and host.uptime = 'on' and host.id = uptime.id"
12/17/2007 10:32:56 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT uptime.id, uptime.uptime FROM uptime,host where host.id = '61' and host.uptime = 'on' and host.id = uptime.id"
12/17/2007 10:32:56 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT uptime.id, uptime.uptime FROM uptime,host where host.id = '156' and host.uptime = 'on' and host.id = uptime.id"
12/17/2007 10:32:56 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT uptime.id, uptime.uptime FROM uptime,host where host.id = '185' and host.uptime = 'on' and host.id = uptime.id"
12/17/2007 10:32:56 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT uptime.id, uptime.uptime FROM uptime,host where host.id = '192' and host.uptime = 'on' and host.id = uptime.id"
12/17/2007 10:32:56 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT uptime.id, uptime.uptime FROM uptime,host where host.id = '191' and host.uptime = 'on' and host.id = uptime.id"
12/17/2007 10:32:56 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT uptime.id, uptime.uptime FROM uptime,host where host.id = '128' and host.uptime = 'on' and host.id = uptime.id"
12/17/2007 10:32:56 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT uptime.id, uptime.uptime FROM uptime,host where host.id = '71' and host.uptime = 'on' and host.id = uptime.id"
12/17/2007 10:32:56 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT uptime.id, uptime.uptime FROM uptime,host where host.id = '46' and host.uptime = 'on' and host.id = uptime.id"
12/17/2007 10:32:56 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT uptime.id, uptime.uptime FROM uptime,host where host.id = '91' and host.uptime = 'on' and host.id = uptime.id"
12/17/2007 10:32:56 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT uptime.id, uptime.uptime FROM uptime,host where host.id = '98' and host.uptime = 'on' and host.id = uptime.id"
12/17/2007 10:32:56 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT uptime.id, uptime.uptime FROM uptime,host where host.id = '99' and host.uptime = 'on' and host.id = uptime.id"
12/17/2007 10:32:56 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT uptime.id, uptime.uptime FROM uptime,host where host.id = '56' and host.uptime = 'on' and host.id = uptime.id"
12/17/2007 10:32:56 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1146', SQL:"SELECT uptime.id, uptime.uptime FROM uptime,host where host.id = '121' and host.uptime = 'on' and host.id = uptime.id"
|
|
| Back to top |
|
 |
myfreeke Cacti User
Joined: 04 Dec 2007 Posts: 81
|
Posted: Wed Jan 09, 2008 5:38 am Post subject: |
|
|
I use uptime plugin and have some question
I choose "Devices" view error:
Warning: Missing argument 10 for cacti_snmp_get(), called in /var/monitor/cacti/host.php on line 574 and defined in /var/monitor/cacti/lib/snmp.php on line 39
Warning: Missing argument 10 for cacti_snmp_get(), called in /var/monitor/cacti/host.php on line 579 and defined in /var/monitor/cacti/lib/snmp.php on line 39
Warning: Missing argument 10 for cacti_snmp_get(), called in /var/monitor/cacti/host.php on line 580 and defined in /var/monitor/cacti/lib/snmp.php on line 39
Warning: Missing argument 10 for cacti_snmp_get(), called in /var/monitor/cacti/host.php on line 581 and defined in /var/monitor/cacti/lib/snmp.php on line 39
Warning: Missing argument 10 for cacti_snmp_get(), called in /var/monitor/cacti/host.php on line 582 and defined in /var/monitor/cacti/lib/snmp.php on line 39
| Description: |
|
| Filesize: |
86.03 KB |
| Viewed: |
2656 Time(s) |

|
|
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|