Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sat Apr 29, 2017 10:46 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 49 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
 Post subject: Re: host monitoring?
PostPosted: Sat Jun 28, 2014 7:02 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5091
Location: United Kingdom
OK - so which of traffic_in and traffic_out are you going to use to decide if an interface is up or down, and why? Are you just going to say if there there is 0 traffic, the interface must be down?

_________________
Weathermap 0.98 is out! & QuickTree 0.2. Superlinks is over there now.
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!)


Top
 Profile  
 
 Post subject: Re: host monitoring?
PostPosted: Wed Jan 25, 2017 4:18 am 
Offline

Joined: Wed Oct 26, 2016 3:30 am
Posts: 12
Good Day,

I know I'm late, but i have a problem with host status.
SW1 is up and SW2 is down so the icon is correct, but why the LABEL is both up?
Below is my config

NODE node09115
LABEL SW1
LABELOFFSET N
ICON images/layer2switch_{node:this:state}.png
TARGET cactihost:14
POSITION node07617 43r250

NODE node04205
LABEL SW2
LABELOFFSET N
TARGET cactihost:70
ICON images/layer2switch_{node:this:state}.png
POSITION 936 110

I want to know the status of host based on ICON not LABEL.
Thanks,


Attachments:
host status.png
host status.png [ 3.91 KiB | Viewed 218 times ]
Top
 Profile  
 
 Post subject: Re: host monitoring?
PostPosted: Wed Jan 25, 2017 5:18 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5091
Location: United Kingdom
The label doesn't say up, it's just green, based on the SCALE that is defined. All weathermap does is translate numbers into colours! It doesn't know what is up or down :-)

So, from the manual, you know that 1==down and 3==up for Cacti host status. There is also an example scale to use, there:

Code:
SCALE cactiupdown 0 0.5 192 192 192
SCALE cactiupdown 0.5 1.5 255 0 0
SCALE cactiupdown 1.5 2.5 0 0 255
SCALE cactiupdown 2.5 3.5 0 255 0
SCALE cactiupdown 4.5 5.5 128 128 128


and then you just need to add
Code:
USESCALE cactiupdown in

to your nodes.

_________________
Weathermap 0.98 is out! & QuickTree 0.2. Superlinks is over there now.
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!)


Top
 Profile  
 
 Post subject: Re: host monitoring?
PostPosted: Wed Jan 25, 2017 7:29 pm 
Offline

Joined: Wed Oct 26, 2016 3:30 am
Posts: 12
Thanks Howie, maybe I'll stick with the label being green :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 49 posts ]  Go to page Previous  1, 2, 3, 4

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group