LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   nagios plugins issue (http://www.linuxquestions.org/questions/linux-software-2/nagios-plugins-issue-4175437874/)

rpzcas 11-19-2012 07:38 PM

nagios plugins issue
 
Hello all

I just started using "check_bandwidth3" plugins and realized that the way that the scripted is executed is different from what I've seen before. The format is 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.

thanks for any help !

rpzcas 11-19-2012 08:56 PM

I fixed the issue by single quoting the argument

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

dragonix 11-20-2012 09:04 AM

If it is fixed, mark this thread as solved ;)

Nice work btw! :hattip:


All times are GMT -5. The time now is 09:48 AM.