LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-03-2009, 02:53 AM   #1
nishith
Member
 
Registered: Aug 2008
Posts: 148

Rep: Reputation: 15
Smile Nagios - No output returned from plugin


* Edit post
* Report this post
* Reply with quote

No output returned from plugin

Postby nishith 02 Jul 2009 15:48
Hello Friends,

By searching a huge information database on the Internet,finally I am asking you to give me solution to configure NRPE for AIX. Please check below steps for detailed information.

1) Configured Nagios Server 3.0.6 on CentOS 5.2 & it is working fine with normal commands. I am getting localhost "Disk Usage, Memory, Swap Space etc..."

2) I have 3 nos.of AIX 5.3 OS & all AIX Servers are connected with my CentOS 5.2 in a same LAN Switch. I can ping & ssh locally & i have configured check_ssh , check_ftp , check_http services on my CentOS to monitor AIX Servers.

3) Now, I though to install NRPE on AIX 5.3,so that I can get better AIX Server Output like ... Disk Usage,Swap Usage,CPU Load, Online Users.

4) For that,i have downloaded AIX compiled patch from below listed URL
http://www.monitoringexchange.org/cgi-b ... 9.html;d=1

I have copied all tar files,which i download onto AIX Servers & did all things as mentioned in "howto.txt" file.

5) All plugins on AIX is working locally.Check below result.

/usr/local/nagios/libexec/check_swap -w 30% -c 10%
SWAP OK - 100% free (41057 MB out of 41472 MB) |swap=41057MB;12441;4147;0;41472

Now, from Nagios Server Side, executing the same command,giving me an error.
./check_nrpe -n -H 10.100.19.86 -c check_swap -t 30
NRPE: Command 'check_swap' not defined

6) On the Nagios Web Interface,i am getting error of :- No output returned from plugin
Kindly check attached snap1.jpg

7) I have configured nagios server 3.0.2 & NRPE version 2.12 on AIX,which is tested as per the "nagios exchange" community. Then, why i am getting this error?

8) Some Command output of AIX PC.(Which is NRPE installed)
---
ps -ef | grep nrpe
nagios 164070 1 0 17:23:41 - 0:01 /usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg -d
---
Some Important Command Outputs :-

If I type below command from centos nagios server to aix nrpe client, i am getting below message.
----------------------------
/usr/local/nagios/libexec/check_nrpe -H <AIX PC IP> -c check_load -t 30
CHECK_NRPE: Error - Could not complete SSL handshake.
----------------------------
/usr/local/nagios/libexec/check_nrpe -H <AIX PC IP> -c check_load -t 30 -n
NRPE: Command 'check_load' not defined
----------------------------
/usr/local/nagios/libexec/check_nrpe -n -H localhost
CHECK_NRPE: Error receiving data from daemon.
----------------------------
./check_nrpe -H localhost
NRPE v2.12
----------------------------
[b]telnet <aix pc> 5666
Trying 10.100.19.86...
Connected to gjvatwb1 (10.100.19.86).
Escape character is '^]'.

It means, AIX NRPE is working fine???
----------------------------
netstat -at | grep nrpe
tcp 0 0 *:nrpe *:* LISTEN
----------------------------
telnet <centos pc> 5666
Trying 127.0.0.1
Connected to localhost (127.0.0.1)
Escape character is '^]'.
----------------------------
nagios server's command.cfg file details.


define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -n -H $HOSTADDRESS$ -w $ARG1$
}

without -n , my nagios server can't fetch data from aix pc.
----------------------------
nagios server's switch.cfg file details.

define service{
use generic-service ; Inherit values from a template
host_name gjvatwb1 ; The name of the host the service is associated with
service_description Swap Space ; The service description
check_command check_nrpe!check_swap ; The command used to monitor the service
normal_check_interval 5 ; Check the service every 5 minutes under normal conditions
retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined
}

Same service configuration for check_disk , check_users & check_load , !!!!!!! But, all services are giving same error.
I have configured "nrpe 2.12.tar.gz" plugin on centos as per the documentation provided in the nagios.pdf format.


Kindly suggest me what is the solution for this error? I tried my best to find out hundreds of links on the internet,but got nothing.



Advanced Thanks,
Nishith Vyas
Attached Thumbnails
Click image for larger version

Name:	snap1.jpg
Views:	101
Size:	198.5 KB
ID:	930  
 
Old 07-03-2009, 05:36 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by nishith View Post
* Edit post
* Report this post
* Reply with quote

No output returned from plugin

Postby nishith 02 Jul 2009 15:48
Hello Friends,

By searching a huge information database on the Internet,finally I am asking you to give me solution to configure NRPE for AIX. Please check below steps for detailed information.

1) Configured Nagios Server 3.0.6 on CentOS 5.2 & it is working fine with normal commands. I am getting localhost "Disk Usage, Memory, Swap Space etc..."

2) I have 3 nos.of AIX 5.3 OS & all AIX Servers are connected with my CentOS 5.2 in a same LAN Switch. I can ping & ssh locally & i have configured check_ssh , check_ftp , check_http services on my CentOS to monitor AIX Servers.

3) Now, I though to install NRPE on AIX 5.3,so that I can get better AIX Server Output like ... Disk Usage,Swap Usage,CPU Load, Online Users.

4) For that,i have downloaded AIX compiled patch from below listed URL
http://www.monitoringexchange.org/cgi-b ... 9.html;d=1

I have copied all tar files,which i download onto AIX Servers & did all things as mentioned in "howto.txt" file.

5) All plugins on AIX is working locally.Check below result.

/usr/local/nagios/libexec/check_swap -w 30% -c 10%
SWAP OK - 100% free (41057 MB out of 41472 MB) |swap=41057MB;12441;4147;0;41472

Now, from Nagios Server Side, executing the same command,giving me an error.
./check_nrpe -n -H 10.100.19.86 -c check_swap -t 30
NRPE: Command 'check_swap' not defined

6) On the Nagios Web Interface,i am getting error of :- No output returned from plugin
Kindly check attached snap1.jpg

7) I have configured nagios server 3.0.2 & NRPE version 2.12 on AIX,which is tested as per the "nagios exchange" community. Then, why i am getting this error?

8) Some Command output of AIX PC.(Which is NRPE installed)
---
ps -ef | grep nrpe
nagios 164070 1 0 17:23:41 - 0:01 /usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg -d
---
Some Important Command Outputs :-

If I type below command from centos nagios server to aix nrpe client, i am getting below message.
----------------------------
/usr/local/nagios/libexec/check_nrpe -H <AIX PC IP> -c check_load -t 30
CHECK_NRPE: Error - Could not complete SSL handshake.
----------------------------
/usr/local/nagios/libexec/check_nrpe -H <AIX PC IP> -c check_load -t 30 -n
NRPE: Command 'check_load' not defined
----------------------------
/usr/local/nagios/libexec/check_nrpe -n -H localhost
CHECK_NRPE: Error receiving data from daemon.
----------------------------
./check_nrpe -H localhost
NRPE v2.12
----------------------------
[b]telnet <aix pc> 5666
Trying 10.100.19.86...
Connected to gjvatwb1 (10.100.19.86).
Escape character is '^]'.

It means, AIX NRPE is working fine???
----------------------------
netstat -at | grep nrpe
tcp 0 0 *:nrpe *:* LISTEN
----------------------------
telnet <centos pc> 5666
Trying 127.0.0.1
Connected to localhost (127.0.0.1)
Escape character is '^]'.
----------------------------
nagios server's command.cfg file details.


define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -n -H $HOSTADDRESS$ -w $ARG1$
}

without -n , my nagios server can't fetch data from aix pc.
----------------------------
nagios server's switch.cfg file details.

define service{
use generic-service ; Inherit values from a template
host_name gjvatwb1 ; The name of the host the service is associated with
service_description Swap Space ; The service description
check_command check_nrpe!check_swap ; The command used to monitor the service
normal_check_interval 5 ; Check the service every 5 minutes under normal conditions
retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined
}

Same service configuration for check_disk , check_users & check_load , !!!!!!! But, all services are giving same error.
I have configured "nrpe 2.12.tar.gz" plugin on centos as per the documentation provided in the nagios.pdf format.


Kindly suggest me what is the solution for this error? I tried my best to find out hundreds of links on the internet,but got nothing.



Advanced Thanks,
Nishith Vyas

sorry but such a long post and not enough time to read it properly
i skimmed through.
i will say that 'check not defined' errors on the nrpe checks mean one of several things.

the actual check plugin is not installed locally (aix servers)
the path to the plugin is wrong
the plugin is not executable
the plugin is not referenced in nrpe.cfg

if all the is not true and all is ok, the next step is to restart nrpe so it has noticed all the changes and reread the nrpe.cfg file.


yes with nrpe you have to throw in the -n if you are not doing checks over ssl which you are not, and every remote nrpe check would need to have a -c in it so it knows which command to execute when it connects to the remote server.
you should be able to get the correct response running the nrpe checks from the command line on the nagios server only if you are using the correct syntax


i have had many a battle with nagios and have faced these sort of issues on a regular basis
if you still have issues, feel free to pm me, but of course with much shorter and sweeter explanations

Last edited by centosboy; 07-03-2009 at 05:45 AM.
 
Old 07-03-2009, 05:47 AM   #3
nishith
Member
 
Registered: Aug 2008
Posts: 148

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by centosboy View Post
sorry but such a long post and not enough time to read it properly
i skimmed through.
i will say that 'check not defined' errors on the nrpe checks mean one of several things.

the actual check plugin is not installed locally (aix servers)
the path to the plugin is wrong
the plugin is not executable
the plugin is not referenced in nrpe.cfg

if all the is not true and all is ok, the next step is to restart nrpe so it has noticed all the changes and reread the nrpe.cfg file.


i have had many a battle with nagios and have faced these sort of issues on a regular basis
if you still have issues, feel free to pm me, but of course with much shorter and sweeter explanations
Dear Friend,
As you have a good battle over nagios, it would be great for me to learn from you.

Please Check my another forum & give me the feedback.my 2nd question is in nice format.
 
Old 07-03-2009, 05:58 AM   #4
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by nishith View Post
Dear Friend,
As you have a good battle over nagios, it would be great for me to learn from you.

Please Check my another forum & give me the feedback.my 2nd question is in nice format.
yes but have you checked all i suggested?
if the problems are too much to deal with, i suggest you try FAN

Code:
hxxp://fannagioscd.sourceforge.net/drupal/?q=node/4
 
Old 07-03-2009, 06:53 AM   #5
nishith
Member
 
Registered: Aug 2008
Posts: 148

Original Poster
Rep: Reputation: 15
Question

Quote:
Originally Posted by centosboy View Post
yes but have you checked all i suggested?
if the problems are too much to deal with, i suggest you try FAN

Code:
hxxp://fannagioscd.sourceforge.net/drupal/?q=node/4
Dear Friend,

FAN seems good but i need to check the compatibility,because it is in ISO format.

But, My Main question is still there. Because if NRPE is not working properly on Remote Clinet computers,how can i get +ve result by using FAN?

But, FAN tool is really god & soon will rock the NMS environment.

What you think?

Have you checked my another post?
 
Old 07-03-2009, 07:00 AM   #6
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by nishith View Post
Dear Friend,

FAN seems good but i need to check the compatibility,because it is in ISO format.

But, My Main question is still there. Because if NRPE is not working properly on Remote Clinet computers,how can i get +ve result by using FAN?

But, FAN tool is really god & soon will rock the NMS environment.

What you think?

Have you checked my another post?
i responded to that but you didnt confirm if you have gone thru my small checklist i left and what the outcome was.

yes fan is great. it is a minimal centos install.
yes it is an iso, but you can mount these on any linux system, then possible do a remote install
 
Old 07-04-2009, 02:24 AM   #7
nishith
Member
 
Registered: Aug 2008
Posts: 148

Original Poster
Rep: Reputation: 15
After FAN Installation.

Quote:
Originally Posted by centosboy View Post
i responded to that but you didnt confirm if you have gone thru my small checklist i left and what the outcome was.

yes fan is great. it is a minimal centos install.
yes it is an iso, but you can mount these on any linux system, then possible do a remote install
Dear Friend,

I have downloaded an ISO FAN 1.1 & installed on my new PC. Installation completed without any error but during installation, FAN OS didn't ask me to select any package.

After installation, i didn't get any GUI (Gnome or kde) screen & it gave me an error as shown below.

"respawning too fast disabled for 5 minutes"

I tried my best to modify /etc/inittab & /etc/X11/xorg.conf files, But nothing was serious.

One point i noted that is i didn't found
"lrwxrwxrwx 1 root root 18 2009-06-30 11:39 X -> ../../usr/bin/Xorg"

file,which is necessary for X Display.

Kindly let me know if FAN 1.1 is having any problem of display.
 
Old 07-04-2009, 04:56 AM   #8
nishith
Member
 
Registered: Aug 2008
Posts: 148

Original Poster
Rep: Reputation: 15
Cool Reply of your query.

Dear Friend,

My problem is I am getting response from my client server. I have 2 linux machines,configured with nagios,nrpe & nrpe plugin. I did all as per the nagios offficial documentation.

Now, Please note that CentOS is my nagios monitoring server & Fedora is my nrpe client. i need to get all data from fedora linux through NRPE.

here is the output.

CentOS Output :-

/usr/local/nagios/libexec/check_load -w 1,2,3 -c 2,3,4
OK - load average: 0.09, 0.16, 0.23|load1=0.090;1.000;2.000;0; load5=0.160;2.000;3.000;0; load15=0.230;3.000;4.000;0;

grep check_load /usr/local/nagios/etc/nrpe.cfg
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
#command[check_load]=/usr/local/nagios/libexec/check_load -w $ARG1$ -c $ARG2$

/bin/su - nagios -c "/usr/local/nagios/libexec/check_load -w 1,2,3 -c 2,3,4"
OK - load average: 0.04, 0.14, 0.22|load1=0.040;1.000;2.000;0; load5=0.140;2.000;3.000;0; load15=0.220;3.000;4.000;0;

telnet localhost 5666
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.

netstat -at | grep nrpe
tcp 0 0 *:nrpe *:* LISTEN

But, no output i am getting by typing
netstat -at | grep 5666

Now,Fedora NRPE Client PC Output shown below.

/usr/local/nagios/libexec/check_load -w 1,2,3 -c 2,3,4
OK - load average: 0.01, 0.02, 0.00|load1=0.010;1.000;2.000;0; load5=0.020;2.000;3.000;0; load15=0.000;3.000;4.000;0;

grep check_load /usr/local/nagios/etc/nrpe.cfg
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
#command[check_load]=/usr/local/nagios/libexec/check_load -w $ARG1$ -c $ARG2$

/bin/su - nagios -c "/usr/local/nagios/libexec/check_load -w 1,2,3 -c 2,3,4"
OK - load average: 0.00, 0.02, 0.00|load1=0.000;1.000;2.000;0; load5=0.020;2.000;3.000;0; load15=0.000;3.000;4.000;0;

But,

telnet localhost 5666 is not working.See Below.
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.

Telnet from fedora client to centos pc,working fine. See Below
telnet <centos ip> 5666
Trying 203.77.197.118...
Connected to 203.77.197.118.
Escape character is '^]'.

What else i need to check?

????????????????????
 
Old 07-05-2009, 09:04 AM   #9
nishith
Member
 
Registered: Aug 2008
Posts: 148

Original Poster
Rep: Reputation: 15
Thumbs down Any Luck.!!!!!!!!!!!!!

Anyone is having proper answer of my query? I am still in problem......
 
Old 07-06-2009, 03:22 AM   #10
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by nishith View Post
Anyone is having proper answer of my query? I am still in problem......
Forget fan for now as we would be drifting from the main query.
Mate, the command to check the remote host from the server will be different if using nrpe.
First you have to decide if you are going to use nrpe. I dont see why you should if only monitoring 3 hosts...but if you must, test the check command from the command line of the server. The command you supplied above is NOT using nrpe. You must test the nrpe command from the command line as the nagios user on the server, and also on the remote host. If this works, then the problem is in the nagios config.

We have to get one thing clear..which i dont think you are understanding.
Above you are grepping nrpe.cfg on the remote host, but on the server you are not running check_nrpe command. I think there is some confusion on your part. The real command from the remote server will start as check_nrpe. Here is an example from one of my boxes.

checking memory usage stats:

in services.cfg


Code:
check_command           check_nrpe!check_mem!65!70
and in nrpe.cfg on remote server

Code:
command[check_mem]=/usr/local/nagios/libexec/check_mem -w $ARG1$ -c $ARG2$
command line check from server and output
Code:
../libexec/check_nrpe -n -H client -c check_mem -a 60 75
WARNING: 70% Used Memory | MemUsed=70%;60;75

command line check from client and output
Code:
[root@client ]# /usr/local/nagios/libexec/check_mem  -w 70 -c 80
OK: 69% Used Memory | MemUsed=69%;70;80
Hopefully this short example should help you out.
 
Old 07-07-2009, 02:05 AM   #11
nishith
Member
 
Registered: Aug 2008
Posts: 148

Original Poster
Rep: Reputation: 15
Lightbulb My Nagios Configuration.

Quote:
Originally Posted by centosboy View Post
Forget fan for now as we would be drifting from the main query.
Mate, the command to check the remote host from the server will be different if using nrpe.
First you have to decide if you are going to use nrpe. I dont see why you should if only monitoring 3 hosts...but if you must, test the check command from the command line of the server. The command you supplied above is NOT using nrpe. You must test the nrpe command from the command line as the nagios user on the server, and also on the remote host. If this works, then the problem is in the nagios config.

We have to get one thing clear..which i dont think you are understanding.
Above you are grepping nrpe.cfg on the remote host, but on the server you are not running check_nrpe command. I think there is some confusion on your part. The real command from the remote server will start as check_nrpe. Here is an example from one of my boxes.

checking memory usage stats:

in services.cfg


Code:
check_command           check_nrpe!check_mem!65!70
and in nrpe.cfg on remote server

Code:
command[check_mem]=/usr/local/nagios/libexec/check_mem -w $ARG1$ -c $ARG2$
command line check from server and output
Code:
../libexec/check_nrpe -n -H client -c check_mem -a 60 75
WARNING: 70% Used Memory | MemUsed=70%;60;75

command line check from client and output
Code:
[root@client ]# /usr/local/nagios/libexec/check_mem  -w 70 -c 80
OK: 69% Used Memory | MemUsed=69%;70;80
Hopefully this short example should help you out.

Dear Friend,

Below is the nagios configuration that i did.

Nagios Server :-
In "/usr/local/nagios/etc/objects" directory, i have below listed files.

commands.cfg contacts.cfg localhost.cfg printer.cfg switch.cfg templates.cfg timeperiods.cfg windows.cfg

In commands.cfg,i have made this entry.

define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -n -H $HOSTADDRESS$ -w $ARG1$
}
In switch.cfg,i have made this entry.

define service{
use generic-service ; Inherit values from a template
host_name gjvatwb1 ; The name of the host the service is associated with
service_description CPU Load ; The service description
check_command check_nrpe!check_load ; The command used to monitor the service
normal_check_interval 5 ; Check the service every 5 minutes under normal conditions
retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined
}

Now,

On the client side, "nrpe.cfg" file is having this entry.
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20

Above command Output is working locally. Below is the output.

/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
OK - load average: 0.07, 0.17, 0.10|load1=0.070;15.000;30.000;0; load5=0.170;10.000;25.000;0; load15=0.100;5.000;20.000;0;

But, from server side execution, i got error.

./check_nrpe -n -H 203.77.197.119 -c check_load -n
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.

Tell me if i have any mistakes.........!!!!!!!!!!???????

Waiting.
 
Old 07-08-2009, 03:55 AM   #12
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by nishith View Post
Dear Friend,

Below is the nagios configuration that i did.

Nagios Server :-
In "/usr/local/nagios/etc/objects" directory, i have below listed files.

commands.cfg contacts.cfg localhost.cfg printer.cfg switch.cfg templates.cfg timeperiods.cfg windows.cfg

In commands.cfg,i have made this entry.

define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -n -H $HOSTADDRESS$ -w $ARG1$
}
In switch.cfg,i have made this entry.

define service{
use generic-service ; Inherit values from a template
host_name gjvatwb1 ; The name of the host the service is associated with
service_description CPU Load ; The service description
check_command check_nrpe!check_load ; The command used to monitor the service
normal_check_interval 5 ; Check the service every 5 minutes under normal conditions
retry_check_interval 1 ; Re-check the service every minute until its final/hard state is determined
}

Now,

On the client side, "nrpe.cfg" file is having this entry.
command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20

Above command Output is working locally. Below is the output.

/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
OK - load average: 0.07, 0.17, 0.10|load1=0.070;15.000;30.000;0; load5=0.170;10.000;25.000;0; load15=0.100;5.000;20.000;0;



But, from server side execution, i got error.

./check_nrpe -n -H 203.77.197.119 -c check_load -n
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.



Tell me if i have any mistakes.........!!!!!!!!!!???????

Waiting.

on local side you are giving warn/crit thresholds.....
on server side you are not. did you check the logs?? can you show me the output from them?
Also the check_nrpe defined command has to have the -c option in it.

again,. like i said, if this is proving too difficult for you, drop using nrpe, and just use the nagios server to do the remote checks. nrpe is NOT a neccessity.

Last edited by centosboy; 07-08-2009 at 04:03 AM.
 
Old 07-09-2009, 01:28 AM   #13
nishith
Member
 
Registered: Aug 2008
Posts: 148

Original Poster
Rep: Reputation: 15
Cool

Quote:
Originally Posted by centosboy View Post
on local side you are giving warn/crit thresholds.....
on server side you are not. did you check the logs?? can you show me the output from them?
Also the check_nrpe defined command has to have the -c option in it.

again,. like i said, if this is proving too difficult for you, drop using nrpe, and just use the nagios server to do the remote checks. nrpe is NOT a neccessity.
Dear Sir,

Please let me know how nagios server itself will monitor remote chacks?
As you are aware that i have installed nagios server on both ends. i.e.

CenOS Linux & Fedora Linux. Now, let me know how to monitor my fedora Linux box from centos by using nagios Server.

I want to monitor,

Disk Usage
CPU Usage
Memory Usage
Swap Usage
Network Usage

Is it possible to get all above listed information from my AIX 5.3 server,without using any client?

I tried to use "check_by_ssh" service to get AIX Server Information,but it is not working. 1 thing i should tell you that " all plugins listed on Nagios Exchange are not fully tested" Is it true?



Thanks,
Nishith Vyas

Last edited by nishith; 07-09-2009 at 01:31 AM.
 
Old 07-09-2009, 06:31 AM   #14
nishith
Member
 
Registered: Aug 2008
Posts: 148

Original Poster
Rep: Reputation: 15
Smile NRPE Success from Server Side.

Quote:
Originally Posted by nishith View Post
Dear Sir,

Please let me know how nagios server itself will monitor remote chacks?
As you are aware that i have installed nagios server on both ends. i.e.

CenOS Linux & Fedora Linux. Now, let me know how to monitor my fedora Linux box from centos by using nagios Server.

I want to monitor,

Disk Usage
CPU Usage
Memory Usage
Swap Usage
Network Usage

Is it possible to get all above listed information from my AIX 5.3 server,without using any client?

I tried to use "check_by_ssh" service to get AIX Server Information,but it is not working. 1 thing i should tell you that " all plugins listed on Nagios Exchange are not fully tested" Is it true?



Thanks,
Nishith Vyas

Dear CentOSBoy,

After reconfiguring NRPE Plugin for AIX,I have got response from Nagios Monitoring Server. Please check the snap shot for more info.

But, instead of getting result in Nagios web GUI,i am getting NRPE Version number only. !!!!!!!!!!!! Attached snap shot will give you the idea.

By executing "./check_nrpe -H <IP OF Remote AIX Server> -c check_disk" command is giving perfect output as given below.

DISK OK - free space: / 1879 MB (91% inode=99%); /usr 2468 MB (60% inode=93%); /var 4078 MB (99% inode=99%); /tmp 1923 MB (93% inode=99%); /var/adm/ras/platform 1023 MB (99% inode=99%); /home 5116 MB (99% inode=99%); /opt 1963 MB (95% inode=99%); /oracle 19347 MB (37% inode=99%); /backup 40666 MB (79% inode=99%); /web_upload 344569 MB (34% inode=94%);| /=168MB;2038;2046;0;2048 /usr=1627MB;4086;4094;0;4096 /var=17MB;4086;4094;0;4096 /tmp=124MB;2038;2046;0;2048 /var/adm/ras/platform=0MB;1014;1022;0;1024 /home=3MB;5110;5118;0;5120 /opt=84MB;2038;2046;0;2048 /oracle=31852MB;51190;51198;0;51200 /backup=10533MB;51190;51198;0;51200 /web_upload=655819MB;1023350;1023358;0;1023360

Same results are coming from "check_swap,check_users & check_load" processes.

Now, if you have any idea, please let me know what to modify & where? How to get web based information @ nagios Server?

In the snap shot,have a look onto "gjvatwb1" server only.

Thanks,
Nishith Vyas
Attached Thumbnails
Click image for larger version

Name:	snap1.jpg
Views:	51
Size:	189.8 KB
ID:	968  
 
Old 07-10-2009, 12:08 PM   #15
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by nishith View Post
Dear CentOSBoy,

After reconfiguring NRPE Plugin for AIX,I have got response from Nagios Monitoring Server. Please check the snap shot for more info.

But, instead of getting result in Nagios web GUI,i am getting NRPE Version number only. !!!!!!!!!!!! Attached snap shot will give you the idea.

By executing "./check_nrpe -H <IP OF Remote AIX Server> -c check_disk" command is giving perfect output as given below.

DISK OK - free space: / 1879 MB (91% inode=99%); /usr 2468 MB (60% inode=93%); /var 4078 MB (99% inode=99%); /tmp 1923 MB (93% inode=99%); /var/adm/ras/platform 1023 MB (99% inode=99%); /home 5116 MB (99% inode=99%); /opt 1963 MB (95% inode=99%); /oracle 19347 MB (37% inode=99%); /backup 40666 MB (79% inode=99%); /web_upload 344569 MB (34% inode=94%);| /=168MB;2038;2046;0;2048 /usr=1627MB;4086;4094;0;4096 /var=17MB;4086;4094;0;4096 /tmp=124MB;2038;2046;0;2048 /var/adm/ras/platform=0MB;1014;1022;0;1024 /home=3MB;5110;5118;0;5120 /opt=84MB;2038;2046;0;2048 /oracle=31852MB;51190;51198;0;51200 /backup=10533MB;51190;51198;0;51200 /web_upload=655819MB;1023350;1023358;0;1023360

Same results are coming from "check_swap,check_users & check_load" processes.

Now, if you have any idea, please let me know what to modify & where? How to get web based information @ nagios Server?

In the snap shot,have a look onto "gjvatwb1" server only.

Thanks,
Nishith Vyas
nrpe on the client machines does not have the correct amount of arguments $ARG$1 $ARG2$??...or at least the server cannot see that...

check you have the correct arguments on the calling server too (ie -c -a)


Code:
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -n -H $HOSTADDRESS$ -w $ARG1$
}

this is missing the -c for command so no command being passed...
Command is the command on the remote server.

example

Code:
command_line $USER1$/check_nrpe -n -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$ $ARG3$

Last edited by centosboy; 07-10-2009 at 02:30 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use Nagios plugin? dwarf007 Linux - Software 20 10-03-2011 07:11 AM
nagios plugin check_url_status vanderbult Linux - Software 2 05-14-2009 11:36 AM
Nagios Plugin fullgore *BSD 3 10-22-2008 09:52 AM
Nagios Plugin Compile Anarusis Linux - Software 3 04-10-2005 03:31 PM
Returned mail: Can't create output: Operation not permitted turbo_acura Linux - General 0 10-19-2004 07:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration