Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow system uptime to be a variable for use with graphs #1551

Closed
camerabob opened this issue Apr 18, 2018 · 9 comments
Closed

Allow system uptime to be a variable for use with graphs #1551

camerabob opened this issue Apr 18, 2018 · 9 comments
Labels
enhancement General tag for an enhancement resolved A fixed issue
Milestone

Comments

@camerabob
Copy link

Using any template, it would be a benefit to see the system uptime along with total data passed to/from an interface (such as Traffic - bits in/out). This would make sense when troubleshooting knowing if the value you see is in line with the length of time the device has been up. Not having to go back to reference the device management page would definitely be a bonus.

Thanks for your time

Bob

@cigamit cigamit added the enhancement General tag for an enhancement label Apr 19, 2018
@cigamit
Copy link
Member

cigamit commented Apr 19, 2018

Yea, I've thought about this many times. It's actually a boring graph except when you are trying to do event correlation or count the number times a node has rebooted during a finite period of time. Won't work with the daily RRA level, but does provide some good information more in the near term.

@netniV
Copy link
Member

netniV commented Apr 19, 2018

Would it not be as simple as taking it from the hosts 'snmp_uptime_instance' field?

@cigamit
Copy link
Member

cigamit commented Apr 19, 2018

Yup. Easy script server graph. That is the agent uptime, but close enough.

@netniV
Copy link
Member

netniV commented Apr 19, 2018

True, if the snmp daemon is restarted, it normally resets the uptime.

@netniV netniV changed the title Request add uptime to graphs Enhancement: Allow uptime to be a variable for use with graphs Oct 11, 2018
@netniV netniV added this to the Cacti 1.3 milestone Dec 27, 2018
@xmacan
Copy link
Member

xmacan commented Feb 4, 2020

I didn't find this issue before and I wrote small plugin for it
https://github.com/xmacan/plugin_uptime

@TheWitness
Copy link
Member

Maybe we change spine/cmd.php to prefer the system uptime over the agent uptime. Could add a lot of polling time though if the system uptime is not available.

@TheWitness TheWitness added the resolved A fixed issue label Mar 22, 2020
@TheWitness TheWitness modified the milestones: v1.3.0, 1.2.11 Mar 22, 2020
@TheWitness
Copy link
Member

This is fixed now. New variable is |host_uptime|.

TheWitness added a commit that referenced this issue Mar 22, 2020
Allow uptime to be a variable for use with graphs using |host_uptime|
@camerabob
Copy link
Author

camerabob commented Mar 22, 2020 via email

@TheWitness
Copy link
Member

Thanks for staying active on the forums @camerabob.

@netniV netniV changed the title Enhancement: Allow uptime to be a variable for use with graphs Allow system uptime to be a variable for use with graphs Apr 5, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jul 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement General tag for an enhancement resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

5 participants