[mrtg] How to monitor non SNMP Device using MRTG
Fehmi Dumani
albadino at hotmail.com
Sat Apr 24 12:51:29 CEST 2010
Hi G. Ashok,
The first think to do is to get log files which contains the information, for instance do you have any logging server or maybe you can get output via CLI (Command Line Interface).
In the first cause all you need to do is do some filtering and give your information to the mrtg service,
On the second scenario you will have to probably remotely gather this information using ssh to execute remote commands or maybe rsh. Than all is simple I will attach a file which contains few mrtg configuration scenarios with the some scripts which are realy easy to read.
If you need more help plz send some details on what kind of information do you wana graph and how do you obtain them, and I will try to help you with your script.
Keep in mind I don't know how windows mrtg works so I am speaking only for linux servers that serves mrtg.
By the way I found these scripts on the net and I am not sure where did I find them but they gave me really great help creating my script and mrtg.cfg, so this is not my work some1 else deserves the thanking.
Fehmi
Date: Sat, 24 Apr 2010 15:58:37 +0530
Subject: Re: [mrtg] How to monitor non SNMP Device using MRTG
From: g.ashok1988 at gmail.com
To: albadino at hotmail.com
CC: mrtg at lists.oetiker.ch
Thank you guys for giving such a valuable information saying that you have implemented MRTG for non SNMP devices.But someone says, to use smokeping, write scripts which have to return four values.
First of all I I think I don't want to switch to some other tools like smokeping as I know about MRTG. So, if you guys tried this, could you please post some practical scripts( might be complex ) so that I can implement for my non SNMP devices and then I can go for some other tools like smokeping for some enhancements.
Kind Regards,G Ashok Kumar,Softential.On Sat, Apr 24, 2010 at 1:24 PM, Fehmi Dumani <albadino at hotmail.com> wrote:
You can check this page http://mrtg.meulie.net/doc/mrtg-reference.en.html it helped me set it up for my own use.
Check the part
External Monitoring Scripts
If you want to monitor something which does not provide
data via snmp you can use some external program to do
the data gathering.
The external command must return 4 lines of output:
Line 1
current state of the first variable, normally 'incoming bytes
count'
Line 2
current state of the second variable, normally 'outgoing bytes
count'
Line 3
string (in any human readable format), telling the uptime of the
target.
Line 4
string, telling the name of the target.
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. Learn more.
_______________________________________________
mrtg mailing list
mrtg at lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
_________________________________________________________________
The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail.
http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20100424/740963e0/attachment.htm
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mrtg_conf_scripts.txt
Url: http://lists.oetiker.ch/pipermail/mrtg/attachments/20100424/740963e0/attachment.txt
More information about the mrtg
mailing list