[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing • View topic - check_vmware.pl --report=net problem

Cheshire Cat Computing

Software support and information
It is currently Mon Dec 08, 2025 9:58 pm

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Tue Dec 07, 2010 4:39 am 
Offline
User

Joined: Tue Dec 07, 2010 4:06 am
Posts: 7
Hi,
i encounter an issue running this command:
./check_vmware.pl --config=vmconfig.cfg --mode=nagios --guest=SERVER --report=net --debug

result is:
Starting.
Connecting
Connected
Server Time : 2010-12-06T15:32:57.18974Z
Trying to locate SERVER
Report type requested is [net]
Base is Datacenters
Disconnecting...
Exiting with status (3)

I would like to monitor the network interface of a virtualmachine. But nothing is comming back to my screen.

I 'm running vsphere 4.0 with esx 4 hosts. My vcenter Server Settings statistics are:
5min>1Day>2
30min>1week>2
2Hrs>1month>1
1Day>1Year>1

--report=cpu AND --report=mem are running well

?m running the last version of check_vmware.pl

./check_vmware.pl --version
vSphere SDK for Perl version: 4.1
Script 'check_vmware.pl' version: 1.0


Perl sdk for vsphere is installed

I don't know what i'm running false, so if you can help .....


thx

C


Top
 Profile Send private message  
 
PostPosted: Tue Dec 07, 2010 10:00 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
It is failing to find statistics for a VM called 'SERVER'.

Either you don't have a guest called 'SERVER', or else you have not enabled the statistics to the required level in the virtualcentre. You have shown that you have level2 stats at 5min, so this should be enough (but try with level3 just incase something is odd, the API keeps changing...)

My guess is that 'SERVER' has not managed to identify your guest correctly. Try using the hostname or IP address.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
PostPosted: Tue Dec 07, 2010 8:46 pm 
Offline
User

Joined: Tue Dec 07, 2010 4:06 am
Posts: 7
many thanks for your quick answer.

so i set level3 stats at 5 min. And replace guest name by the IP adress and the result remains the same.
./check_vmware.pl --config=vmconfig.cfg --mode=nagios --report=net --guest=xx.xxx.xx.xxx --debug
Starting.
Connecting
Connected
Server Time : 2010-12-07T07:39:25.783149Z
Trying to locate 10.117.65.221
Now trying as hostname...
Now trying as IP address...
Guest is poweredOn
Report type requested is [net]
Base is Datacenters
Disconnecting...
Exiting with status (3)


here is the command but i query the CPU:
./check_vmware.pl --config=vmconfig.cfg --mode=nagios --report=CPU --guest=xx.xxx.xx.xxx --debug
Starting.
Connecting
Connected
Server Time : 2010-12-07T07:39:39.595826Z
Trying to locate xx.xxx.xx.xxx
Now trying as hostname...
Now trying as IP address...
Guest is poweredOn
Report type requested is [CPU]
Base is Datacenters
Retrieving PerfMgr data
Selected interval is: 300
Processing entities:
Server
Creating query for Server
Start time: 2010-12-07T07:34:00Z
End time : 2010-12-07T07:39:00Z
Retrieving data...
Perfstats retrieved...
Results for Server
Perfdata object: 2010-12-07T07:40:00Z
Disconnecting...
Exiting with status (0)
CPU usage at 39.53%<BR> Guest CPUs: 1<BR> CPU stats: Used/System/Ready = 39.11%/0.64%/0.01%|cpu=39.53%;80;90;0;100 ready=0.01%;5;10;0;100 user=39.11%;;;0;100 sys=0.64%;;;0;100


VMWARE vCenter Server Version 4.0.0 Build 208111

I do not understand the difference....


Top
 Profile Send private message  
 
PostPosted: Wed Dec 08, 2010 10:12 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
It seems to be identifying the guest OK, but not finding the networking stats.

I'm not actually using the net stats here in our live system, so I'll need to do some investigation (when I get the free time...)

I'll get back on this one, feel free to send me a reminder if you dont hear anything in the next week

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
PostPosted: Thu Dec 09, 2010 7:47 am 
Offline
User

Joined: Tue Dec 07, 2010 4:06 am
Posts: 7
many thanks for taking care of my problem.
feel free to ask me more informations. i will try to send it you back ....regarding confidential policy in my compagny ;)

it seems i'm not the only one facing this issue.

see u sooon


Top
 Profile Send private message  
 
PostPosted: Fri Dec 10, 2010 10:50 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Looks like the -net monitoring is screwed. Possibly some changes to the API in the current version of the Virtualcentre? Anyways; I'll work on this when I get the chance. Might take some time...

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
PostPosted: Mon Dec 20, 2010 11:53 pm 
Offline
User

Joined: Tue Dec 07, 2010 4:06 am
Posts: 7
hello,

as mentionned earlier, i send you a reminder ;)


Top
 Profile Send private message  
 
PostPosted: Tue Dec 21, 2010 9:55 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
I started investigating on Monday...

Seems that the part of the code which processes the NET report is completely missing! :shock: Somewhere along the line an older version must have been replaced and that piece of code has been lost :oops:

So, I'm rewriting the netreport() function now from scratch as I cant find a backup of this part. Everything else is there, though... :sweatdrop:

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
PostPosted: Wed Dec 22, 2010 4:39 am 
Offline
User

Joined: Tue Dec 07, 2010 4:06 am
Posts: 7
lol !!!!


Top
 Profile Send private message  
 
PostPosted: Wed Dec 22, 2010 9:52 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Testing net report code now. This does not yet allow you to specify a net interface, just the total traffic for a VM or Host. This is because I have no idea how I managed to get a list of network interface numbers out last time. So far seems to be working for Nagios and MRTG.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  Next

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group