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: 9671
Location: MI, USA

PostPosted: Sun Apr 06, 2008 8:46 am    Post subject: Reply with quote

Look at the Plugin Announcements forum post about PIA 2.2-beta. That patch will fix the Invalid PHP_SELF.

TheWitness

eterzella.r.t wrote:
When i run php check-uptime.php this error occurred:

root@svr1:/var/www/cacti_original/plugins/uptime# php check-uptime.php

Invalid PHP_SELF Path


Quote:
Cacti Version - 0.8.7b
Plugin Architecture - 2.0
Poller Type - CMD.php
Server Info - Linux 2.6.17-10-server
Web Server - Apache/2.0.55 (Ubuntu) PHP/5.1.6
PHP - 5.1.6
PHP Extensions - xmlwriter, libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, soap, SPL, shmop, session, Reflection, posix, mime_magic, mbstring, iconv, hash, gettext, ftp, filepro, exif, dom, dba, date, ctype, calendar, bz2, bcmath, zlib, pcre, openssl, xmlreader, apache2handler, mysql, snmp, mysqli, gd
MySQL - 5.0.24a-Debian_9-log
RRDTool - 1.2.23
SNMP - 5.2.2
Plugins
    Global Plugin Settings (settings - v0.3)
    Thresholds (thold - v0.3.9)
    Network Discovery (discovery - v0.8.3)
    Device Monitoring (monitor - v0.8.2)
    Host Info (hostinfo - v0.2)
    Network Tools (tools - v0.2)
    Device Tracking (mactrack - v1.1)
    FlowView (flowview - v0.4)
    Uptime (uptime - v0.3)
    PHP Network Weathermap (weathermap - v0.95a)
    ReportIt (ReportIt - v0.5.1)
    Report Creator (reports - v0.3)
    Network Management Inventory Database (nmid - v0.3.7g)
    Poller Performance Report (pollperf - v0.32)
    NMID SmokePing Plugin (nmid_smokeping - v0.1)
    NMID NFTracker Plugin (nmid_nftracker - v0.1)
    NMID WebService Plugin (nmid_webservice - v0.1)
    NMID CiscoWorks Plugin (nmid_ciscoworks - v0.1)
    NMID phpIP Plugin (nmidPhpip - v0.3.8a)
    NMID TaskManager Plugin (nmidTaskManager - v0.3.8a)
    IP subnet Calculator IPv4 IPv6 (ipsubnet - v.4d)
Back to top
gilles
Cacti User


Joined: 12 Jul 2005
Posts: 216

PostPosted: Tue Apr 08, 2008 2:47 pm    Post subject: Reply with quote

updated to PA 2.1
Back to top
MadX



Joined: 23 Apr 2008
Posts: 25

PostPosted: Thu Apr 24, 2008 9:49 pm    Post subject: Reply with quote

For me this is the only one that worked uptime-hj.zip after applying your check-uptime.php changes.

cacti Version 0.8.7b Beta installer for windows
PA 2.1
Apache 2.0
Back to top
Diablork



Joined: 07 Jun 2008
Posts: 1

PostPosted: Sat Jun 07, 2008 5:47 pm    Post subject: Reply with quote

Hi Gilles ! First, big thanks for this plugin !
Second, I had an issue with it ... After install the plugin and patched the host.php file I got an error at line 1291 in browser ! After I commented out this :

Code:
<?php
//gilles 1
?>


everything is fine and working ...
Is that something u've missed or ... ?!
Back to top
benton2006



Joined: 01 Apr 2007
Posts: 49

PostPosted: Tue Jun 17, 2008 10:33 pm    Post subject: Reply with quote

yes , I met the same issue . so I had to use primary file
Back to top
leonardo_gyn
Cacti User


Joined: 22 Jan 2005
Posts: 65

PostPosted: Wed Jun 18, 2008 8:14 am    Post subject: Reply with quote

i have translated some messages sent on the notification message, but the idea stays the same, i havent changed the plugin 'logic'. I'm getting some false positive on reboots, like:

Quote:
Data: 12/6/2008 19:41
Subject: Reboot detectado

Host : 10.255.96.2 (Carapicuíba - AD Logon)
Uptime antigo: 3169780143 (366.9 dias)
Uptime novo : 1605109451 (185.8 dias)
Motivo:



as i also have a graph that shows machine uptime, i'm completly sure that the information was correctly provided by the machine on that moments before and after the gap that triggered the reboot notification.

Quote:
06/12/2008 07:35:30 PM - SPINE: Poller[0] Host[95] DS[1706] SNMP: v1: 10.255.96.2, dsname: host_uptime_win, oid: .1.3.6.1.2.1.1.3.0, value: 1605072326
06/12/2008 07:40:23 PM - SPINE: Poller[0] Host[95] DS[1706] SNMP: v1: 10.255.96.2, dsname: host_uptime_win, oid: .1.3.6.1.2.1.1.3.0, value: 1605101634
06/12/2008 07:45:43 PM - SPINE: Poller[0] Host[95] DS[1706] SNMP: v1: 10.255.96.2, dsname: host_uptime_win, oid: .1.3.6.1.2.1.1.3.0, value: 1605133643



do you have any idea why this false reboot notification was triggered ??
Back to top
sander815



Joined: 17 Aug 2004
Posts: 11

PostPosted: Tue Jul 08, 2008 4:33 am    Post subject: Reply with quote

i added uptime to my plugins, but i don't see any device in the uptime tab
what went wrong?
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2135
Location: United Kingdom

PostPosted: Tue Jul 08, 2008 4:38 am    Post subject: Reply with quote

sander815 wrote:
i added uptime to my plugins, but i don't see any device in the uptime tab
what went wrong?


Nothing. You need to go into the Devices and check the 'monitor uptime' box.

The Uptime tab shows the detected reboot events, so if nothing has rebooted yet, it will be empty.
Back to top
sander815



Joined: 17 Aug 2004
Posts: 11

PostPosted: Tue Jul 08, 2008 4:50 am    Post subject: Reply with quote

ok, i already checked them
so once rebooted they will show up?
Back to top
cristiv



Joined: 14 Aug 2008
Posts: 9
Location: Romania

PostPosted: Fri Aug 15, 2008 9:06 am    Post subject: thanks! Reply with quote

hey gilles,
I just wanted to say to you a big thanks for this plugin.
I installed it simply flawless in cacti 0.8.7b using the Plugin Management.
Everything went perfect and I had uptime running in a minute!
Many thanks again! and keep up with the good work.
Chris
Back to top
apperrault
Cacti User


Joined: 16 Feb 2007
Posts: 351
Location: Emeryville, CA

PostPosted: Mon Aug 18, 2008 3:24 pm    Post subject: Reply with quote

I think that there is some sort of problem with the Uptime plugin, and the discovery plugin. When I install the Uptime plugin, i lose the ability to set the options for the discovery plugin. when i disable Uptime, i can set all of the options for the Discovery plugin, but when the uptime plugin is enabled, i lose those fields on the settings/misc page. The uptime plugin i downloaded from this thread, and the discovery plugin i got from the SVN.

I figured i would let everyone know.

app
Back to top
jwilda



Joined: 22 Oct 2008
Posts: 7
Location: Tampa, FL

PostPosted: Thu Nov 13, 2008 2:40 pm    Post subject: is there any quick way to enable this on a bunch of devices? Reply with quote

Is there anyway to enable the uptime check to say 100 devices?
Back to top
apperrault
Cacti User


Joined: 16 Feb 2007
Posts: 351
Location: Emeryville, CA

PostPosted: Thu Nov 13, 2008 2:46 pm    Post subject: Reply with quote

I manually went into the MySQL DB and ran the following command. It worked like a charm.

Code:
 UPDATE `cacti`.`host` SET `uptime` = 'on'


and now all of my devices have the Check Uptime box checked.

app
Back to top
jwilda



Joined: 22 Oct 2008
Posts: 7
Location: Tampa, FL

PostPosted: Fri Nov 14, 2008 1:53 pm    Post subject: uptime colume on devices page isn't accurate Reply with quote

the uptime column on the devices page is not correct. Does anyone know why and how to fix it.
i.e.
device page uptime column shows:
Quote:
1d 2h 12m

system shows:
Quote:
13:55:55 up 67 days, 9:29

uptime graph shows:
Quote:
Days: 67 Hours: 9 Minutes: 23
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2135
Location: United Kingdom

PostPosted: Fri Nov 14, 2008 2:28 pm    Post subject: Reply with quote

The uptime column on the devices page is just how long since the device last missed a poll, I'm pretty sure - it's not related to the actual uptime (often - things miss a ping).
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 6 of 7

 



Powered by phpBB © 2001, 2005 phpBB Group