How can I make the Cacti host status works?

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
edwardzeng
Posts: 6
Joined: Tue Aug 12, 2008 5:07 pm
Contact:

How can I make the Cacti host status works?

Post by edwardzeng »

I tried to make one of my host icon automatically change to different color
when the host goes down, like Whats Up does.
I follow this document link:

http://www.network-weathermap.com/artic ... ost-status

But it dosn't work.

Here is my icon code:

NODE test
LABEL test
INFOURL /cacti/graph.php?rra_id=all&local_graph_id=1433
OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=1433
ICON images/ball_{node:this:state}.png
TARGET cactihost:33
USESCALE none in
POSITION 250 50


I have created 4 version icons: ball_up.png, ball_down.png, ball_disabled.png, ball_recovering.png

but when I rebuild the map, the icon was missing???

Appreciated for your information.
User avatar
streaker69
Cacti Pro User
Posts: 712
Joined: Mon Mar 27, 2006 10:35 am
Location: Psychic Amish Network Administrator

Post by streaker69 »

This really belongs in the Weathermap section.

Did you put your images in the <cactiroot>/images directory or in the <cactiroot>/plugins/weathermap/images directory?

They belong inside the weathermap.
[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
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

(could you perhaps wait more than 15 minutes before e-mailing me directly too? :roll: )

Check the cacti.log

It will tell you if weathermap can't find the file, and what filename it is looking for. If the filename contains [unknown], then the cactihost plugin didn't set the state variable properly. If it doesn't then you know where you should have put your files.
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!)
edwardzeng
Posts: 6
Joined: Tue Aug 12, 2008 5:07 pm
Contact:

Post by edwardzeng »

Howie wrote:(could you perhaps wait more than 15 minutes before e-mailing me directly too? :roll: )

Check the cacti.log

It will tell you if weathermap can't find the file, and what filename it is looking for. If the filename contains [unknown], then the cactihost plugin didn't set the state variable properly. If it doesn't then you know where you should have put your files.
Sorry about that Howie :P

I found the problem.

I targeted the wrong ID. :P

Now it is working well.

Much appreciated for your message. :D

Have a nice weekend.

Best regards,

Ed
edwardzeng
Posts: 6
Joined: Tue Aug 12, 2008 5:07 pm
Contact:

Post by edwardzeng »

streaker69 wrote:This really belongs in the Weathermap section.

Did you put your images in the <cactiroot>/images directory or in the <cactiroot>/plugins/weathermap/images directory?

They belong inside the weathermap.
Thanks for your message.

I found the reason: I targeted the wrong device ID. :P

Thanks again.

Have a nice day. :)

Ed
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests