Sponsored Content
Full Discussion: Cacti + MRTG + Nagios
Special Forums UNIX and Linux Applications Infrastructure Monitoring Cacti + MRTG + Nagios Post 302494971 by OneDreamCloser on Wednesday 9th of February 2011 02:38:19 AM
Old 02-09-2011
thanx a lot, but may i ask :

0. from what i have googled so far, the best thing to do is to have cacti polling the data, and then, through passive interfaces, feed these data in Nagios. is that correct ?
1. why is the above a better solution than having nagios actively polling the devices and fill in the records in the rrd_tool ?
2. and last, which is the simplest way of plotting the statistics in real-time (without requesting the plots) ?

thank you in advance Smilie
 

8 More Discussions You Might Find Interesting

1. IP Networking

MRTG in Unix Systems

Hi, I need help to discovery the correct MIB to monitoring CPU, Memory and Hard Disc in Unix. I get any MIB in the internet, but donīt work. Anybody help-me? Thanks. Marcio Dunder Perin (2 Replies)
Discussion started by: dunder
2 Replies

2. Cybersecurity

MRTG vs Nagios

hye all.. I like to know if anyone here can justify and make wise recommendation to me, whether to choose MRTG or NAGIOS as network Monitoring Performance. If can, is there any website that provide comparison for both of them? Ur help are highly appreciated.. Regards, ~unknown (1 Reply)
Discussion started by: unknown2205
1 Replies

3. Linux

MRTG Problem

Dear All I have an E1 link (2Mbps) for the internet usage in my office. I have configured MRTG on Linux Proxy Machine and Router's serial interface. The problem that i have is some times in MRTG web page Bits per second increase up to 2.4 M or 4.8 M but it should not go over 2048 Kbps. How can... (0 Replies)
Discussion started by: surfer24
0 Replies

4. Shell Programming and Scripting

Mrtg help...

Hello All, Can anyone tell me that how to make MRTG graph by picking values through a simple file. If you have such script of MRTG then please tell me the details. Actually my scenarios is that i want to make a Graph through a simple file in which values randomly changes. I hop you... (1 Reply)
Discussion started by: wakhan
1 Replies

5. AIX

Want to use MRTG to Monitor AIX 6.1

hi, I used to use MRTG monitor Redhat, CentOS. But, i found that. I can't snmpwalk to my AIX 6.1 I want to know, how can I snmpwalk my AIX 6.1's CPU usage, Memory usage, New TCP connection, EST. TCP connection and the Harddisk Size....etc. thanks. (1 Reply)
Discussion started by: virusxx
1 Replies

6. Red Hat

Help me on MRTG

I have installed MRTG on my Linux 5.5 system. then i started copying data from the machine when MRTG is installed to another machine. I could see some changes in graphs. But can't understand what does that mean? Moreover how to see load on the system where MRTG is installed by copying files... (2 Replies)
Discussion started by: manalisharmabe
2 Replies

7. Red Hat

Why do we use RRDtool in MRTG?

Hi Guys, Why do we use RRDtool in MRTG? I have implemented MRTG for some routers, I have read some notes about RRDTOOL also but don't know what is use of these tool. Any one one please explain me the use of RRDTOOL in their own words? (1 Reply)
Discussion started by: manalisharmabe
1 Replies

8. Infrastructure Monitoring

Nagios check dependent on second nagios server

We have a dual Nagios server setup. One is setup for internal server monitoring on our LAN, while the second Nagios server is hosted externally and is used for external checks only such as URL and ping checks form the WAN side. I was wondering if there is any way to setup cross dependencies... (1 Reply)
Discussion started by: eugenes18t
1 Replies
POLLING(4)						   BSD Kernel Interfaces Manual 						POLLING(4)

NAME
polling -- device polling support SYNOPSIS
options DEVICE_POLLING DESCRIPTION
Device polling (polling for brevity) refers to a technique that lets the operating system periodically poll devices, instead of relying on the devices to generate interrupts when they need attention. This might seem inefficient and counterintuitive, but when done properly, polling gives more control to the operating system on when and how to handle devices, with a number of advantages in terms of system respon- siveness and performance. In particular, polling reduces the overhead for context switches which is incurred when servicing interrupts, and gives more control on the scheduling of the CPU between various tasks (user processes, software interrupts, device handling) which ultimately reduces the chances of livelock in the system. Principles of Operation In the normal, interrupt-based mode, devices generate an interrupt whenever they need attention. This in turn causes a context switch and the execution of an interrupt handler which performs whatever processing is needed by the device. The duration of the interrupt handler is potentially unbounded unless the device driver has been programmed with real-time concerns in mind (which is generally not the case for FreeBSD drivers). Furthermore, under heavy traffic load, the system might be persistently processing interrupts without being able to com- plete other work, either in the kernel or in userland. Device polling disables interrupts by polling devices at appropriate times, i.e., on clock interrupts and within the idle loop. This way, the context switch overhead is removed. Furthermore, the operating system can control accurately how much work to spend in handling device events, and thus prevent livelock by reserving some amount of CPU to other tasks. Enabling polling also changes the way software network interrupts are scheduled, so there is never the risk of livelock because packets are not processed to completion. Enabling polling Currently only network interface drivers support the polling feature. It is turned on and off with help of ifconfig(8) command. The historic kern.polling.enable, which enabled polling for all interfaces, can be replaced with the following code: for i in `ifconfig -l` ; do ifconfig $i polling; # use -polling to disable done MIB Variables The operation of polling is controlled by the following sysctl(8) MIB variables: kern.polling.user_frac When polling is enabled, and provided that there is some work to do, up to this percent of the CPU cycles is reserved to userland tasks, the remaining fraction being available for polling processing. Default is 50. kern.polling.burst Maximum number of packets grabbed from each network interface in each timer tick. This number is dynamically adjusted by the kernel, according to the programmed user_frac, burst_max, CPU speed, and system load. kern.polling.each_burst The burst above is split into smaller chunks of this number of packets, going round-robin among all interfaces registered for polling. This prevents the case that a large burst from a single interface can saturate the IP interrupt queue (net.inet.ip.intr_queue_maxlen). Default is 5. kern.polling.burst_max Upper bound for kern.polling.burst. Note that when polling is enabled, each interface can receive at most (HZ * burst_max) packets per second unless there are spare CPU cycles available for polling in the idle loop. This number should be tuned to match the expected load (which can be quite high with GigE cards). Default is 150 which is adequate for 100Mbit network and HZ=1000. kern.polling.idle_poll Controls if polling is enabled in the idle loop. There are no reasons (other than power saving or bugs in the scheduler's handling of idle priority kernel threads) to disable this. kern.polling.reg_frac Controls how often (every reg_frac / HZ seconds) the status registers of the device are checked for error conditions and the like. Increasing this value reduces the load on the bus, but also delays the error detection. Default is 20. kern.polling.handlers How many active devices have registered for polling. kern.polling.short_ticks kern.polling.lost_polls kern.polling.pending_polls kern.polling.residual_burst kern.polling.phase kern.polling.suspect kern.polling.stalled Debugging variables. SUPPORTED DEVICES
Device polling requires explicit modifications to the device drivers. As of this writing, the bge(4), dc(4), em(4), fwe(4), fwip(4), fxp(4), ixgb(4), nfe(4), nge(4), re(4), rl(4), sf(4), sis(4), ste(4), stge(4), vge(4), vr(4), and xl(4) devices are supported, with others in the works. The modifications are rather straightforward, consisting in the extraction of the inner part of the interrupt service routine and writing a callback function, *_poll(), which is invoked to probe the device for events and process them. (See the conditionally compiled sections of the devices mentioned above for more details.) As in the worst case the devices are only polled on clock interrupts, in order to reduce the latency in processing packets, it is not advis- able to decrease the frequency of the clock below 1000 Hz. HISTORY
Device polling first appeared in FreeBSD 4.6 and FreeBSD 5.0. AUTHORS
Device polling was written by Luigi Rizzo <luigi@iet.unipi.it>. BSD
April 6, 2007 BSD
All times are GMT -4. The time now is 07:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy