Page 2 of 3
Re: Nagios sending multiple notifications insted of one
Posted: Wed Jul 31, 2019 1:39 am
by supportagilita
Hi,
yes is is set.
define contact {
contact_name nagiosadmin
alias Nagios Administrator
host_notifications_enabled 1
service_notifications_enabled 1
host_notification_period xi_timeperiod_24x7
service_notification_period xi_timeperiod_24x7
host_notification_options d,u,
service_notification_options w,c,
host_notification_commands notify-host-by-email
service_notification_commands notify-service-by-email
retain_status_information 1
retain_nonstatus_information 1
email xxx
use xi_contact_generic
}
I'm recieving multiple critical notifications. unknown are disabled anyways. (-t 59 is now added)
i'll send you the rest via PM
Re: Nagios sending multiple notifications insted of one
Posted: Wed Jul 31, 2019 8:24 am
by supportagilita
unfortunate adding the -t 59 parameter to increase the timeout for the check wasnt helpful
Re: Nagios sending multiple notifications insted of one
Posted: Wed Jul 31, 2019 8:57 am
by tgriep
Login to XI and go to the Core Config Manager > Commands menu and edit this commsnd
Change the command line from
Code: Select all
$USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
to
Code: Select all
$USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ $ARG2$
Save the change and edit one of the services and add the following to $ARG2$
Save the change and Apply the Ccnfig.
That will setup a filter for the check to alleviate the unknown error for checking the \Volume partition.
Let is run for a while and see if the issue is resolved.
Re: Nagios sending multiple notifications insted of one
Posted: Sat Aug 03, 2019 3:29 am
by supportagilita
I hope you got the PM ?.
Re: Nagios sending multiple notifications insted of one
Posted: Mon Aug 05, 2019 8:42 am
by tgriep
Sorry, did you send another PM to me? The only one I received is for the nsclient.ini file.
Re: Nagios sending multiple notifications insted of one
Posted: Mon Aug 12, 2019 2:38 am
by supportagilita
Was the last week off.
I've now changed the settings to "-a drive=*"
lets wait for clarification
Re: Nagios sending multiple notifications insted of one
Posted: Mon Aug 12, 2019 8:47 am
by tgriep
Let us know if you have any further questions or that the change worked.
Re: Nagios sending multiple notifications insted of one
Posted: Fri Aug 16, 2019 2:02 am
by supportagilita
Hi all.
Unfortunatly there is no improvement.
What kind of add-infos can I send you for further analysis?
Regards
Re: Nagios sending multiple notifications insted of one
Posted: Fri Aug 16, 2019 8:15 am
by tgriep
Are you still receiving this message when the check runs?
Code: Select all
Check All Disks_1;UNKNOWN;HARD;5;Filter processing failed: Failed to get size for \\?\Volume{92XXXXXXe6963}\: 57: The parameter is incorrect
Or has the message changed to a different output?
Can you post it here so we can view it?
Also, when the message happens, can you get the nsclient.log file from the windows system so we can check it for any errors?
One more thing to try, upgrade to the latest stable 0.5.2.xx version of NSClient++ in case there is a bug.
https://nsclient.org/download/
Re: Nagios sending multiple notifications insted of one
Posted: Tue Aug 20, 2019 4:44 am
by supportagilita
Hi,
yes I'm still recieving those messages.
Aug 20 10:53:36 nagiosxi: SERVICE ALERT: windowsserver;Check All Disks_1;UNKNOWN;SOFT;4;Filter processing failed: Failed to get size for \\?\Volume{04c64a56-290f-11e8-80b4-806e6f6e6963}\: 57: The parameter is incorrect.
If I'm doing it over CLI there are no errors.
/usr/local/nagios/libexec/check_nrpe -H windowsserver -c check_drivesize -t 59 -a drive=*
OK All 3 drive(s) are ok|'C:\ used'=31.46598GB;31.72499;35.69062;0;39.65624 'C:\ used %'=79%;80;90;0;100 'A:\ used'=0B;0;0;0;0 'D:\ used'=0B;0;0;0;0
My nsclient.log lookes like:
2019-08-20 11:22:53: error:c:\source\master\include\socket/connection.hpp:276: Failed to establish secure connection: short read: 219
2019-08-20 11:27:52: error:c:\source\master\include\socket/connection.hpp:276: Failed to establish secure connection: short read: 219
2019-08-20 11:32:51: error:c:\source\master\include\socket/connection.hpp:276: Failed to establish secure connection: asio.ssl error: 219
2019-08-20 11:33:24: error:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:360: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2019-08-20 11:33:24: error:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:360: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2019-08-20 11:33:24: error:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:360: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2019-08-20 11:33:24: error:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:360: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2019-08-20 11:33:24: error:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:360: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2019-08-20 11:37:50: error:c:\source\master\include\socket/connection.hpp:276: Failed to establish secure connection: asio.ssl error: 219
2019-08-20 11:39:18: error:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:360: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2019-08-20 11:39:18: error:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:360: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2019-08-20 11:39:18: error:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:360: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2019-08-20 11:39:18: error:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:360: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
2019-08-20 11:39:18: error:c:\source\master\modules\CheckExternalScripts\CheckExternalScripts.cpp:360: Arguments not allowed in CheckExternalScripts set /settings/external scripts/allow arguments=true
Settings see attachment
I'm running NSCP-0.5.2.35
Regards