missing bandwidth perf data for network devices
Re: missing bandwidth perf data for network devices
I am not able to access the link
Re: missing bandwidth perf data for network devices
Did you create an account on there?
Attaching here in case you still have problems:
Attaching here in case you still have problems:
Summary:
Using a bash script to run MRTG - track how long MRTG runs for and then submit a passive check result to Nagios
Description:
I've always wanted some more diagnostics for MRTG. Specifically it would be great to know how long MRTG runs for, every time it runs.
I've created a bash script that will run the MRTG job and when the MRTG job finishes it submits a passive check result to Nagios for a localhost service.
The passive service doesn't do any alerting, it's simply for knowing a) how long it takes to run each time b) collecting this data in RRDs for viewing the standard runtimes.
Steps To Reproduce I've attached a script called mrtg.sh which needs to be placed into:
/usr/local/nagiosxi/scripts/
Update ownership and permissions:
chown root:nagios /usr/local/nagiosxi/scripts/mrtg.sh
chmod +rx /usr/local/nagiosxi/scripts/mrtg.sh
Update cron job:
cat /etc/cron.d/mrtg
*/5 * * * * root /usr/local/nagiosxi/scripts/mrtg.sh
Create passive service for localhost:
define service {
host_name localhost
service_description MRTG Runtime Statistics
use xiwizard_passive_service
max_check_attempts 1
check_interval 1
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 1
notification_period xi_timeperiod_24x7
contacts nagiosadmin
register 1
}
Sit back and relax while the bash script does all the work.
You do not have the required permissions to view the files attached to this post.
Re: missing bandwidth perf data for network devices
Upgraded nagios to the latest version
Gonna wait to see if that helps
Gonna wait to see if that helps
Re: missing bandwidth perf data for network devices
Ok, thanks, let us know the results.
Re: missing bandwidth perf data for network devices
upgrading to the latest version didn't help
Re: missing bandwidth perf data for network devices
Did you implement box293's recommendation so that we can see if MRTG is running longer than 5 minutes? If so, what were the results?
Re: missing bandwidth perf data for network devices
I have not, but I have seen better performance lately. meaning, I don't see gaps anymore. which concerns me because I haven't make any significant change
Re: missing bandwidth perf data for network devices
I still recommend that you set it up so that you can see how long it takes to run, it may be running better right now but it may be close to the 5 minutes mark and would only occur after the 5 minutes mark (load, network, polling speed, etc).
Re: missing bandwidth perf data for network devices
I am seing the issue again
I am going to follow your recommendation to see how long it takes
I am going to follow your recommendation to see how long it takes
Re: missing bandwidth perf data for network devices
Let us know how it works out.
Be sure to check out our Knowledgebase for helpful articles and solutions!