[mrtg] Graphing netware disk usage
Mohamed Sangey
msangey at cats-net.com
Mon Nov 29 06:23:21 CET 2010
Dear All,
I want to create MRTG Graph from Etinc Bandwidth Manager. Please can anyone
assist me on that.
On the main menu of our Bandwithd Manager's Graphical User Interface (GUI),
the following is shown:
Version:4.0RC1
License:Gigabit Level 7
Mohamed Sangey
NOC Technical Engineer
logo
Support : (+255) 0653-635212 / 0754-986875
Mobile : (+255) 653 - 270002
Chatting: Skype - mohamedsangey
MSN - mohamedsangey at hotmail.com
Yahoo - mohdsangey at yahoo.com
From: S Shipway [via MRTG Mailinglists]
[mailto:ml-node+5778286-1475280551-304850 at n2.nabble.com]
Sent: Friday, November 26, 2010 10:43 PM
To: Mohamed Sangey
Subject: Re: Graphing netware disk usage
You are using a Nagios plugin in MRTG. While some Nagios plugins have an
'MRTG Mode', it seems that this one doesn't (or if it does, you've not
enabled it).
A Nagios plugin should output one line of text, with a message followed by
'|' and the perfstats data as var=value sets. It then exits with a status
of 0,1,2 or 3 depending on the tests.
An MRTG plugin should output 4 lines of text; two with numbers and then two
more optionally holding uptime and system name (though these can be left
blank). It should always exit with status 0.
In order to make this work with MRTG, you'll need to modify the plugin to
output MRTG status, or use a wrapper script like this:
# check_nwstat_mrtg
perfstat=`/usr/lib/nagios/plugins/check_nwstat $* | cut -f2 -d '|'`
val=`echo "$perfstat"|sed 's/^.*=//'|sed 's/;.*//'`
echo $val
echo $val
echo ''
echo "$perfstat"
exit 0
Steve
Steve Shipway
University of Auckland ITS
UNIX Systems Design Lead
[hidden email]
Ph: +64 9 373 7599 ext 86487
________________________________________
From: [hidden email] [[hidden email]] on behalf of PeteH [[hidden email]]
...
Target[VCH-NA1.SYS]: `/usr/lib/nagios/plugins/check_nwstat 10.5.1.9 -v
VKFSYS | cut -f2 -d =`
...
nagios1:/etc/init.d # /usr/lib/nagios/plugins/check_nwstat 10.5.1.9 -v
VKFSYS
1126912 KB free on volume SYS|KBFreeSYS=1126912;0;0;;
nagios1:/etc/init.d # /usr/lib/nagios/plugins/check_nwstat 10.5.1.9 -v
VKFSYS | cut -f2 -d =
1126912;0;0;;
_______________________________________________
mrtg mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
_____
View message @
http://mrtg-mailinglists.795376.n2.nabble.com/Graphing-netware-disk-usage-tp
5777936p5778286.html
To start a new topic under MRTG Users Mailinglist, email
ml-node+790954-1171657320-304850 at n2.nabble.com
To unsubscribe from MRTG Users Mailinglist, click
<http://mrtg-mailinglists.795376.n2.nabble.com/template/NamlServlet.jtp?macr
o=unsubscribe_by_code&node=790954&code=bXNhbmdleUBjYXRzLW5ldC5jb218NzkwOTU0f
Dk3MDUwOTAyOA==> here.
--
View this message in context: http://mrtg-mailinglists.795376.n2.nabble.com/Graphing-netware-disk-usage-tp5777936p5783329.html
Sent from the MRTG Users Mailinglist mailing list archive at Nabble.com.
More information about the mrtg
mailing list