op5 check_esx plugin and net usage

Joseph L. Casale jcasale at activenetwerx.com
Tue Mar 30 23:24:56 CEST 2010


>You mean when net usage exceed 100MB? Can you please post the command
>line used and some example output?

define command{
		command_name	check_esx3_vm_net_usage
		command_line	$USER13$/check_esx3.pl -H $ARG1$ -u $USER14$ -p $USER15$ -N $ARG2$ -l net -s usage -w $ARG3$ -c $ARG4$
		}


define service{
        use                     generic-service,srv-pnp
        host_name               foo
        service_description     Network Usage
        check_command           check_esx3_vm_net_usage!biz!baz!18000!20000
        }

The values are arbitrary in my post.


Actually, I don't know what the heck it does after I further watched:
[1269913196] SERVICE ALERT: foo;Network Usage;OK;HARD;3;P1.PL OK - "baz" net usage=6.30 KB/s
[1269914996] SERVICE ALERT: foo;Network Usage;CRITICAL;SOFT;1;P1.PL CRITICAL - Argument "\x{36}\x{34}..." isn't numeric in sprintf at (eval 8) line 580.
[1269915106] SERVICE ALERT: foo;Network Usage;CRITICAL;SOFT;2;P1.PL CRITICAL - "baz" net usage=83132.83 KB/s
[1269915226] SERVICE ALERT: foo;Network Usage;CRITICAL;HARD;3;P1.PL CRITICAL - "baz" net usage=-1.12 KB/s

Is the "-" value an esx problem? I'd love to know how that occurs:)
The sprint formatting problem is unexplained as well.

>Also, are you using the latest version

Yup.
Thanks!
jlc

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list