Page 1 of 2

Configuring nagiosxi to monitor bandwidth traffic

Posted: Mon Jan 10, 2011 5:29 pm
by teledataict
Hi All,
I am new to nagiosxi. I want to configure nagios to monitor interface traffic. I am using the virtual server that comes with nagiosxi. Can anybody help me out? This taxk I need to complete by end of working day tomorrow.
Regards,

Re: Configuring nagiosxi to monitor bandwidth traffic

Posted: Tue Jan 11, 2011 10:33 am
by rdedon
Hello,
could you please elaborate on the extent of the monitoring, so that we may better assist you?

Thanks!

Re: Configuring nagiosxi to monitor bandwidth traffic

Posted: Tue Jan 11, 2011 11:04 am
by tonyyarusso
Most likely what you need can be accomplished by running the "Switch wizard" on the network device in question. You'll find it under "Configuration". (This requires the device to be set up for SNMP with the Nagios XI server on its allow list.)

Re: Configuring nagiosxi to monitor bandwidth traffic

Posted: Tue Jan 11, 2011 11:42 am
by teledataict
I am using the check_local_mrtg command. I get this error (check_mrtgtraf: Unable to open MRTG log file) I am using NagiosXI.
Below are the values I have set for the device, this is a motorola canopy device.($USER1$/check_mrtgtraf -F $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$ -e $ARG5$) (192.168.10.2_1.log!128,128!100!120!15) To be frank, I do not know the actual meanings of the values but I understands it as ip address, total bandwidth,warning limit,critical limit, ... I don't knowthe last value. Am I doing anything wrong?

Re: Configuring nagiosxi to monitor bandwidth traffic

Posted: Tue Jan 11, 2011 11:58 am
by tonyyarusso
I'm not actually familiar with check_mrtgtraf (we use check_rrdtraf), but here's a rundown of the arguments you're using:
-F File to read log from
-a Test average or maximum
-w Warning threshold pair <incoming>,<outgoing>
-c Critical threshold pair <incoming>,<outgoing>
-e Minutes after which log expires

-F should have the full path to a file.
-a should have either "AVG" or "MAX"

Re: Configuring nagiosxi to monitor bandwidth traffic

Posted: Tue Jan 11, 2011 11:59 am
by teledataict
I am using the check_mrtgtraf command. I get this error (check_mrtgtraf: Unable to open MRTG log file) I am using NagiosXI.
Below are the values I have set for the device, this is a motorola canopy device.($USER1$/check_mrtgtraf -F $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$ -e $ARG5$) (192.168.10.2_1.log!128,128!100!120!15) To be frank, I do not know the actual meanings of the values but I understands it as ip address, total bandwidth,warning limit,critical limit, ... I don't knowthe last value. Am I doing anything wrong?
I am using the check_local_mrtg command. I get this error (check_mrtgtraf: Unable to open MRTG log file) I am using NagiosXI.
Below are the values I have set for the device, this is a motorola canopy device.($USER1$/check_mrtgtraf -F $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$ -e $ARG5$) (192.168.10.2_1.log!128,128!100!120!15) To be frank, I do not know the actual meanings of the values but I understands it as ip address, total bandwidth,warning limit,critical limit, ... I don't knowthe last value. Am I doing anything wrong?

Re: Configuring nagiosxi to monitor bandwidth traffic

Posted: Tue Jan 11, 2011 12:59 pm
by tonyyarusso
Am I doing anything wrong?
Yes. Your arguments (192.168.10.2_1.log!128,128!100!120!15) do not match your command line ($USER1$/check_mrtgtraf -F $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$ -e $ARG5$). See my last post about what you are using and what they expect.

Re: Configuring nagiosxi to monitor bandwidth traffic

Posted: Tue Jan 11, 2011 3:31 pm
by teledataict
Thank you Tony,
I have changed some values especially the log file but the error has changed to (MRTG data has expired (372 minutes old))What else do I need to do?

Re: Configuring nagiosxi to monitor bandwidth traffic

Posted: Tue Jan 11, 2011 3:38 pm
by tonyyarusso
Either change what you pass to -e or set whatever is updating the MRTG log to run more often.

Re: Configuring nagiosxi to monitor bandwidth traffic

Posted: Wed Jan 12, 2011 3:16 am
by teledataict
Hi all,
I still get warning. please see my service config.

define service {
host_name melcom-s1-ho-bhm
service_description check_mrtg_BW
display_name check_mrtg_BW
check_command check_local_mrtgtraf!/var/www/mrtg/nagiosb.log!AVG!120000,120000!128000,128000!30!!!
max_check_attempts 2
check_interval 1
retry_interval 1
check_period 24x7
notification_interval 10
notification_period 24x7
notification_options w,r,c,f,s
contacts AT1,
register 1
}
Do I have to do anything more here or somewhere else?