hi
sorry for my question and my english
so
I'm need to check bandwidth for nic on remote server (centos)
and was founded this plugin https://exchange.nagios.org/directory/P ... th/details
but this plugin dont create graph
in folder "/usr/local/nagios/share/perfdata/%MYHOST%" don't create rrd file at my service check
how to create rrd file and graph ?
performance graph for plugin
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: performance graph for plugin
Hello, @terminus. Can you upload the command definition? Also, can you show us the output when you run the plugin from the command line?
And, can you click on the service in Nagios XI, select the Performance graph tab and make sure that no performance graph is being generated by this plugin?
Do other plugins on your Nagios XI generate graphs and RRD files?
And, can you click on the service in Nagios XI, select the Performance graph tab and make sure that no performance graph is being generated by this plugin?
Do other plugins on your Nagios XI generate graphs and RRD files?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: performance graph for plugin
[root@monitor libexec]# ./check_bw.sh -H 192.251.195.110 -b 100 -v 2c -C %community% -m input -i eth0 -p 15 -w 75 -c 90
OK input bandwidth usage is 0.005 Mb/s, 0% used
define command {
command_name check_bw.sh
command_line $USER1$/check_bw.sh -H $HOSTADDRESS$ $ARG1$
}
yes, another service create graph and rrd files
OK input bandwidth usage is 0.005 Mb/s, 0% used
define command {
command_name check_bw.sh
command_line $USER1$/check_bw.sh -H $HOSTADDRESS$ $ARG1$
}
yes, another service create graph and rrd files
You do not have the required permissions to view the files attached to this post.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: performance graph for plugin
@terminus, I just checked the source code for this plugin.
Unfortunately, it doesn't have a graphing capability. In this case, I'd recommend to look for a different plugin on the Exchange.
Unfortunately, it doesn't have a graphing capability. In this case, I'd recommend to look for a different plugin on the Exchange.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: performance graph for plugin
npolovenko wrote:@terminus, I just checked the source code for this plugin.
Unfortunately, it doesn't have a graphing capability. In this case, I'd recommend to look for a different plugin on the Exchange.
thanks for your answer
but
how you understand, what this plugin dont create grahp ?
thx
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: performance graph for plugin
@terminus Yeah, if you look at the source code the final output that this plugin returns looks like this:
If the graphing option was supported you'd see something like this:
Take a look at this tutorial under Performance Data. http://nagios-plugins.org/doc/guidelines.html
Basically, you just add a | sign after the output message and specify 'value_name' = value. You can actually try to implement that yourself if you'd like.
Code: Select all
echo "OK $mode bandwidth usage is $final Mb/s, $perc% used"Code: Select all
echo "OK $mode bandwidth usage is $final Mb/s, $perc% used|'Mb/s'=$final"Basically, you just add a | sign after the output message and specify 'value_name' = value. You can actually try to implement that yourself if you'd like.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: performance graph for plugin
thanks
its work
you are fantastic
its work
you are fantastic
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: performance graph for plugin
@terminus, Nice! I'll close this thread as resolved then.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.