Page 1 of 1

check_bandwidth3 plugin issue

Posted: Mon Nov 19, 2012 7:42 pm
by Leonheart
Hello

I am trying to get check_bandwidth to work with nagios configuration. The script lays out like this

check_bandwidth3 --interface v2://$HOSTNAME/<community string>:<interface#>

I have no idea how to pass the "//" to nagios config. I tried using "$" before the "//" or "\\" before it, no luck. I keep getting this error message

Warning: Return code of 255 for check of service 'XXXXXXXXX' on host 'xxxxxx' was out of bounds.

any help is appreciated !

Re: check_bandwidth3 plugin issue

Posted: Tue Nov 20, 2012 10:01 am
by Leonheart
I have resolved the issue by applying single quotes like below, in the configuration file

check_bandwidth3!'v2://$HOSTNAME/<community string>:<interface#>'

in the command definition, I simply pass one argument

<path>/libexec/check_bandwidth3 -i $ARG1$

Thanks!

Re: check_bandwidth3 plugin issue

Posted: Tue Nov 20, 2012 2:38 pm
by slansing
Hey, thanks for coming back and sharing with the community! Appreciated.