|
|
| Author |
Message |
Guest
|
Posted: Tue Jan 04, 2005 3:27 pm Post subject: Graph template for SNMPv2-MIB - sysUpTime |
|
|
Hi
I created and exported a template to show uptime graphs.
Be warned that this template includes the dependencies, so be careful not to overwrite your existing implementation with this template (backup your Cacti first).
The data template uses the "SNMPv2-MIB::sysUpTime.0" / ".1.3.6.1.2.1.1.3.0" OID.
There is also a "HOST-RESOURCES-MIB::hrSystemUptime.0" / ".1.3.6.1.2.1.25.1.1.0" OID which could do the same thing, should the other OID not be available to you. Simply modify the data template accordingly.
Unfortunately, these graphs will not show uptime of a host as a percentage, which is a bit more complicated.
Have fun!
| Description: |
|
 Download |
| Filename: |
cacti_graph_template_snmpv2mib_sysuptime.xml |
| Filesize: |
9.59 KB |
| Downloaded: |
1073 Time(s) |
|
|
| Back to top |
|
 |
Guest
|
Posted: Fri Jan 07, 2005 1:47 am Post subject: |
|
|
Okay, SNMPv2-MIB::sysUpTime is only for the SNMP daemon uptime, which isn't the host uptime. Instead, use HOST-RESOURCES-MIB::hrSystemUptime as you had mentioned.
Here are comments from the MIBs;
SNMPv2-MIB
sysUpTime OBJECT-TYPE
SYNTAX TimeTicks
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The time (in hundredths of a second) since the
network management portion of the system was last
re-initialized."
::= { system 3 }
--
HOST-RESOURCES-MIB
hrSystemUptime OBJECT-TYPE
SYNTAX TimeTicks
MAX-ACCESS read-only
STATUS current
DESCRIPTION
"The amount of time since this host was last
initialized. Note that this is different from
sysUpTime in the SNMPv2-MIB [RFC1907] because
sysUpTime is the uptime of the network management
portion of the system."
::= { hrSystem 1 }
Attached is an updated host template with the dependencies.
| Description: |
|
 Download |
| Filename: |
cacti_graph_template_host_mib_hrsystemuptime.xml |
| Filesize: |
9.61 KB |
| Downloaded: |
1068 Time(s) |
|
|
| Back to top |
|
 |
websat Cacti User
Joined: 22 Jun 2005 Posts: 58
|
Posted: Mon Aug 29, 2005 3:28 am Post subject: |
|
|
Hi
I use your template, but i have a problem, the graph show 16 days and the server had only 1 day and 15 hours of update....
| Description: |
|
| Filesize: |
17.39 KB |
| Viewed: |
13667 Time(s) |

|
|
|
| Back to top |
|
 |
Mikf
Joined: 13 Aug 2004 Posts: 36 Location: Paris, France
|
Posted: Tue Aug 30, 2005 9:07 am Post subject: |
|
|
Hello
Here my template, i use CDEF to display true values of days, hours, minutes ...
| Description: |
|
| Filesize: |
11.43 KB |
| Viewed: |
13592 Time(s) |

|
| Description: |
| Generic Uptime Template with dependencies (updated) |
|
 Download |
| Filename: |
cacti_graph_template_generic_uptime.xml |
| Filesize: |
15.08 KB |
| Downloaded: |
1170 Time(s) |
Last edited by Mikf on Tue Aug 30, 2005 11:07 am; edited 1 time in total |
|
| Back to top |
|
 |
sumsum Cacti User
Joined: 26 Apr 2004 Posts: 57 Location: Switzerland
|
|
| Back to top |
|
 |
sumsum Cacti User
Joined: 26 Apr 2004 Posts: 57 Location: Switzerland
|
Posted: Tue Aug 30, 2005 11:00 am Post subject: |
|
|
@ Mikf
the following error appear if i try to import your template. i use the lates cacti version. any idea ?
Notice: Undefined index: cf_items in /home/zumbi/public_html/cacti-stats/lib/import.php on line 532
Notice: Undefined index: cf_items in /home/zumbi/public_html/cacti-stats/lib/import.php on line 532
Notice: Undefined index: cf_items in /home/zumbi/public_html/cacti-stats/lib/import.php on line 532
Notice: Undefined index: cf_items in /home/zumbi/public_html/cacti-stats/lib/import.php on line 532
Warning: Cannot modify header information - headers already sent by (output started at /home/zumbi/public_html/cacti-stats/lib/import.php:532) in /home/zumbi/public_html/cacti-stats/templates_import.php on line 67
|
|
| Back to top |
|
 |
Mikf
Joined: 13 Aug 2004 Posts: 36 Location: Paris, France
|
Posted: Tue Aug 30, 2005 11:08 am Post subject: |
|
|
ok
i have updated the template file
|
|
| Back to top |
|
 |
arto
Joined: 07 Sep 2005 Posts: 5
|
Posted: Wed Sep 07, 2005 1:47 am Post subject: |
|
|
| Mikf wrote: | ok
i have updated the template file |
It works great with Fedora Core 2, but with Fedora Core 3 (several servers) all started with 1 day 10 hours, allthough their update were between 54 and 112 days.
|
|
| Back to top |
|
 |
Mikf
Joined: 13 Aug 2004 Posts: 36 Location: Paris, France
|
Posted: Wed Sep 07, 2005 3:40 am Post subject: |
|
|
| arto wrote: |
It works great with Fedora Core 2, but with Fedora Core 3 (several servers) all started with 1 day 10 hours, allthough their update were between 54 and 112 days. |
What are the values returned for the OID .1.3.6.1.2.1.1.3.0 by each server?
|
|
| Back to top |
|
 |
arto
Joined: 07 Sep 2005 Posts: 5
|
Posted: Wed Sep 07, 2005 5:04 am Post subject: |
|
|
| Mikf wrote: | | arto wrote: |
It works great with Fedora Core 2, but with Fedora Core 3 (several servers) all started with 1 day 10 hours, allthough their update were between 54 and 112 days. |
What are the values returned for the OID .1.3.6.1.2.1.1.3.0 by each server? |
Problematic ones:
(FC3)
.1.3.6.1.2.1.1.3.0 = Timeticks: (29079051) 3 days, 8:46:30.51
(uptime) 12:55:28 up 67 days, 20:07, 3 users, load average: 0.54, 0.45, 0.44
.1.3.6.1.2.1.1.3.0 = Timeticks: (29093493) 3 days, 8:48:54.93
(uptime) 12:56:01 up 54 days, 18:40, 2 users, load average: 0.82, 0.51, 0.49
.1.3.6.1.2.1.1.3.0 = Timeticks: (29063698) 3 days, 8:43:56.98
(uptime) 12:56:25 up 57 days, 6:20, 6 users, load average: 1.75, 1.22, 1.01
.1.3.6.1.2.1.1.3.0 = Timeticks: (29098105) 3 days, 8:49:41.05
(uptime) 12:56:45 up 113 days, 1:18, 2 users, load average: 0.34, 0.26, 0.20
(FC4)
.1.3.6.1.2.1.1.3.0 = Timeticks: (29107142) 3 days, 8:51:11.42
(uptime) 13:00:15 up 22 days, 4:04, 21 users, load average: 0.31, 0.26, 0.22
.1.3.6.1.2.1.1.3.0 = Timeticks: (29131106) 3 days, 8:55:11.06
(uptime) 12:57:44 up 22 days, 18:37, 1 user, load average: 0.00, 0.00, 0.00
Others, which are ok:
(FC2)
.1.3.6.1.2.1.1.3.0 = Timeticks: (295155528) 34 days, 3:52:35.28
(uptime) 13:00:43 up 34 days, 3:53, 5 users, load average: 0.07, 0.03, 0.04
(Debian Sarge)
.1.3.6.1.2.1.1.3.0 = Timeticks: (829841426) 96 days, 1:06:54.26
(uptime) 12:57:58 up 96 days, 1:51, 3 users, load average: 0.01, 0.04, 0.01
arto
|
|
| Back to top |
|
 |
Mikf
Joined: 13 Aug 2004 Posts: 36 Location: Paris, France
|
Posted: Wed Sep 07, 2005 7:15 am Post subject: |
|
|
| the uptime returned by net-snmp is the uptime of the daemon, not the uptime of the server
|
|
| Back to top |
|
 |
arto
Joined: 07 Sep 2005 Posts: 5
|
Posted: Wed Sep 07, 2005 7:45 am Post subject: |
|
|
| Mikf wrote: | | the uptime returned by net-snmp is the uptime of the daemon, not the uptime of the server |
How should that be fixed?
arto
|
|
| Back to top |
|
 |
Mikf
Joined: 13 Aug 2004 Posts: 36 Location: Paris, France
|
Posted: Wed Sep 07, 2005 8:51 am Post subject: |
|
|
try with HOST-RESOURCES-MIB::hrSystemUptime.0
OID : .1.3.6.1.2.1.25.1.1.0
|
|
| Back to top |
|
 |
arto
Joined: 07 Sep 2005 Posts: 5
|
Posted: Wed Sep 07, 2005 9:21 am Post subject: |
|
|
| Mikf wrote: | try with HOST-RESOURCES-MIB::hrSystemUptime.0
OID : .1.3.6.1.2.1.25.1.1.0 |
It is ok now. Thank you.
|
|
| Back to top |
|
 |
tman Cacti User
Joined: 14 Oct 2004 Posts: 89
|
Posted: Thu Jan 26, 2006 10:25 am Post subject: |
|
|
We're using a recently compiled version of net-snmp 5.3.1 on RHEL 4 (Centos).
Anybody care to explain why hrsystemuptime doesn't respond on these hosts. Surely it's not something you'd have to compile support into net-snmp for! Sounds like it should be something always available.
Even our Windows servers respond to .1.3.6.1.2.1.1.3.0.
|
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|