problem with nrpe and ubuntu

This forum is intended for the discussion of Nagios plugin development. Feature requests, patches, bug fixes, and all types of development-related discussions are welcome!

NOTE: The SourceForge.net nagiosplug-devel mailing list has been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Re: problem with nrpe and ubuntu [solved]

Postby majed » Fri Aug 04, 2017 2:12 am

Well 2 machines magically worked on their own. 1 remains.
here is its configuration:
pwd
/etc/nagios

ls -l
total 20
-rwxr-xr-x 1 nagios nagios 8200 авг 4 09:38 nrpe.cfg
drwxr-xr-x 2 nagios nagios 4096 май 8 19:01 nrpe.d
-rwxr-xr-x 1 nagios nagios 117 май 8 19:00 nrpe_local.cfg

/etc/nabios/nrpe.cfg

command[check_users]=/usr/lib/nagios/plugins/check_users -w 5 -c 10
command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20
command[check_disk]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/sda5
command[check_zombie_procs]=/usr/lib/nagios/plugins/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w 150 -c 200
command[check_swap]=/usr/lib/nagios/plugins/check_swap -w 20 -c 10
command[check_mem]=/usr/lib/nagios/plugins/check_mem.pl -u -w 80 -c 90
command[check_cpu]=/usr/lib/nagios/plugins/check_cpu.sh -i 5 -w 80 -c 90

cd /usr/lib/nagios/plugins/
sysadmin@ntp2:/usr/lib/nagios/plugins$

ls -l
total 2484
-rwxr-xr-x 1 nagios nagios 55856 апр 5 2016 check_apt
-rwxr-xr-x 1 nagios nagios 2344 апр 5 2016 check_breeze
.....

sudo passwd --delete nagios
passwd: password expiry information changed.
sudo chage -I -1 -m 0 -M 99999 -E -1 nagios

$ sudo -s -u nagios ./check_nrpe -H 127.0.0.1
NRPE v2.15

sudo ps cax | grep nrpe
1177 ? Ss 0:00 nrpe

and the problem remained.

then as i was writing, i remember that the other 2 machines have been rebooted while this was not. So I rebooted and voila, the magic occurred.
sudo -s -u nagios ./check_nrpe -H 127.0.0.1 -c check_disk
DISK OK - free space: / 6776 MB (70% inode=82%);| /=2879MB;8156;9176;0;10196

important to notice that i didn't reset the nagios account. can you make logic out of this?
Seek and you shall find, knock and it shall be opened, cry and you shall find comfort
majed
 
Posts: 86
Joined: Mon Mar 17, 2014 5:29 am

Re: problem with nrpe and ubuntu [solved]

Postby dwhitfield » Fri Aug 04, 2017 12:00 pm

majed wrote:important to notice that i didn't reset the nagios account.

The commands above suggest you did.

Code: Select all
sudo passwd --delete nagios
passwd: password expiry information changed.
sudo chage -I -1 -m 0 -M 99999 -E -1 nagios


Can you clarify what you mean?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
dwhitfield
The Doctor
 
Posts: 3838
Joined: Wed Sep 21, 2016 10:29 am
Location: Nagios Enterprises, LLC

Re: problem with nrpe and ubuntu

Postby majed » Sat Aug 05, 2017 2:32 pm

well there are 3 machines, it is not hard to figure it out instead of doubting!
Seek and you shall find, knock and it shall be opened, cry and you shall find comfort
majed
 
Posts: 86
Joined: Mon Mar 17, 2014 5:29 am

Re: problem with nrpe and ubuntu

Postby bolson » Mon Aug 07, 2017 11:30 am

Is this resolved or do you have additional questions?
Brian Olson
Nagios Support Team
---
Nagios Enterprises, LLC
Email: customersupport@nagios.com
Web: https://www.nagios.com/
User avatar
bolson
Support Tech
 
Posts: 588
Joined: Tue Jul 11, 2017 10:34 am

Re: problem with nrpe and ubuntu

Postby majed » Tue Aug 08, 2017 4:33 am

Well then, not one may explain what took place
Seek and you shall find, knock and it shall be opened, cry and you shall find comfort
majed
 
Posts: 86
Joined: Mon Mar 17, 2014 5:29 am

Re: problem with nrpe and ubuntu

Postby tmcdonald » Tue Aug 08, 2017 9:43 am

majed wrote:Well then, not one may explain what took place

We are trying to figure this out with you, but when you say things like "it is not hard to figure it out instead of doubting" and "Well then, not one may explain what took place" it actually makes it harder. You posted a command that removes the nagios user account password, but then said you did not reset it, so we asked for clarification. The appropriate response is to offer clarification so we may move forward.

There is a long history of combativeness and snark from this account, and that simply does nobody any good. We are offering assistance to you free of charge, so at the very least I will ask you to remain civilly neutral in your communications with us. Help us to help you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tmcdonald
Support Lead / Operations Engineer
 
Posts: 8698
Joined: Mon Sep 23, 2013 8:40 am

Re: problem with nrpe and ubuntu

Postby majed » Tue Aug 08, 2017 9:52 am

My response was clear, if you can't believe or think everybody lies then that's your problem !
Seek and you shall find, knock and it shall be opened, cry and you shall find comfort
majed
 
Posts: 86
Joined: Mon Mar 17, 2014 5:29 am

Re: problem with nrpe and ubuntu

Postby tmcdonald » Tue Aug 08, 2017 10:03 am

I will be closing this thread now.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tmcdonald
Support Lead / Operations Engineer
 
Posts: 8698
Joined: Mon Sep 23, 2013 8:40 am

Previous

Return to Nagios Plugin Development

Who is online

Users browsing this forum: No registered users and 2 guests