Hi,
I’m trying to upgrading my actual nagios server(PEGASUS) for a new nagios server (ASCLEPIUS) because the new machine to nagios is a XEN VM.
the actual server is a nagios 1.2 on Redhat 9 with:
[blockquote]
[root@PEGASUS etc]# rpm -qa | grep nagios
nagios-plugins-nrpe-2.0-3.rh90.dag
nagios-nrpe-2.0-3.rh90.dag
[root@PEGASUS etc]#
[/blockquote]
This server works fine, have no problems.
the future server is a nagios 2.9 on RedHat EL 5.1 x86_64 with:
[blockquote]
[root@asclepius ~]# rpm -qa | grep nagios
nagios-plugins-tcp-1.4.6-3.el5
nagios-plugins-load-1.4.6-3.el5
nagios-plugins-swap-1.4.6-3.el5
nagios-plugins-hpjd-1.4.6-3.el5
nagios-plugins-perl-1.4.6-3.el5
nagios-plugins-sensors-1.4.6-3.el5
nagios-plugins-nt-1.4.6-3.el5
nagios-plugins-ping-1.4.6-3.el5
nagios-plugins-nagios-1.4.6-3.el5
nagios-plugins-mrtg-1.4.6-3.el5
nagios-plugins-oracle-1.4.6-3.el5
nagios-plugins-file_age-1.4.6-3.el5
nagios-plugins-game-1.4.6-3.el5
nagios-plugins-pgsql-1.4.6-3.el5
nagios-plugins-users-1.4.6-3.el5
nagios-plugins-icmp-1.4.6-3.el5
nagios-2.9-1.el5
nagios-plugins-ups-1.4.6-3.el5
nagios-plugins-apt-1.4.6-3.el5
nagios-plugins-by_ssh-1.4.6-3.el5
nagios-plugins-ntp-1.4.6-3.el5
nagios-plugins-snmp-1.4.6-3.el5
nagios-plugins-log-1.4.6-3.el5
nagios-plugins-mailq-1.4.6-3.el5
nagios-plugins-udp-1.4.6-3.el5
nagios-plugins-nrpe-2.7-3.el5
nagios-plugins-1.4.6-3.el5
nagios-plugins-mysql-1.4.6-3.el5
nagios-plugins-dummy-1.4.6-3.el5
nagios-plugins-disk-1.4.6-3.el5
nagios-plugins-ssh-1.4.6-3.el5
nagios-plugins-smtp-1.4.6-3.el5
nagios-plugins-ide_smart-1.4.6-3.el5
nagios-plugins-dhcp-1.4.6-3.el5
nagios-plugins-nwstat-1.4.6-3.el5
nagios-plugins-overcr-1.4.6-3.el5
nagios-plugins-disk_smb-1.4.6-3.el5
nagios-plugins-wave-1.4.6-3.el5
nagios-plugins-breeze-1.4.6-3.el5
nagios-plugins-procs-1.4.6-3.el5
nagios-plugins-dig-1.4.6-3.el5
nagios-plugins-http-1.4.6-3.el5
nagios-plugins-mrtgtraf-1.4.6-3.el5
nagios-plugins-linux_raid-1.4.6-3.el5
nagios-plugins-rpc-1.4.6-3.el5
nagios-plugins-dns-1.4.6-3.el5
nagios-plugins-ldap-1.4.6-3.el5
nagios-plugins-real-1.4.6-3.el5
nagios-plugins-time-1.4.6-3.el5
nagios-plugins-flexlm-1.4.6-3.el5
nagios-plugins-ircd-1.4.6-3.el5
[root@asclepius ~]#
[/blockquote]
I review the cfg files from the actual server and create a new one with all configurations ( contacts, contactgroups, hosts, hostgroups, commands, services, ) and starts Nagios fine with no errors and no warnings.
[blockquote]
[root@asclepius nagios]# nagios -v nagios.cfg
Nagios 2.9
Copyright (c) 1999-2007 Ethan Galstad (nagios.org)
Last Modified: 04-10-2007
License: GPL
Reading configuration data…
Running pre-flight check on configuration data…
Checking services…
Checked 379 services.
Checking hosts…
Checked 29 hosts.
Checking host groups…
Checked 5 host groups.
Checking service groups…
Checked 0 service groups.
Checking contacts…
Checked 4 contacts.
Checking contact groups…
Checked 3 contact groups.
Checking service escalations…
Checked 0 service escalations.
Checking service dependencies…
Checked 0 service dependencies.
Checking host escalations…
Checked 0 host escalations.
Checking host dependencies…
Checked 0 host dependencies.
Checking commands…
Checked 41 commands.
Checking time periods…
Checked 7 time periods.
Checking extended host info definitions…
Checked 0 extended host info definitions.
Checking extended service info definitions…
Checked 0 extended service info definitions.
Checking for circular paths between hosts…
Checking for circular host and service dependencies…
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
[root@asclepius nagios]#
[/blockquote]
My nagios starts monitor from ping ok, routers and windows services ok too, but Unix servers aren’t ok.
I have 4 HP-UX that i check cpu, disks, memmory, Oracle tablespace, … i check all this services on HP-UX with NRPE plugin.
at HP-UX i have nrpe 1.8 .
I read many documentations that says nrpe 1.8 and 2.0 are imcompatibles, but the actual nagios server (PEGASUS) can get all informations with no problem.
at PEGASUS nagios server i have “nagios-plugins-nrpe-2.0-3 and nagios-plugins-nrpe-2.0-3” and works fine with HP-UX nrpe 1.8.
at ASCLEPIUS nagios server (the new server) i have “nagios-plugins-nrpe-2.7-3 and nrpe-2.7-3.el5” and do cannot check services on HP-UX.
At nrpe.cfg file from the unix i change the line
[blockquote]
allowed_hosts=192.168.1.22
[/blockquote]
to
[blockquote]
allowed_hosts=192.168.1.22,192.168.1.122
[/blockquote]
where 192.168.1.22 are PEGASUS and 192.168.1.122 are ASCLEPIUS (the old and the new server), and after i reload the service with daemon standalone. Its do not fix the problem. i change the allowed_hosts only to Asclepiuss:
[blockquote]
allowed_hosts=192.168.1.122
[/blockquote]
At log from HP-UX i see:
[blockquote]
Nov 26 17:13:34 isis nrpe[26922]: Host 192.168.1.122 is not allowed to talk to us!
[/blockquote]
Then i tried to install old versions from nrpe to test:
"nagios-nrpe-2.0-3.2.el4.rf.x86_64 and nagios-plugins-nrpe-2.0-3.2.el4.rf.x86_64 "
The problem aren’t solved so i roll back the versions “nagios-plugins-nrpe-2.7-3 and nrpe-2.7-3.el5”.
At command line from Asclepius i run:
[blockquote]
[root@asclepius nagios]# /usr/lib64/nagios/plugins/check_nrpe -H 192.168.1.2 -n
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
[root@asclepius nagios]#
[/blockquote]
and
[blockquote]
[root@asclepius nagios]# /usr/lib64/nagios/plugins/check_nrpe -H 192.168.1.2
CHECK_NRPE: Error - Could not complete SSL handshake.
[root@asclepius nagios]#
[/blockquote]
My nrpe_check aren’t over ssl.
From my nagios.log at asclepius i have:
[blockquote]
…
[1196080284] SERVICE ALERT: anubis;/;UNKNOWN;SOFT;1;Incorrect command line arguments supplied
[1196080294] SERVICE ALERT: isis;/EXPORT;UNKNOWN;SOFT;1;Incorrect command line arguments supplied
[1196080304] SERVICE ALERT: osiris;/ERPPRD/DATA1;UNKNOWN;SOFT;1;Incorrect command line arguments supplied
[1196080314] SERVICE ALERT: osiris;/ERPPRD/INDEX4;UNKNOWN;SOFT;1;Incorrect command line arguments supplied
[1196080314] SERVICE ALERT: osiris;/PERFORMANCE;UNKNOWN;SOFT;1;Incorrect command line arguments supplied
[1196080344] SERVICE ALERT: anubis;/;UNKNOWN;SOFT;2;Incorrect command line arguments supplied
[1196080354] SERVICE ALERT: isis;/EXPORT;UNKNOWN;SOFT;2;Incorrect command line arguments supplied
[1196080364] SERVICE ALERT: osiris;/ERPPRD/DATA1;UNKNOWN;SOFT;2;Incorrect command line arguments supplied
[1196080374] SERVICE ALERT: osiris;/ERPPRD/INDEX4;UNKNOWN;SOFT;2;Incorrect command line arguments supplied
[1196080374] SERVICE ALERT: osiris;/PERFORMANCE;UNKNOWN;SOFT;2;Incorrect command line arguments supplied
[1196080384] SERVICE ALERT: osiris;ERPPRD_TEMP;UNKNOWN;SOFT;1;Incorrect command line arguments supplied
[1196080394] SERVICE ALERT: seth;/ERPQAS/DATA5;UNKNOWN;SOFT;1;Incorrect command line arguments supplied
[1196080404] SERVICE ALERT: anubis;/;UNKNOWN;HARD;3;Incorrect command line arguments supplied
[1196080404] SERVICE NOTIFICATION: producao;anubis;/;UNKNOWN;notify-by-email;Incorrect command line arguments supplied
[1196080404] SERVICE ALERT: seth;/ERPQAS/RBS1;UNKNOWN;SOFT;1;Incorrect command line arguments supplied
[1196080404] SERVICE ALERT: seth;/TMSDEV/INDEX1;UNKNOWN;SOFT;1;Incorrect command line arguments supplied
[1196080414] SERVICE ALERT: seth;/WISDEV/LOG;UNKNOWN;SOFT;1;Incorrect command line arguments supplied
[1196080414] SERVICE ALERT: isis;/EXPORT;UNKNOWN;HARD;3;Incorrect command line arguments supplied
[1196080414] SERVICE NOTIFICATION: producao;isis;/EXPORT;UNKNOWN;notify-by-email;Incorrect command line arguments supplied
[1196080424] SERVICE ALERT: anubis;/EXPORT;UNKNOWN;SOFT;1;Incorrect command line arguments supplied
[1196080424] SERVICE ALERT: osiris;/ERPPRD/DATA1;UNKNOWN;HARD;3;Incorrect command line arguments supplied
[1196080434] SERVICE ALERT: isis;/HOME;UNKNOWN;SOFT;1;Incorrect command line arguments supplied
[1196080434] SERVICE ALERT: osiris;/ERPPRD/INDEX4;UNKNOWN;HARD;3;Incorrect command line arguments supplied
[1196080434] SERVICE ALERT: osiris;/PERFORMANCE;UNKNOWN;HARD;3;Incorrect command line arguments supplied
[1196080434] SERVICE NOTIFICATION: producao;osiris;/PERFORMANCE;UNKNOWN;notify-by-email;Incorrect command line arguments supplied
[1196080444] SERVICE ALERT: osiris;ERPPRD_TEMP;UNKNOWN;SOFT;2;Incorrect command line arguments supplied
[1196080444] SERVICE ALERT: osiris;/ERPPRD/DATA10;UNKNOWN;SOFT;1;Incorrect command line arguments supplied
[1196080454] SERVICE ALERT: osiris;/ERPPRD/INDEX5;UNKNOWN;SOFT;1;Incorrect command line arguments supplied
[1196080454] SERVICE ALERT: seth;/ERPQAS/DATA5;UNKNOWN;SOFT;2;Incorrect command line arguments supplied
[1196080454] SERVICE ALERT: osiris;/STAND;UNKNOWN;SOFT;1;Incorrect command line arguments supplied
[1196080464] SERVICE ALERT: seth;/ERPQAS/RBS1;UNKNOWN;SOFT;2;Incorrect command line arguments supplied
[1196080464] SERVICE ALERT: seth;/TMSDEV/INDEX1;UNKNOWN;SOFT;2;Incorrect command line arguments supplied
[1196080474] SERVICE ALERT: seth;/WISDEV/LOG;UNKNOWN;SOFT;2;Incorrect command line arguments supplied
[1196080484] SERVICE ALERT: anubis;/EXPORT;UNKNOWN;SOFT;2;Incorrect command line arguments supplied
[1196080494] SERVICE ALERT: isis;/HOME;UNKNOWN;SOFT;2;Incorrect command line arguments supplied
[1196080504] SERVICE ALERT: osiris;ERPPRD_TEMP;UNKNOWN;HARD;3;Incorrect command line arguments supplied
[1196080504] SERVICE NOTIFICATION: producao;osiris;ERPPRD_TEMP;UNKNOWN;notify-by-email;Incorrect command line arguments supplied
…
[/blockquote]
i attach 2 images from nagios on Asclepius.
Someone can help-me to finish this upgrade??
Thanks for all.