Uptime plugin (reboot monitor)
Moderators: Developers, Moderators
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
AdrianMarsh - you need the modified host.php file that is included with the uptime plugin. However, this was a hack that was designed for PA 0.9, and doesn't work with the latest PA of 1.1.
If you are using the Manage plugin, the uptime is shown in the devices menu here.
If you are using the Manage plugin, the uptime is shown in the devices menu here.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I will be placing "sysUptime" in the 0.8.6k version of Cacti's host table. So, maybe that is a good thing?
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
-
- Cacti User
- Posts: 379
- Joined: Fri Feb 16, 2007 11:37 am
- Location: Emeryville, CA
- Contact:
I don't know what is up with my system, but from some reason i cannot get this to run after the poller runs. My Windows scheduled task is as follows:
and it doesn't run. Everything else is working just fine. I mean my Discovery is running every 6 hours, just like it is supposed to. The only thing that is not working is the Uptime plugin.
Does anyone have any thoughts, or should I just disable the Uptime plugin and wait for the new version later in July?
thoughts, suggestions?
app
Code: Select all
e:\php\bin\php.exe e:\cacti\poller.php
Does anyone have any thoughts, or should I just disable the Uptime plugin and wait for the new version later in July?
thoughts, suggestions?
app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
Anyone else seen false positives/alerts from this plugin?
Heres one, recieved email at 4am today (along with a bunch of other "host" reboot failures):
Checking into the others, one looks right but the others dont..
Host : ubiphone (Ubiphone (asterisk)), old uptime was :
60478900 (7d), new is : 29528 (0d)
But a walk of that machine shows:
C:\Program Files\Microsoft Visual Studio 8\VC>snmpwalk -c public -v1 192.168.50.6
SNMPv2-MIB::sysDescr.0 = STRING: Linux ubiphone 2.6.9-55.0.2.EL #1 Tue Jun 26 14:08:18 EDT 2007 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (2961358) 8:13:33.58
Heres one, recieved email at 4am today (along with a bunch of other "host" reboot failures):
Checking into the others, one looks right but the others dont..
Host : ubiphone (Ubiphone (asterisk)), old uptime was :
60478900 (7d), new is : 29528 (0d)
But a walk of that machine shows:
C:\Program Files\Microsoft Visual Studio 8\VC>snmpwalk -c public -v1 192.168.50.6
SNMPv2-MIB::sysDescr.0 = STRING: Linux ubiphone 2.6.9-55.0.2.EL #1 Tue Jun 26 14:08:18 EDT 2007 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (2961358) 8:13:33.58
questing about uptime
Host : 10.*.*.* (*******), old uptime was : 665243 (0.1d), new is :
1433 (0d)
what is the meaning of 665243(0.1d) and 1433(0d)..?
sorry >? please help me ....
1433 (0d)
what is the meaning of 665243(0.1d) and 1433(0d)..?
sorry >? please help me ....
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
My thoughts: These will be the previous uptime counter before the reboot VS the current uptime counter. When the current drops below the previous, then thats what triggers the "rebooted" scenario.
However, on my system, I regularly get false positives (weekly). I'm guessing that the 32bit counter rolls over, and that the Uptime plug in can't take this into account.
However, on my system, I regularly get false positives (weekly). I'm guessing that the 32bit counter rolls over, and that the Uptime plug in can't take this into account.
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
You should time it. I cam up with the following:
Assuming a signed integer, which it likely isn't:
248 Days till rollover.
As an unsigned integer:
497 Days till rollover. So, maybe the counter's hosed on the agent(s) in question.
Larry
Assuming a signed integer, which it likely isn't:
248 Days till rollover.
As an unsigned integer:
497 Days till rollover. So, maybe the counter's hosed on the agent(s) in question.
Larry
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
Hmm... on mine its more like once a week, and its usually on several hosts at a time. Heres todays:
Host : 127.0.0.1 (ubiq-serv6 Cacti), old uptime was : 60478034 (7d), new is : 27805 (0d)
Host : ubiphone (Ubiphone (asterisk)), old uptime was :
60476756 (7d), new is : 27340 (0d)
Host : ubiq-serv3 (ubiq-serv3 SVN), old uptime was :
60474301 (7d), new is : 24564 (0d)
Al timed at 4:07am, and obviously 7d..
Host : 127.0.0.1 (ubiq-serv6 Cacti), old uptime was : 60478034 (7d), new is : 27805 (0d)
Host : ubiphone (Ubiphone (asterisk)), old uptime was :
60476756 (7d), new is : 27340 (0d)
Host : ubiq-serv3 (ubiq-serv3 SVN), old uptime was :
60474301 (7d), new is : 24564 (0d)
Al timed at 4:07am, and obviously 7d..
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Looks like a 26bit counter. What's up with that? Or maybe they are internally incrementing timetics in micro seconds and shifting the bits.
TheWitness
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
I am sure the author's only response would be to contact the vendor and have them correct their agent. There is no way to fix this IMHO. There may be ways to reduce the likelihood of false positives, but to prevent it 100%. No way.
Here is an example of "predictable" behavior enforcement. If you know in advance what the 'wrap around' value is for a particular sysObjectID (aka Device Type), you could store that. And then if you measure a timetic that is within 1 poller interval of the wrap around value, set a flag to ignore the uptime going backward's if it occurs on the next poll. Then, on the next poll, reset the flag regardless.
However this is not foolproof as some vendors while maintaining the same sysObjectID will "fix" their agents between firmware/software rev.s, again making this pretty hard to lock down.
Larry
Here is an example of "predictable" behavior enforcement. If you know in advance what the 'wrap around' value is for a particular sysObjectID (aka Device Type), you could store that. And then if you measure a timetic that is within 1 poller interval of the wrap around value, set a flag to ignore the uptime going backward's if it occurs on the next poll. Then, on the next poll, reset the flag regardless.
However this is not foolproof as some vendors while maintaining the same sysObjectID will "fix" their agents between firmware/software rev.s, again making this pretty hard to lock down.
Larry
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
- adrianmarsh
- Cacti User
- Posts: 437
- Joined: Wed Aug 17, 2005 8:51 am
- Location: UK
Who is online
Users browsing this forum: No registered users and 6 guests