Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


How can I make the Cacti host status works?

 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
edwardzeng



Joined: 12 Aug 2008
Posts: 6

PostPosted: Sat Aug 23, 2008 7:30 am    Post subject: How can I make the Cacti host status works? Reply with quote

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/articles/cacti-host-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.
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 633
Location: Psychic Amish Network Administrator

PostPosted: Sat Aug 23, 2008 9:05 am    Post subject: Reply with quote

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.
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 1989
Location: United Kingdom

PostPosted: Sat Aug 23, 2008 9:59 am    Post subject: Reply with quote

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

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.
Back to top
edwardzeng



Joined: 12 Aug 2008
Posts: 6

PostPosted: Sat Aug 23, 2008 4:47 pm    Post subject: Reply with quote

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

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

I found the problem.

I targeted the wrong ID.

Now it is working well.

Much appreciated for your message.

Have a nice weekend.

Best regards,

Ed
Back to top
edwardzeng



Joined: 12 Aug 2008
Posts: 6

PostPosted: Sat Aug 23, 2008 4:49 pm    Post subject: Reply with quote

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.

Thanks again.

Have a nice day.

Ed
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group