Threshold plugin-Threshold for interfaces rate
Moderators: Developers, Moderators
Threshold plugin-Threshold for interfaces rate
Hello,
we setup Threshold plugin and it's working perfectly with system resource (cpu-mem ..etc).
we need to monitor our major interfaces and set rate threshold.
i don't find any scale that fit the interface rating.(High/low)/(Baseline) or (Time Base).
scaling usually 0-100 for system resource, while speed rate are different.
for example how to set threshold trigger if interface reach 200Mbps,
can you help me with any tip to achieve this.
thanks alot.
linux83
we setup Threshold plugin and it's working perfectly with system resource (cpu-mem ..etc).
we need to monitor our major interfaces and set rate threshold.
i don't find any scale that fit the interface rating.(High/low)/(Baseline) or (Time Base).
scaling usually 0-100 for system resource, while speed rate are different.
for example how to set threshold trigger if interface reach 200Mbps,
can you help me with any tip to achieve this.
thanks alot.
linux83
Cisco Networking
*LeArN To KnOw*
*LeArN To KnOw*
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Threshold plugin-Threshold for interfaces rate
Use the SVN version (not quite ready to release) and use the RPN Expression. The performance issues were addressed and you can do a percentage Threshold quite easily using either ifSpeed or ifHighSpeed as baselines.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: Threshold plugin-Threshold for interfaces rate
Hello TheWitness,
in this case,should i to re-install the full application using SVN version:
http://svn.cacti.net/viewvc/
i try to follow this post :
http://forums.cacti.net/viewtopic.php?f=17&t=29050
i understand where to configure threshold template as well CDEF functionality, but
i don't know where to modify the scripts:
<ifSpeed>
<name>Interface Speed</name>
<direction>input</direction>
<query_name>ifspeed</query_name>
</ifSpeed>
also i used this formulla as CDEF template and apply it to threshold:
cdef=CURRENT_DATA_SOURCE,8,*,|query_IfSpeed|,/,100,*
there is no graph that show the percentage of the interface calculation but i can see threshold counter
have some counts:
Actions Name ID Type Trigger Duration BL High/Low High Low Current Enabled*
Switch - Traffic - Gi0/2 [traffic_in] 2 High/Low 5 Minutes N/A N/A 2 - 0.0204 Enabled
is this the right way to do it.
thanks for your help.
linux83
in this case,should i to re-install the full application using SVN version:
http://svn.cacti.net/viewvc/
i try to follow this post :
http://forums.cacti.net/viewtopic.php?f=17&t=29050
i understand where to configure threshold template as well CDEF functionality, but
i don't know where to modify the scripts:
<ifSpeed>
<name>Interface Speed</name>
<direction>input</direction>
<query_name>ifspeed</query_name>
</ifSpeed>
also i used this formulla as CDEF template and apply it to threshold:
cdef=CURRENT_DATA_SOURCE,8,*,|query_IfSpeed|,/,100,*
there is no graph that show the percentage of the interface calculation but i can see threshold counter
have some counts:
Actions Name ID Type Trigger Duration BL High/Low High Low Current Enabled*
Switch - Traffic - Gi0/2 [traffic_in] 2 High/Low 5 Minutes N/A N/A 2 - 0.0204 Enabled
is this the right way to do it.
thanks for your help.
linux83
Cisco Networking
*LeArN To KnOw*
*LeArN To KnOw*
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Threshold plugin-Threshold for interfaces rate
I would use the RPN Expression:
For percentage and then perform either a Hi/Low or Time Based at some percentage value.
Code: Select all
|ds:traffic_in|,|query_ifSpeed|,8,/,/,100,*
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Threshold plugin-Threshold for interfaces rate
You don't need a full re-install unless you are getting errors. Then, you simply need to change the version information in the settings table:
Update the value to 0.4.4 and then goto the Thold tab again to re-run the upgrade.
Code: Select all
select * from settings where name='plugin_thold_version';
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: Threshold plugin-Threshold for interfaces rate
Hi,
i use RPN Expression directly under Thresholds configuration with line you provided
it's working fine if i check Thresholds monitor tab, however there is no graph of the percentage showing.
it's ok for me i need the percentage for threshold only but it's normal or i should get the graph.
other thing , it take some time to update the reading status on Threshold tab, how can i reduce
refresh time for this reading?
thanks alot, Perfect application.
linux83
i use RPN Expression directly under Thresholds configuration with line you provided
it's working fine if i check Thresholds monitor tab, however there is no graph of the percentage showing.
it's ok for me i need the percentage for threshold only but it's normal or i should get the graph.
other thing , it take some time to update the reading status on Threshold tab, how can i reduce
refresh time for this reading?
thanks alot, Perfect application.
linux83
Cisco Networking
*LeArN To KnOw*
*LeArN To KnOw*
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Threshold plugin-Threshold for interfaces rate
You should provide me output of the 'show processlist' command while the thold interface is updating so we can better understand the delay.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: Threshold plugin-Threshold for interfaces rate
Hi TheWitness,
i try this command it's not working (sudo and without) with ubuntu 10.04.
cacti@cacti:~$ sudo show processlist
sudo: show: command not found
it prompt me to install nmh but still this command not executable.
is there any where from cacti i can got the needed log.
i cacluclate it, it take around 5 min's to update the time status.
linux83.
i try this command it's not working (sudo and without) with ubuntu 10.04.
cacti@cacti:~$ sudo show processlist
sudo: show: command not found
it prompt me to install nmh but still this command not executable.
is there any where from cacti i can got the needed log.
i cacluclate it, it take around 5 min's to update the time status.
linux83.
Cisco Networking
*LeArN To KnOw*
*LeArN To KnOw*
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Threshold plugin-Threshold for interfaces rate
Code: Select all
mysql -e "show processlist" | grep -v NULL | grep -v Sleep
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: Threshold plugin-Threshold for interfaces rate
update:
1-
i found graph updating every 5 min which is the same time set to trigger the alert to email.
Even if graph not updating on time i received email on correct time if threshold is reach within
set time.
i think it's working perfectly for thershold if interfaces BW is 100/Mbps.
moniting sql is showing nothing:
cacti@cacti:~$ mysql -u root -p password -e "show processlist" | grep -v NULL | grep -v Sleep
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
cacti@cacti:~$ mysql -u root -p password -e "show processlist" | grep -v NULL | grep -v Sleep
Enter password:
Id User Host db Command Time State Info
cacti@cacti:~$ mysql -u root -p password -e "show processlist" | grep -v NULL | grep -v Sleep
Enter password:
Id User Host db Command Time State Info
cacti@cacti:~$ mysql -u root -p password -e "show processlist" | grep -v NULL | grep -v Sleep
Enter password:
Id User Host db Command Time State Info
cacti@cacti:~$
cacti@cacti:~$ mysql -u root -p password -e "show processlist" | grep -v Sleep
Enter password:
Id User Host db Command Time State Info
2981 root localhost cacti Query 0 NULL show processlist
2- Percentage script is not reporting correct value if interfaces is Gig, it report
value of %97 while intefaces consumed with 140Mbps
could you please help to fix Gig interfaces threshold.
linux83.
1-
i found graph updating every 5 min which is the same time set to trigger the alert to email.
Even if graph not updating on time i received email on correct time if threshold is reach within
set time.
i think it's working perfectly for thershold if interfaces BW is 100/Mbps.
moniting sql is showing nothing:
cacti@cacti:~$ mysql -u root -p password -e "show processlist" | grep -v NULL | grep -v Sleep
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
cacti@cacti:~$ mysql -u root -p password -e "show processlist" | grep -v NULL | grep -v Sleep
Enter password:
Id User Host db Command Time State Info
cacti@cacti:~$ mysql -u root -p password -e "show processlist" | grep -v NULL | grep -v Sleep
Enter password:
Id User Host db Command Time State Info
cacti@cacti:~$ mysql -u root -p password -e "show processlist" | grep -v NULL | grep -v Sleep
Enter password:
Id User Host db Command Time State Info
cacti@cacti:~$
cacti@cacti:~$ mysql -u root -p password -e "show processlist" | grep -v Sleep
Enter password:
Id User Host db Command Time State Info
2981 root localhost cacti Query 0 NULL show processlist
2- Percentage script is not reporting correct value if interfaces is Gig, it report
value of %97 while intefaces consumed with 140Mbps
could you please help to fix Gig interfaces threshold.
linux83.
Cisco Networking
*LeArN To KnOw*
*LeArN To KnOw*
Re: Threshold plugin-Threshold for interfaces rate
sorry for that but All Gig interfaces graphs not reporting correct rate Except for realtime plugin.
i'm i have transfer rate around 400 Mbps and graph report current of 68 and max of 97 Mbps.
could you please help.
linux83
i'm i have transfer rate around 400 Mbps and graph report current of 68 and max of 97 Mbps.
could you please help.
linux83
Cisco Networking
*LeArN To KnOw*
*LeArN To KnOw*
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Threshold plugin-Threshold for interfaces rate
You need to make sure your limits are correct on your graphs and that they are properly using 64bit counters.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: Threshold plugin-Threshold for interfaces rate
Hi,
i check the switches configuration to use only snmp version 2, from Cacti-->setting i change defalut snmp to v2.
but how to check /set graph limit on cacti?
if i start "Realtime" plugin i can get the right reading, i debug the switch and found 0 errors snmp.
and still showing wrong reading on main interface graph.
linux83.
i check the switches configuration to use only snmp version 2, from Cacti-->setting i change defalut snmp to v2.
but how to check /set graph limit on cacti?
if i start "Realtime" plugin i can get the right reading, i debug the switch and found 0 errors snmp.
and still showing wrong reading on main interface graph.
linux83.
- Attachments
-
- Real-time.png (26.22 KiB) Viewed 3591 times
Cisco Networking
*LeArN To KnOw*
*LeArN To KnOw*
Re: Threshold plugin-Threshold for interfaces rate
Hi,
i also check :
1.interface assign to template the Upper Limit (--upper-limit)=1000.
2.Data Templates ..>[edit: Interface - TrafficMaximum Value ('U' for No Maximum)=1000,000,000.
still the issue.
max inbound in graph showing 40 Mbps while reall traffic = 380Mbps
linux83.
i also check :
1.interface assign to template the Upper Limit (--upper-limit)=1000.
2.Data Templates ..>[edit: Interface - TrafficMaximum Value ('U' for No Maximum)=1000,000,000.
still the issue.
max inbound in graph showing 40 Mbps while reall traffic = 380Mbps
linux83.
- Attachments
-
- Graph-traffic.png (18.46 KiB) Viewed 3590 times
Cisco Networking
*LeArN To KnOw*
*LeArN To KnOw*
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Threshold plugin-Threshold for interfaces rate
Code: Select all
rrdtool info <filename>
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Who is online
Users browsing this forum: No registered users and 1 guest