check_bandwidth3 plugin issue

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Leonheart
Posts: 2
Joined: Sat Nov 17, 2012 2:50 pm

check_bandwidth3 plugin issue

Post 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 !
Leonheart
Posts: 2
Joined: Sat Nov 17, 2012 2:50 pm

Re: check_bandwidth3 plugin issue

Post 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!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_bandwidth3 plugin issue

Post by slansing »

Hey, thanks for coming back and sharing with the community! Appreciated.
Locked