Page 1 of 1

Check_snmp_printer no usable bc

Posted: Mon Oct 17, 2016 3:58 pm
by ThinkFast86
I need your help please with this issue:
When i am trying to use this snmp service i am receiving the following error: UNKNOWN: check_snmp_printer: No usable 'bc' binary in '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'

Here you can find the config for host and command:
HOST
  • define host{
    use linux-server ; Name of host template to use
    ; This host definition will inherit all variables that are defined
    ; in (or inherited by) the linux-server host template definition.
    host_name bizhubc284e
    notes_url http://private ip
    alias bizhubc284e
    address private ip
    max_check_attempts 3
    check_period 24x7
    check_command check-host-alive
    contacts nagiosadmin
    notification_interval 60
    notification_period 24x7
    notification_options d,r
    contact_groups admins
    }
    define service {
    host_name bizhubc284e
    use generic-service
    service_description CONSUM_ALL
    check_command check_snmp_printer!public!"CONSUM ALL"!20!10
    normal_check_interval 10
    retry_check_interval 1
    }
COMMANDS
  • define command {
    command_name check_snmp_printer
    command_line $USER1$/check_snmp_printer -H $HOSTADDRESS$ -C $ARG1$ -x $ARG2$ -w $ARG3$ -c $ARG4$
    }
Could you please advise?

Re: Check_snmp_printer no usable bc

Posted: Mon Oct 17, 2016 4:01 pm
by dwhitfield
Are you using Nagios Core or Nagios XI? I'd like to move this to the appropriate forum.

And while I'm asking, could you give us version numbers and the OS on which Nagios is running too? Thanks!

Re: Check_snmp_printer no usable bc

Posted: Mon Oct 17, 2016 4:02 pm
by ThinkFast86
dwhitfield wrote:Are you using Nagios Core or Nagios XI? I'd like to move this to the appropriate forum.

And while I'm asking, could you give us version numbers and the OS on which Nagios is running too? Thanks!
I am using Nagios Core 4.2.1 with plugins 2.1 and is installed on ubuntu server 16.04.

Re: Check_snmp_printer no usable bc

Posted: Mon Oct 17, 2016 4:38 pm
by tgriep
Your system is missing the BC package and it needs to be installed by running the following on your server.

Code: Select all

sudo apt-get install bc
Try that and let us know if this works.

Re: Check_snmp_printer no usable bc

Posted: Mon Oct 17, 2016 4:41 pm
by dwhitfield
Let's try apt-get -y install bc

If that doesn't do it, then we'll have to add it to your path manually.

Re: Check_snmp_printer no usable bc

Posted: Mon Oct 17, 2016 5:05 pm
by ThinkFast86
Thank you for you kind support guys!! Now is ok. Really thank you!!!

Re: Check_snmp_printer no usable bc

Posted: Tue Oct 18, 2016 9:30 am
by dwhitfield
Whoops, didn't see @tgriep's response. But hey, at least we were on the same page!

This seems resolved. Ready to close?