Hello,

I just managed to get the wmi check to work on a local windows server (I had to backslash the ; in the password in the host definition).

But now, I lost my graphite graphs! ;D

As soon as the check_windows_disks command
Code:
define command {
    command_name   check_windows_disks
    command_line   $PLUGINSDIR$/check_wmi_plus.pl -H $HOSTADDRESS$ -u "$_HOSTDOMAINUSER$" -p "$_HOSTDOMAINPASSWORD$" -m checkdrivesize -a '.' -w 90 -c 95 -o 0 -3 0
}
(from the window pack) retrieve the perfdata:
Code:
'C: Space'=9.28GB; 'C: Utilisation'=95.1%;90;95; 'D: Space'=46.15GB; 'D: Utilisation'=71.3%;90;95; 'F: Space'=68.21GB; 'F: Utilisation'=29.2%;90;95; 'Z: Space'=228.16GB; 'Z: Utilisation'=97.6%;90;95;
, I get this in the nagios.log:
Code:
[1340635766] EXTERNAL COMMAND: [1340635766] SCHEDULE_SVC_CHECK;Test;Disks;1340635763
[1340635768] SERVICE ALERT: Test;Disks;CRITICAL;SOFT;1;CRITICAL - [Triggered by _Used%>95] - C: Total=9.77GB, Used=9.28GB (95.1%), Free=0.48GB (4.9%)   OK - D: Total=64.73GB, Used=46.15GB (71.3%), Free=18.58GB (28.7%)   OK - F: Total=233.76GB, Used=68.21GB (29.2%), Free=165.54GB (70.8%)   CRITICAL - [Triggered by _Used%>95] - Z: Total=233.76GB, Used=228.16GB (97.6%), Free=5.60GB (2.4%)
[1340635769] Warning : [broker-1] The mod Graphite-Perfdata raise an exception: list index out of range, I'm tagging it to restart later
[1340635769] Warning : [broker-1] Exception type : <type 'exceptions.IndexError'>
[1340635769] Warning : [broker-1] Back trace of this kill: Traceback (most recent call last):
 File "/usr/local/shinken/shinken/daemons/brokerdaemon.py", line 247, in manage_brok
  mod.manage_brok(b)
 File "/usr/local/shinken/shinken/basemodule.py", line 232, in manage_brok
  return manage(brok)
 File "/usr/local/shinken/shinken/modules/graphite_broker.py", line 142, in manage_service_check_result_brok
  couples = self.get_metric_and_value(perf_data)
 File "/usr/local/shinken/shinken/modules/graphite_broker.py", line 104, in get_metric_and_value
  name_value = { name : elts[0], name+'_warn' : elts[1], name+'_crit' : elts[2] }
IndexError: list index out of range

[1340635770] Info : [broker-1] Trying to init module : Graphite-Perfdata
[1340635795] Warning : [broker-1] The mod Graphite-Perfdata raise an exception: list index out of range, I'm tagging it to restart later
[1340635795] Warning : [broker-1] Exception type : <type 'exceptions.IndexError'>
[1340635795] Warning : [broker-1] Back trace of this kill: Traceback (most recent call last):
 File "/usr/local/shinken/shinken/daemons/brokerdaemon.py", line 247, in manage_brok
  mod.manage_brok(b)
 File "/usr/local/shinken/shinken/basemodule.py", line 232, in manage_brok
  return manage(brok)
 File "/usr/local/shinken/shinken/modules/graphite_broker.py", line 142, in manage_service_check_result_brok
  couples = self.get_metric_and_value(perf_data)
 File "/usr/local/shinken/shinken/modules/graphite_broker.py", line 104, in get_metric_and_value
  name_value = { name : elts[0], name+'_warn' : elts[1], name+'_crit' : elts[2] }
IndexError: list index out of range
and the Graphs tab say
Code:
No graphs, sorry
.

With more tests, the perfdata from another tests seem to get the same result:
  • [li]check_windows_disks_io[/li]

Code:
'_PercentIdleTimeF:'=100; '_PercentBusyTimeF:'=0; '_PercentDiskTimeF:'=0; '_PercentDiskReadTimeF:'=0; '_PercentDiskWriteTimeF:'=0; '_DiskReadBytesPersecF:'=20; '_DiskReadsPersecF:'=0; '_DiskWriteBytesPersecF:'=51; '_DiskWritesPersecF:'=0; 'CurrentDiskQueueLengthF:'=0; '_AvgDiskQueueLengthF:'=0.0; '_AvgDiskReadQueueLengthF:'=0.0; '_AvgDiskWriteQueueLengthF:'=0.0; '_PercentIdleTimeZ:'=100; '_PercentBusyTimeZ:'=0; '_PercentDiskTimeZ:'=0; '_PercentDiskReadTimeZ:'=0; '_PercentDiskWriteTimeZ:'=0; '_DiskReadBytesPersecZ:'=6; '_DiskReadsPersecZ:'=0; '_DiskWriteBytesPersecZ:'=339; '_DiskWritesPersecZ:'=0; 'CurrentDiskQueueLengthZ:'=0; '_AvgDiskQueueLengthZ:'=0.0; '_AvgDiskReadQueueLengthZ:'=0.0; '_AvgDiskWriteQueueLengthZ:'=0.0; '_PercentIdleTimeC:'=100; '_PercentBusyTimeC:'=0; '_PercentDiskTimeC:'=0; '_PercentDiskReadTimeC:'=0; '_PercentDiskWriteTimeC:'=0; '_DiskReadBytesPersecC:'=1059; '_DiskReadsPersecC:'=0; '_DiskWriteBytesPersecC:'=7322; '_DiskWritesPersecC:'=1; 'CurrentDiskQueueLengthC:'=0; '_AvgDiskQueueLengthC:'=0.0; '_AvgDiskReadQueueLengthC:'=0.0; '_AvgDiskWriteQueueLengthC:'=0.0; '_PercentIdleTimeD:'=100; '_PercentBusyTimeD:'=0; '_PercentDiskTimeD:'=0; '_PercentDiskReadTimeD:'=0; '_PercentDiskWriteTimeD:'=0; '_DiskReadBytesPersecD:'=1635; '_DiskReadsPersecD:'=0; '_DiskWriteBytesPersecD:'=350; '_DiskWritesPersecD:'=0; 'CurrentDiskQueueLengthD:'=0; '_AvgDiskQueueLengthD:'=0.0; '_AvgDiskReadQueueLengthD:'=0.0; '_AvgDiskWriteQueueLengthD:'=0.0; '_PercentIdleTime_Total'=100; '_PercentBusyTime_Total'=0; '_PercentDiskTime_Total'=0; '_PercentDiskReadTime_Total'=0; '_PercentDiskWriteTime_Total'=0; '_DiskReadBytesPersec_Total'=2720; '_DiskReadsPersec_Total'=0; '_DiskWriteBytesPersec_Total'=8062; '_DiskWritesPersec_Total'=1; 'CurrentDiskQueueLength_Total'=0; '_AvgDiskQueueLength_Total'=0.0; '_AvgDiskReadQueueLength_Total'=0.0; '_AvgDiskWriteQueueLength_Total'=0.0;
  • [li]check_windows_inactive_ts_sessions[/li]

Code:
'ActiveSessions'=0; 'InactiveSessions'=1;1; 'TotalSessions'=1;
  • [li]check_windows_physical_memory[/li]

Code:
'Physical Memory Used'=570564608Bytes; 'Physical Memory Utilisation'=53%;80;90;
  • [li]and some others...[/li]


Can it be a problem in a problem
  • [li]in Shinken,[/li]
    [li]in the wmi commands in the windows pack,[/li]
    [li]in the check_wmi_plus.pl plugin (installed by ./install -p check_wmi_plus),[/li]
    [li]in Graphite[/li]
    [li]or in my configuration? [/li]

I use the git version of the 19th of June. I've seen there is a little procedure somewhere in order to update. I will try if you think I need it.

By the way, maybe https://github.com/naparuba/shinken/...plications.cfg should have
Code:
service_description EventLogApplication
(now it has the same service_description as https://github.com/naparuba/shinken/...ogs_system.cfg).

Thank you.

Cheers,
David.