I've had a look around but I don't see an answer to a problem I'm facing with trying to get int - status capturing data and graphing. The end goal being to get a thold alert should an interface status change from up to down or vice versa.
Now, I've downloaded and imported the Interface status data template and graph template successfully. I can create graphs without issue ( seemingly ) using Interface operational status and the data query source does show as successful which implies that the graph can get the data it needs. However the graphs all seem to show the current status as 0.00 rather than expected 1=up 2=down and there is never any change.
I'm relatively new to Cacti so I'm a bit unsure as to what further information you helpful and learned people may need so if you are interested in throwing me a rope on this please ask for info / output and I shall provide.
* Update to this, I've currently got a single graph which show current status as " 2.44 T " so I'm completely lost.
Thank you kindly,
Interface Operational status Interface - Status
Moderators: Developers, Moderators
-
- Posts: 1
- Joined: Wed Aug 24, 2016 8:25 am
Re: Interface Operational status Interface - Status
Hello,
i have a similar problem with my graph for operation status interface.
On query all are good. And I would like to use the status ( Up/Down).
But when i create the graph with the "Interface Operational status Interface" the current status don't show the valu 1 or 2 for the state of the interface but put like a trafic value
I would like to use the rdd interface status for weathermap like :
[/i]
to have a realtime visual from interface on the office :
But with the value wrong i can't do it.
If someone have an idea i must have done something wrong.
thanks
i have a similar problem with my graph for operation status interface.
On query all are good. And I would like to use the status ( Up/Down).
But when i create the graph with the "Interface Operational status Interface" the current status don't show the valu 1 or 2 for the state of the interface but put like a trafic value
I would like to use the rdd interface status for weathermap like :
Code: Select all
SCALE ifstatus 0 1.5 255 0 0 2
SCALE ifstatus 1.5 2.5 0 255 1
NODE 0E13
#INFOURL
#OVERLIBGRAPH images/plans/IP-or-Unplug.png
#OVERLIBCAPTION
#NOTES
ICON images/PortBP_{node:this:inscaletag}.png
TARGET gauge:/var/lib/cacti/rra/bp-sw-niv0_int_status_4569.rrd:int_status:-
USESCALE ifstatus in percent
POSITION BP-A-ETC0 69 174
to have a realtime visual from interface on the office :
But with the value wrong i can't do it.
If someone have an idea i must have done something wrong.
thanks
-
- Cacti User
- Posts: 117
- Joined: Fri Aug 22, 2014 2:11 pm
Re: Interface Operational status Interface - Status
I have the same issue as you guys.. It's not graphing/reading properly...
Did you guys manage to figure out a solution?
Thanks.
Did you guys manage to figure out a solution?
Thanks.
Re: Interface Operational status Interface - Status
Which version ?
Did you change the lib/snmp.php ?
define("REGEXP_SNMP_TRIM", "/(hex|counter(32|64)|gauge|gauge(32|64)|float|ipaddress|string|integer):|(up|down)\(|\)$/i");
and the interface.xml ?
<ifOperStatus>
<name>Status</name>
<method>walk</method>
<source>VALUE/REGEXP:[a-zA-Z]{1,}\(([1-]{1})+\)$</source>
<direction>output</direction>
<oid>.1.3.6.1.2.1.2.2.1.8</oid>
</ifOperStatus>
Even if a lot of people use it, nothing has ben made into cacti 1.x to support this basic feature
Did you change the lib/snmp.php ?
define("REGEXP_SNMP_TRIM", "/(hex|counter(32|64)|gauge|gauge(32|64)|float|ipaddress|string|integer):|(up|down)\(|\)$/i");
and the interface.xml ?
<ifOperStatus>
<name>Status</name>
<method>walk</method>
<source>VALUE/REGEXP:[a-zA-Z]{1,}\(([1-]{1})+\)$</source>
<direction>output</direction>
<oid>.1.3.6.1.2.1.2.2.1.8</oid>
</ifOperStatus>
Even if a lot of people use it, nothing has ben made into cacti 1.x to support this basic feature
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
-
- Cacti User
- Posts: 117
- Joined: Fri Aug 22, 2014 2:11 pm
Re: Interface Operational status Interface - Status
So I did exactly what you said...
Updated with the following... Re-imported the interface operational status template. I'm now able to see "ifOperStatus (status) as the data query.. YAY! Re build poller cache... Waited... Waited... Waited.. and after many polls, I still see them all weird... It's like it's trying to read them as throughput...
I'm lost... not sure what else to do to fix this... Any other suggestions?
Updated with the following... Re-imported the interface operational status template. I'm now able to see "ifOperStatus (status) as the data query.. YAY! Re build poller cache... Waited... Waited... Waited.. and after many polls, I still see them all weird... It's like it's trying to read them as throughput...
I'm lost... not sure what else to do to fix this... Any other suggestions?
- Attachments
-
- Screenshot_7.png (6.71 KiB) Viewed 2432 times
-
- Screenshot_6.png (19.59 KiB) Viewed 2432 times
-
- Screenshot_5.png (32.8 KiB) Viewed 2432 times
-
- Screenshot_4.png (22.77 KiB) Viewed 2432 times
-
- Cacti User
- Posts: 117
- Joined: Fri Aug 22, 2014 2:11 pm
Re: Interface Operational status Interface - Status
Here is a screen shot of a debug you were requesting for...
- Attachments
-
- Screenshot_9.png (27.58 KiB) Viewed 2432 times
-
- Cacti User
- Posts: 117
- Joined: Fri Aug 22, 2014 2:11 pm
Re: Interface Operational status Interface - Status
Thank you so much Rno! I got it to work!
I made the changes that you suggested, but it wasn't working still.. I re-imported the template and then noticed the data source ifOperStatus (status) now selected and available in the drop down.. I then rebuilt the poller cache.. Still no luck..
I had to restart the server and then it started to graph properly again...
Thank you so much for your help Sir!! You've been a great help!
I made the changes that you suggested, but it wasn't working still.. I re-imported the template and then noticed the data source ifOperStatus (status) now selected and available in the drop down.. I then rebuilt the poller cache.. Still no luck..
I had to restart the server and then it started to graph properly again...
Thank you so much for your help Sir!! You've been a great help!
Who is online
Users browsing this forum: No registered users and 1 guest