so i have some rrd's that are read in to my network weathermap and it works great. however, i would like to extend it such that if no data was collected in the last period my node would show up, in say, red.
the idea is that if many nodes on my weathermap goes red, then there's something seriously wrong... (simple i know!)
so i understand i can do something like
ICON images/nodestatus_{node:this:state}.png
but what state is 'no data'?
thanks,
colour node based on lack of data
Moderators: Developers, Moderators
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: colour node based on lack of data
The state thing only works with the cactihost: target, not with rrd targets. It's just the state retrieved from the cacti database for that host.yee379 wrote:so i have some rrd's that are read in to my network weathermap and it works great. however, i would like to extend it such that if no data was collected in the last period my node would show up, in say, red.
the idea is that if many nodes on my weathermap goes red, then there's something seriously wrong... (simple i know!)
so i understand i can do something like
ICON images/nodestatus_{node:this:state}.png
but what state is 'no data'?
thanks,
If you are looking at traffic rrds, then they are very rarely *exactly* zero, so you could have:
Code: Select all
SCALE 0 0 255 0 0
It depends on what you are measuring, but there's no general way to see if there was no data for a target. Maybe there should be...
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
On a similar note, for the SNMP data source, it would be useful to me if I could have a distinct "didn't return data" value, other than zero. The OID i'm monitoring will return 0 when the UPS has no power (and is on battery), but I'd like to have a different status icon for "no power" than for "not up". As is, I don't have a way to differentiate -- not up will return a 0 to weathermap, the same as no power.
- streaker69
- Cacti Pro User
- Posts: 712
- Joined: Mon Mar 27, 2006 10:35 am
- Location: Psychic Amish Network Administrator
That is a simple solution. Most of the UPS' have an OID for input voltage. Just graph your input voltage and when it reaches 0 or in my case, less than 100 then it would change color.DLNoah wrote:On a similar note, for the SNMP data source, it would be useful to me if I could have a distinct "didn't return data" value, other than zero. The OID i'm monitoring will return 0 when the UPS has no power (and is on battery), but I'd like to have a different status icon for "no power" than for "not up". As is, I don't have a way to differentiate -- not up will return a 0 to weathermap, the same as no power.
Some of them have an OID for an "on battery" state, but I found input voltage to be a better thing to graph because you can find if your UPS is being starved for electricity, like in a case where I was running them off of a generator and it wouldn't idle up enough to supply more than 98vac. We didn't have enough load on a 15kw generator to have it idle up.
[b]Cacti Version[/b] - 0.8.7d
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
[b]Plugin Architecture[/b] - 2.4
[b]Poller Type[/b] - Cactid v
[b]Server Info[/b] - Linux 2.6.18-128.1.6.el5
[b]Web Server[/b] - Apache/2.2.3 (CentOS)
[b]PHP[/b] - 5.2.9
[b]MySQL[/b] - 5.0.45-log
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.3.2.2
[b]Plugins[/b]PHP Network Managing v0.6.1, Global Plugin Settings v0.6,thold v0.4.1,XMLPort v0.3.5,CactiCam v0.1.5,NetTools v0.1.5,pollperf v0.32,RRD Cleaner v1.1,sqlqueries v0.2,superlinks v0.8,syslog v0.5.2,update v0.4,discovery v0.9,zond v0.34a,hostinfo v0.2,Bloom v0.6.5,mactrack v1.1,weathermap v0.96a,mobile v0.1
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
So really there are two things here:
one is setting some SET variable for 'no data' per link/node. That's simple enough. What should happen when you have two targets and only one of them fails, though? What about where 'in' works but 'out' doesn't? (if you are aggregating from two different interfaces at either end of a link)
The other is possibly some way to set the colour used for no data vs zero in a scale, or some other way. That also relies on the 'no data' signal coming all through the code to where things are drawn, but it's probably overdue.
one is setting some SET variable for 'no data' per link/node. That's simple enough. What should happen when you have two targets and only one of them fails, though? What about where 'in' works but 'out' doesn't? (if you are aggregating from two different interfaces at either end of a link)
The other is possibly some way to set the colour used for no data vs zero in a scale, or some other way. That also relies on the 'no data' signal coming all through the code to where things are drawn, but it's probably overdue.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Who is online
Users browsing this forum: No registered users and 0 guests