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.
Please run the two commands that @Box293 mentioned above, and post the output. You just want to run 'echo $?' which will show us the exit code that check_snmp runs on -
Are you specifying a $1 and $2 variable? I don't think your check command needs to specify a -w and -c since you're already specifying that in the wrapper script. It just expects to be ran like this -
the issue is that i dont received any email alert it done not show warning or critical it just show "SNMP WARNING - 0| iso.3.6.1.4.1.318.1.1.12.2.3.1.1.2.1=6.7"
what i would like for it to show is warring or critical and what the current level is so her is my lastest info
i run my script directly {as before i am specifying the Variable }
define service{
use generic-service,srv-pnp
host_name Metered Rack PDU 241
service_description APC Metered Total
check_command 241_total_load! 70 100 {do i specific the variable here or in the command } {and is this the right format}
max_check_attempts 5
check_period 24x7
notification_interval 30
notification_period 24x7
contacts nagiosadmin
}
here is the command.cfg
# '241_total_load' command definition
define command{
command_name 241_total_load
command_line $USER1$/241_total_load {do i specific the variable here or in the command } {-w $ARG1$ -c $ARG2$} {is this the right format}
}
as stated in the previous comments i am not receiving email alert i did add AWK command function to it so that it display in 9.6 Amps instead of 96 which is more realistic i ams sorry for the mix up but i hope my point get across but if i remove the variable in the wrapper script the command function just fine and display it in the right format of 9.6 i am not 100 sure so i was changing thing around to see what result i would get