Box923
That worked no issues all Day
I have just one more question on this
I have several servers with more than one drive and I added them to my cfg file but I got duplicate warnings on all of them
root@TGCS017:/usr/lib/nagios/plugins# /usr/local/nagios/bin/nagios -vv /usr/local/nagios/etc/nagios.cfg
Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
License: GPL
Website:
https://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config file '/usr/local/nagios/etc/objects/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/templates.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/localhost.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/windows.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/computer.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/switch.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/printer.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/nrpe.cfg'...
Warning: Duplicate definition found for service 'Check Disk Usage' on host 'TGCS025' (config file '/usr/local/nagios/etc/objects/nrpe.cfg', starting on line 260)
Warning: Duplicate definition found for service 'Check Disk Usage' on host 'TGCS025' (config file '/usr/local/nagios/etc/objects/nrpe.cfg', starting on line 253)
Warning: Duplicate definition found for service 'Check Disk Usage' on host 'TGCS025' (config file '/usr/local/nagios/etc/objects/nrpe.cfg', starting on line 246)
Warning: Duplicate definition found for service 'Check Disk Usage' on host 'TGCS016' (config file '/usr/local/nagios/etc/objects/nrpe.cfg', starting on line 232)
Warning: Duplicate definition found for service 'Check Disk Usage' on host 'TGCS016' (config file '/usr/local/nagios/etc/objects/nrpe.cfg', starting on line 225)
Warning: Duplicate definition found for service 'Check Disk Usage' on host 'TGCS014' (config file '/usr/local/nagios/etc/objects/nrpe.cfg', starting on line 204)
Warning: Duplicate definition found for service 'Check Disk Usage' on host 'TGCS013' (config file '/usr/local/nagios/etc/objects/nrpe.cfg', starting on line 190)
Warning: Duplicate definition found for service 'Check Disk Usage' on host 'TGCS013' (config file '/usr/local/nagios/etc/objects/nrpe.cfg', starting on line 183)
Warning: Duplicate definition found for service 'Check Disk Usage' on host 'TGCS013' (config file '/usr/local/nagios/etc/objects/nrpe.cfg', starting on line 176)
Warning: Duplicate definition found for service 'Check Disk Usage' on host 'TGCS013' (config file '/usr/local/nagios/etc/objects/nrpe.cfg', starting on line 169)
Warning: Duplicate definition found for service 'Check Disk Usage' on host 'TGCS012' (config file '/usr/local/nagios/etc/objects/nrpe.cfg', starting on line 155)
Warning: Duplicate definition found for service 'Check Disk Usage' on host 'TGCS012' (config file '/usr/local/nagios/etc/objects/nrpe.cfg', starting on line 148)
Warning: Duplicate definition found for service 'Check Disk Usage' on host 'TGCS012' (config file '/usr/local/nagios/etc/objects/nrpe.cfg', starting on line 141)
Warning: Duplicate definition found for service 'Check Disk Usage' on host 'TGCS011' (config file '/usr/local/nagios/etc/objects/nrpe.cfg', starting on line 127)
Warning: Duplicate definition found for service 'Check Disk Usage' on host 'TGCS011' (config file '/usr/local/nagios/etc/objects/nrpe.cfg', starting on line 120)
Warning: Duplicate definition found for service 'Check Disk Usage' on host 'TGCS010' (config file '/usr/local/nagios/etc/objects/nrpe.cfg', starting on line 106)
Warning: Duplicate definition found for service 'Check Disk Usage' on host 'TGCS010' (config file '/usr/local/nagios/etc/objects/nrpe.cfg', starting on line 99)
Warning: Duplicate definition found for service 'Check Disk Usage' on host 'TGCS010' (config file '/usr/local/nagios/etc/objects/nrpe.cfg', starting on line 92)
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 728 services.
Checked 25 hosts.
Checked 5 host groups.
Checked 0 service groups.
Checked 2 contacts.
Checked 1 contact groups.
Checked 25 commands.
Checked 6 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 25 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 6 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
It works well with the Drive=C:
How do I check the other drives?
Thanks
Tom
Update
After adding on my computers to this all worked except for two of them both of them are 32 bit computers one is Windows XP Pro the other is Windows 2003 Server
Get this error CHECK_NRPE: Error - Could not complete SSL handshake.
Does NRPE work with 32 bit computers?
ran this from console
root@TGCS017:/usr/lib/nagios/plugins# ./check_nrpe -H 10.2.8.75 -t 30 -c CheckDriveSize -a ShowAll=long MinWarn =20% MinCrit=10% Drive=C: perf-unit=G
CHECK_NRPE: Error - Could not complete SSL handshake.
root@TGCS017:/usr/lib/nagios/plugins# ./check_nrpe -H 10.2.8.12 -t 30 -c CheckDriveSize -a ShowAll=long MinWarn =20% MinCrit=10% Drive=C: perf-unit=G
CHECK_NRPE: Error - Could not complete SSL handshake.
Thanks