Jump to content

NRPE HPUX ITANIUM: Difference between revisions

From TetraWiki
Created page with "category:Nagios‏‎ ==Steps To install NRPE on Hp Unix(IA) at Airtel , Okhla == Note : Prior Knowledge of Nagios/ NRPE is required 1. Upload the nrpe-2.12.depot fil..."
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[category:Airtel Nagios‏‎]]
[[category:Nagios‏‎]]
[[category:Nagios‏‎]]


Line 5: Line 6:
Note : Prior Knowledge of Nagios/ NRPE is required  
Note : Prior Knowledge of Nagios/ NRPE is required  


1. Upload the nrpe-2.12.depot file to the server in the /tmp directory.
1. Upload the nrpe-2.12.depot file to the server in the /tmp directory. The depot file cane be got from http://www.mayoxide.com/naghpux/NRPE-2.12.depot.gz


2. Install the depot file on the server.
2. Install the depot file on the server.

Latest revision as of 05:23, 31 December 2012


Steps To install NRPE on Hp Unix(IA) at Airtel , Okhla[edit]

Note : Prior Knowledge of Nagios/ NRPE is required

1. Upload the nrpe-2.12.depot file to the server in the /tmp directory. The depot file cane be got from http://www.mayoxide.com/naghpux/NRPE-2.12.depot.gz

2. Install the depot file on the server.

3. On successfull installation of the depot file we will get the folder /opt/nrpe.

4. Inside the /opt/nrpe there will be three folders bin , etc , libexec .

5. Go inside bin folder and run the file configure.sh

6. After running the file the service of nrpe will be started on the server

7. Check the nrpe service by command netstat –a | grep nrpe

8. Output will be  tcp 0 0 *.nrpe *.* LISTEN

9. Also check the nrpe service entry inside the file /etc/inetd.conf at the bottom.

10. Go to folder /opt/nrpe/libexec and run the file ./check_nrpe –H localhost it will show you the version of the nrpe it should be “NRPE v2.12”.

11. Inside libexec folder ther will be generic plugins for the nagios that we can use while configuring the different services.

12. Now go to nagios server 172.30.1.24 and go inside the folder /usr/local/nagios/libexec and run the command ./check_nrpe –H <client ip> this will show the nrpe version like NRPE v2.12 so it means we are able to communicate through nrpe from nagios server to the client.

13. If we are not able to communicate through nagios server to the client then there is some issue. Check port 5666 should be open and it should not be blocked by the firewalls.

14. Telnet on port 5666 through nagios server for the confirmation if port is opened or not.

15. Go back to the client on the location /opt/nrpe/etc , inside etc there will be a file nrpe.cfg. In this file we configure all the service that we have to monitor from nagios for this particular client.

16. Open the file nrpe.cfg and go to the bottom of the file around line no 197 there you will find some examples how we can configure the service for a client.

17. For example command[check_users]=/opt/nrpe/libexec/check_users -w 5 -c 10 this is a command to check the current users logged on the server.

18. Here “check_users” is a unique identifier for the command that we are using to identify the command from the nagios server.

19. /opt/nrpe/libexec /check_users is specifing the path of the plugin.

20. -w 5 –c 10 specify the warning and the critical limit for the check_users command.

21. Similarly we can configure all the service we have to monitor from the nagios server to the client.

22. After configuring the services save the file.

23. Now we can check through the nagios server by the command prompt if we are getting the output of the configured services on the nagios server.

24. Go to the location /usr/local/nagios/libexec on nagios server run the command ./check_nrpe –H <client ip> -c <check command> (check_cpu).

25. –c option defines the command check or the unique identifier that we have defined in the nrpe.cfg file at the client.

26. After running the command on the nagios server in step 23 if we get output as Service OK or Warning or Critical then we are getting the output from nrpe to nagios.

27. Configure the client on the nagios server.