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 !
check_bandwidth3 plugin issue
Re: check_bandwidth3 plugin issue
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!
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
Hey, thanks for coming back and sharing with the community! Appreciated.