Configuring nagiosxi to monitor bandwidth traffic
-
teledataict
- Posts: 11
- Joined: Mon Jan 03, 2011 12:33 pm
Configuring nagiosxi to monitor bandwidth traffic
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,
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
Hello,
could you please elaborate on the extent of the monitoring, so that we may better assist you?
Thanks!
could you please elaborate on the extent of the monitoring, so that we may better assist you?
Thanks!
-
tonyyarusso
- Posts: 1128
- Joined: Wed Mar 03, 2010 12:38 pm
- Location: St. Paul, MN, USA
- Contact:
Re: Configuring nagiosxi to monitor bandwidth traffic
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.)
-
teledataict
- Posts: 11
- Joined: Mon Jan 03, 2011 12:33 pm
Re: Configuring nagiosxi to monitor bandwidth traffic
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?
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?
-
tonyyarusso
- Posts: 1128
- Joined: Wed Mar 03, 2010 12:38 pm
- Location: St. Paul, MN, USA
- Contact:
Re: Configuring nagiosxi to monitor bandwidth traffic
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"
-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"
-
teledataict
- Posts: 11
- Joined: Mon Jan 03, 2011 12:33 pm
Re: Configuring nagiosxi to monitor bandwidth traffic
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?
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?
-
tonyyarusso
- Posts: 1128
- Joined: Wed Mar 03, 2010 12:38 pm
- Location: St. Paul, MN, USA
- Contact:
Re: Configuring nagiosxi to monitor bandwidth traffic
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.Am I doing anything wrong?
-
teledataict
- Posts: 11
- Joined: Mon Jan 03, 2011 12:33 pm
Re: Configuring nagiosxi to monitor bandwidth traffic
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?
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?
-
tonyyarusso
- Posts: 1128
- Joined: Wed Mar 03, 2010 12:38 pm
- Location: St. Paul, MN, USA
- Contact:
Re: Configuring nagiosxi to monitor bandwidth traffic
Either change what you pass to -e or set whatever is updating the MRTG log to run more often.
-
teledataict
- Posts: 11
- Joined: Mon Jan 03, 2011 12:33 pm
Re: Configuring nagiosxi to monitor bandwidth traffic
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?
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?