missing bandwidth perf data for network devices

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: missing bandwidth perf data for network devices

Post by bosecorp »

I am not able to access the link
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: missing bandwidth perf data for network devices

Post by ssax »

Did you create an account on there?

Attaching here in case you still have problems:
mrtg.zip
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.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: missing bandwidth perf data for network devices

Post by bosecorp »

Upgraded nagios to the latest version

Gonna wait to see if that helps
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: missing bandwidth perf data for network devices

Post by ssax »

Ok, thanks, let us know the results.
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: missing bandwidth perf data for network devices

Post by bosecorp »

upgrading to the latest version didn't help
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: missing bandwidth perf data for network devices

Post by ssax »

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?
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: missing bandwidth perf data for network devices

Post by bosecorp »

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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: missing bandwidth perf data for network devices

Post by ssax »

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).
bosecorp
Posts: 929
Joined: Thu Jun 26, 2014 1:00 pm

Re: missing bandwidth perf data for network devices

Post by bosecorp »

I am seing the issue again

I am going to follow your recommendation to see how long it takes
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: missing bandwidth perf data for network devices

Post by tgriep »

Let us know how it works out.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked