Nagios alert for memory utulization on HPUX
-
- Posts: 15
- Joined: Wed May 22, 2013 3:38 am
Nagios alert for memory utulization on HPUX
HI!
I would like to monitor memory utilization of hpux servers. but not working..
config of nrpe.cfg,
command[check_mem]=/opt/nrpe/libexec/check_memlin -w 10 -c 5
Declare definition in nagios server as
define service{
use linux-services
hostgroup_name hpux-server-uat
service_description Memory Utilization
check_command check_nrpe!check_memlin
contact_groups unix
notification_interval 0
}
And declare command.cfg as
define command{
command_name check_memlin
command_line $USER1$/check_memlin -w 20 -c 10
}
But, getting error in nagios as NRPE: Command 'check_memlin' not defined
Kindly help me to resolve this issue...
I would like to monitor memory utilization of hpux servers. but not working..
config of nrpe.cfg,
command[check_mem]=/opt/nrpe/libexec/check_memlin -w 10 -c 5
Declare definition in nagios server as
define service{
use linux-services
hostgroup_name hpux-server-uat
service_description Memory Utilization
check_command check_nrpe!check_memlin
contact_groups unix
notification_interval 0
}
And declare command.cfg as
define command{
command_name check_memlin
command_line $USER1$/check_memlin -w 20 -c 10
}
But, getting error in nagios as NRPE: Command 'check_memlin' not defined
Kindly help me to resolve this issue...
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios alert for memory utulization on HPUX
It looks like you don't have that command defined on the HPUX server in the nrpe.cfg, you will need to do this first, then you should be able to call it fine.
-
- Posts: 15
- Joined: Wed May 22, 2013 3:38 am
Re: Nagios alert for memory utulization on HPUX
I defined as
command[check_mem]=/opt/nrpe/libexec/check_memlin -w 10 -c 5
In hpux server, but this check_memlin is for Linux, so yesterday i downloaded check_memhpux plugin for hpux.
changed the command line as
command[check_memhpux]=/opt/nrpe/libexec/check_memhpux -u -w 80 -c 90
Now if i am running from the HPUX server (nrpe client) , its working as below.
-bash-3.2# /opt/nrpe/libexec/check_memhpux -u -w 80 -c 90
Memory OK - 13.0% (4121312 kB) used
If i am running from Nagios server as follows, getting error as unable to read output.
root@Ubuntu-repo:/usr/local/nagios/etc/objects# /usr/local/nagios/libexec/check_nrpe -H 10.1.10.51 -c check_memhpux
NRPE: Unable to read output
command[check_mem]=/opt/nrpe/libexec/check_memlin -w 10 -c 5
In hpux server, but this check_memlin is for Linux, so yesterday i downloaded check_memhpux plugin for hpux.
changed the command line as
command[check_memhpux]=/opt/nrpe/libexec/check_memhpux -u -w 80 -c 90
Now if i am running from the HPUX server (nrpe client) , its working as below.
-bash-3.2# /opt/nrpe/libexec/check_memhpux -u -w 80 -c 90
Memory OK - 13.0% (4121312 kB) used
If i am running from Nagios server as follows, getting error as unable to read output.
root@Ubuntu-repo:/usr/local/nagios/etc/objects# /usr/local/nagios/libexec/check_nrpe -H 10.1.10.51 -c check_memhpux
NRPE: Unable to read output
Re: Nagios alert for memory utulization on HPUX
Try checking it locally from the remote host's cli as user "nagios". Have you taken a look at the common solutions document for nrpe?
http://assets.nagios.com/downloads/nagi ... utions.pdf
http://assets.nagios.com/downloads/nagi ... utions.pdf
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
- Posts: 15
- Joined: Wed May 22, 2013 3:38 am
Re: Nagios alert for memory utulization on HPUX
I couldnt find the issue with the document...
Last edited by skumar7466 on Mon Jun 03, 2013 12:53 am, edited 1 time in total.
Re: Nagios alert for memory utulization on HPUX
You are getting this error message from the nrpe memory check?skumar7466 wrote:I couldnt find the issue with the document...
Getting error as Cannot determine ORACLE_HOME for sid GESS from nagios server..
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
- Posts: 15
- Joined: Wed May 22, 2013 3:38 am
Re: Nagios alert for memory utulization on HPUX
Not from the HPUX server end...Locally it is working..
If i am running from Nagios server as follows using check_nrpe, getting error as unable to read output.
root@Ubuntu-repo:/usr/local/nagios/etc/objects# /usr/local/nagios/libexec/check_nrpe -H 10.1.10.51 -c check_memhpux
NRPE: Unable to read output
If i am running from Nagios server as follows using check_nrpe, getting error as unable to read output.
root@Ubuntu-repo:/usr/local/nagios/etc/objects# /usr/local/nagios/libexec/check_nrpe -H 10.1.10.51 -c check_memhpux
NRPE: Unable to read output
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios alert for memory utulization on HPUX
Does nagios have permissions to run your plugins on the HPUX server?
-
- Posts: 15
- Joined: Wed May 22, 2013 3:38 am
Re: Nagios alert for memory utulization on HPUX
Yes. I switched to nagios and it worked...But not from Nagios server.
-
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Nagios alert for memory utulization on HPUX
Just to be 100% certain, have you su-ed to the nagios user and run the plugin? If you are running as root, nagios may not have permission to read the proper files.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.