Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Uptime plugin (reboot monitor)
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin General
Author Message
TheWitness
Developer


Joined: 14 May 2002
Posts: 9697
Location: MI, USA

PostPosted: Tue Sep 18, 2007 10:20 am    Post subject: Reply with quote

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

PostPosted: Tue Sep 18, 2007 10:23 am    Post subject: Reply with quote

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

PostPosted: Tue Sep 18, 2007 10:27 am    Post subject: Reply with quote

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

PostPosted: Thu Oct 11, 2007 4:14 am    Post subject: Reply with quote

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

PostPosted: Wed Nov 07, 2007 3:29 am    Post subject: Reply with quote

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

PostPosted: Sat Nov 17, 2007 6:58 am    Post subject: Reply with quote

Anyone tried this plugin in 0.8.7 yet?
Back to top
mcutting
Cacti Pro User


Joined: 16 Oct 2006
Posts: 979

PostPosted: Sat Nov 17, 2007 10:00 am    Post subject: Reply with quote

Yes - I have it working on 0.8.7
Back to top
kurowsky



Joined: 04 Feb 2004
Posts: 46
Location: Richmond, VA.

PostPosted: Mon Nov 19, 2007 12:00 pm    Post subject: Patch for 8.7 with auto reload reason Reply with quote

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.



check-uptime.patch
 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: 979

PostPosted: Mon Nov 19, 2007 12:08 pm    Post subject: Reply with quote

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.

PostPosted: Mon Nov 19, 2007 12:22 pm    Post subject: Reply with quote

Absolutely.


check-uptime.tar.gz
 Description:
check-uptime.php

Download
 Filename:  check-uptime.tar.gz
 Filesize:  1.21 KB
 Downloaded:  171 Time(s)


check-uptime.zip
 Description:
check-uptime.php

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

PostPosted: Tue Dec 11, 2007 1:27 pm    Post subject: Reply with quote

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.

PostPosted: Wed Dec 12, 2007 8:08 am    Post subject: Reply with quote

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
Plugins
    Global 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

PostPosted: Wed Dec 12, 2007 8:38 am    Post subject: Reply with quote

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

PostPosted: Mon Dec 17, 2007 11:38 am    Post subject: Error Reply with quote

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

PostPosted: Wed Jan 09, 2008 5:38 am    Post subject: Reply with quote

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



uptime-plugin-error.JPG
 Description:
 Filesize:  86.03 KB
 Viewed:  2658 Time(s)

uptime-plugin-error.JPG


Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin General All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 4 of 7

 



Powered by phpBB © 2001, 2005 phpBB Group