|
|
| Author |
Message |
glenp
Joined: 03 Dec 2006 Posts: 7
|
Posted: Mon Oct 06, 2008 3:19 am Post subject: no node labels causing problems when using cactiupdown |
|
|
Hi,
I have an interesting problem. I've created a campus map, and overlayed some icons which I want to "change colour".
The thing is, it's a large map so the icons need to be small (20x20px), and any label I put on the node its large than the icon itself so I chose not to use a label as it's a high-level overview (read: for management to peer at).
I've currently just placed them as a static icon with no label and that seems ok, however when I change the icon the the status:up:down icon, the map then even refuses to load into the editor, and cacti/phpweathermaps doesn't render the new map.
I've already got cactiupdown status working just fine on other weathermaps.
Should this work, or is there a workaround I could be using?
Glen. |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Mon Oct 06, 2008 4:08 am Post subject: |
|
|
That sounds weird. It should work.
Can you paste the config for a node?
I could believe the editor might throw away the icons, since they're 'non-existent files' as far as it's concerned... |
|
| Back to top |
|
 |
glenp
Joined: 03 Dec 2006 Posts: 7
|
Posted: Mon Oct 06, 2008 5:48 am Post subject: |
|
|
This static one works fine:
NODE node05113
ICON images/l3-grey-s.png
POSITION 279 318
This one causes the editor to display nothing:
NODE node05113
POSITION 279 318
ICON images/l3s_{node:this:state}.png
TARGET cactihost:4
USESCALE none in
When I submit the latter, the editor just comes back with a blank grey window.
Just checked again, and cacti does seem to be rendering the page correctly, so it's just an issue with the editor.
Glen. |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Mon Oct 06, 2008 6:45 am Post subject: |
|
|
So the next question is: what would you *expect* the editor to show, bearing in mind it's not psychic, and you haven't specified a real filename?
I agree that it shouldn't just die like that, but what should it do? Just show some small placeholder? something else? |
|
| Back to top |
|
 |
glenp
Joined: 03 Dec 2006 Posts: 7
|
Posted: Mon Oct 06, 2008 8:03 am Post subject: |
|
|
On my other maps it shows the node names, as I have the LABEL defined...
If there's no LABEL defined, perhaps it could show some generic icon or marker, sorta like a placeholder for want of a better term?
You mean it's not psychic? That could be a real plus for map design if it was.  |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Mon Oct 06, 2008 8:40 am Post subject: |
|
|
It's not so much the lack of label, but the lack of label AND icon.
So I'll see if I can get a little "(?)"-style icon for when the icon is not found. That should cover this OK.
Unfortunately this string token stuff makes a few things break like that - you'll often see [UNKNOWN] in the editor, because the data sources are not queried. |
|
| Back to top |
|
 |
glenp
Joined: 03 Dec 2006 Posts: 7
|
Posted: Mon Oct 06, 2008 7:36 pm Post subject: |
|
|
On a slightly different note, is there a way to get the weathermap page to refresh any more frequently than the default 300 secs?
It's a problem if you need to react more quickly than 5 mins which is about the time it takes someone to walk into your office, or the phone starting to ring hot.
As another user has written about in the forums, you don't even get the <meta http-equiv=refresh content='300'> line even installed unless you hit the graphs page and then flip back to the weathermap, so it looks like cacti isn't doing it's thing right. |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2167 Location: United Kingdom
|
Posted: Tue Oct 07, 2008 2:29 am Post subject: |
|
|
| glenp wrote: | On a slightly different note, is there a way to get the weathermap page to refresh any more frequently than the default 300 secs?
It's a problem if you need to react more quickly than 5 mins which is about the time it takes someone to walk into your office, or the phone starting to ring hot.
As another user has written about in the forums, you don't even get the <meta http-equiv=refresh content='300'> line even installed unless you hit the graphs page and then flip back to the weathermap, so it looks like cacti isn't doing it's thing right. |
I'd forgotten about the second part - I'll check into that and file the cacti bug, or figure out a workaround.
The first part - well, the data is only updated every 5 minutes, unless you run fast polling, so I don't know that you'll really benefit. The refresh time should be the same as for graphs (as you can tell), which should be the same as your poller cycle time I believe... it's in the Settings tab on the right when you're in Graph mode. |
|
| Back to top |
|
 |
|