Time in State

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
mib19
Posts: 3
Joined: Thu Dec 22, 2022 12:58 pm

Time in State

Post by mib19 »

Hi, sorry for my english
i installed cacti 1.2.23, in debian 11.5
i have problem with time in state
when I go status from Up->Down->Up status
in state time continues from where it stopped before the down

example: Status Up, in state 5h:50m
step down for 10 minutes
I go back status to Up, in state it starts at 5h:51m
I want it to always start from 0 after a down
it's possible?
Thank you :-)
User avatar
macan
Cacti Guru User
Posts: 1106
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Time in State

Post by macan »

If I remember correctly - in state is joined with snmp uptime. Your cacti can be disconnected and devices is still up. Cacti is connected again and "in state! continue because snmp uptime keeps running
Let the Cacti grow!
mib19
Posts: 3
Joined: Thu Dec 22, 2022 12:58 pm

Re: Time in State

Post by mib19 »

Hi, I disabled snmp in cacti and in the device,
i restarted the device, in state continues from the interrupted time
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Time in State

Post by TheWitness »

Time in state is just what it means. The time since the device changed state. If it was down, and then came back up, it "should" show the time since it last went down. But this function has undergone some changes by new developers in recent years, and it may have preferred snmp uptime instead of the time since the device last changed states. One would have to review that function to see if it prefers snmp uptime to the last failed/restored time.
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?
mib19
Posts: 3
Joined: Thu Dec 22, 2022 12:58 pm

Re: Time in State

Post by mib19 »

Hi, I solved by installing from cactus and cactus spine 1.2.16 from debian 11 repository
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests