Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
dmagniez
bydmagniez, July 20, 2011
I have replaced this code :
$self->{invalidobjects}->{invalid_ind_partitions} =
$self->{handle}->fetchrow_array(q{
SELECT COUNT(DISTINCT STATUS)
FROM dba_ind_partitions
WHERE status 'USABLE'
});
by this one :
$self->{invalidobjects}->{invalid_ind_partitions} =
$self->{handle}->fetchrow_array(q{
SELECT COUNT(DISTINCT STATUS)
FROM dba_ind_partitions
WHERE status 'USABLE' AND status 'N/A'
});
because there was notification about invalid partition, but it was subpartition, reported by "N/A"
$self->{invalidobjects}->{invalid_ind_partitions} =
$self->{handle}->fetchrow_array(q{
SELECT COUNT(DISTINCT STATUS)
FROM dba_ind_partitions
WHERE status 'USABLE'
});
by this one :
$self->{invalidobjects}->{invalid_ind_partitions} =
$self->{handle}->fetchrow_array(q{
SELECT COUNT(DISTINCT STATUS)
FROM dba_ind_partitions
WHERE status 'USABLE' AND status 'N/A'
});
because there was notification about invalid partition, but it was subpartition, reported by "N/A"
I had to change some parameters in my commands :
[NRPE Handlers]
command[cmd]=$ARG1$
check_mailbox_health=cmd /c echo scriptsexchangeMailboxHealth.ps1 | PowerShell.exe -Command -
check_public_folders=cmd /c echo scriptsexchangePublicFoldersMounted.ps1 | PowerShell.exe -Command -
[NRPE]
command_timeout=180
because this script execute in more than 60 sec !
in centreon :
$USER1$/check_nrpe -H $HOSTADDRESS$ -u -c $ARG1$ -a $ARG2$ -t 180
with arg :
!check_mailbox_health!
[NRPE Handlers]
command[cmd]=$ARG1$
check_mailbox_health=cmd /c echo scriptsexchangeMailboxHealth.ps1 | PowerShell.exe -Command -
check_public_folders=cmd /c echo scriptsexchangePublicFoldersMounted.ps1 | PowerShell.exe -Command -
[NRPE]
command_timeout=180
because this script execute in more than 60 sec !
in centreon :
$USER1$/check_nrpe -H $HOSTADDRESS$ -u -c $ARG1$ -a $ARG2$ -t 180
with arg :
!check_mailbox_health!