I am currently using nagios to do port checks for bandwidth/Discards/Errors
using check_snmp_netint.pl. I have been able to get it to work on opsview, but
not in the fashion I would like it to. I create a service check for each port
and unfortunately I have to pass the entire command string(all
flags/thresholds) as the single argument that I am allowed. While this works,
if I ever need to change a flag or threshold on the command I am going to have
to do it on each port. Considering I am monitoring upwards of 500 ports its
not a practical application at this point.
In nagios I defined the command in commands.cfg
define command{
command_name check_port_100mb
command_line $USER1$/check_snmp_netint.pl -2 -H $HOSTADDRESS$ -C $USER2$
$ARG1$ -g -d 360 -f -k -q -Y -MB -e -w 95,95,1,1,0,0 -c 98,98,5,5,0,0 -o 1500
-N 1.3.6.1.2.1.31.1.1.1.1 --label
}
And then from there I create a service and pass it the one argument I need to
pass it which is the "-n 8/42" which is the port number
service.cfg
define service{
use generic-service
host_name host.my.domain.com
service_description 8/42 VLAN 1020 Error Check
check_command check_port_100!-n 8/42
}
I can't seem to accomplish this is opsview. Does anyone know if this is even
possible?
I appreciate everyones help here...
~Phil
_________________________________________________________________
Windows 7: Unclutter your desktop.
http://go.microsoft.com/?linkid=9690331&ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen:112009_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users