Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Nagios crashed after pnp update
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Majed17
Apprentice
Apprentice


Joined: 31 Aug 2011
Posts: 183
Location: Minsk, Belarus

PostPosted: Thu Nov 30, 2017 8:02 am    Post subject: Nagios crashed after pnp update Reply with quote

Peace, today I upgraded pnp and changed config in nagios and wanted to restart it but:
Code:
/etc/init.d/nagios stop
 * Stopping nagios ...
 * Failed to stop nagios                                                                                                       [ !! ]
 * ERROR: nagios failed to stop

Code:
/etc/init.d/nagios status
 * status: crashed

now in order to restart nagios I have to reboot and the status remains crashed even though nagios works.
I tried uninstalling and reinstalling nagios but that didn't help. perhaps it is time to update protage with the latest nagios version. Any solution?
_________________
Seek and you shall find, Knock and it shall be opened, cry and you shall find comfort.
Back to top
View user's profile Send private message
Maitreya
Guru
Guru


Joined: 11 Jan 2006
Posts: 305

PostPosted: Mon Dec 04, 2017 4:13 pm    Post subject: Reply with quote

What user is it trying to run under and what pidfile does it make?
Back to top
View user's profile Send private message
Majed17
Apprentice
Apprentice


Joined: 31 Aug 2011
Posts: 183
Location: Minsk, Belarus

PostPosted: Wed Dec 06, 2017 12:23 pm    Post subject: Reply with quote

As usual someone with the name of the antichrist is curious.
the pid file was owned by root, I changed that to nagios, but unfortunately, didn't change the situation.
_________________
Seek and you shall find, Knock and it shall be opened, cry and you shall find comfort.
Back to top
View user's profile Send private message
Maitreya
Guru
Guru


Joined: 11 Jan 2006
Posts: 305

PostPosted: Wed Dec 06, 2017 12:40 pm    Post subject: Reply with quote

Majed17 wrote:
As usual someone with the name of the antichrist is curious.
the pid file was owned by root, I changed that to nagios, but unfortunately, didn't change the situation.


Maitreya is the Antichrist? I thought it was one of many Buddha's, except this one staid behind to help others achieve nirvana...
I learn something new everyday!


And the folder in which it is placed, does it allow the nagios user to place a pid file there?
Back to top
View user's profile Send private message
Majed17
Apprentice
Apprentice


Joined: 31 Aug 2011
Posts: 183
Location: Minsk, Belarus

PostPosted: Wed Dec 06, 2017 1:03 pm    Post subject: Reply with quote

Anyone who believes that Jesus did not resurect from the dead on the third day is an antichrist!
The aim is to get the holy ghost rather than some deamon.
it is a pitty the topic does not interest you.
Code:
nagios ~ # ps -aux | grep nagios
nagios    3876  0.2  0.2  26616  4252 ?        Ss   14:43   0:10 /usr/sbin/nagios --daemon /etc/nagios/nagios.cfg
nagios    3889  0.0  0.1  12904  2444 ?        S    14:43   0:01 /usr/sbin/nagios --worker /var/nagios/rw/nagios.qh
nagios    3890  0.0  0.1  12904  2472 ?        S    14:43   0:01 /usr/sbin/nagios --worker /var/nagios/rw/nagios.qh
nagios    3891  0.0  0.1  12904  2464 ?        S    14:43   0:01 /usr/sbin/nagios --worker /var/nagios/rw/nagios.qh
nagios    3892  0.0  0.1  12904  2488 ?        S    14:43   0:01 /usr/sbin/nagios --worker /var/nagios/rw/nagios.qh
nagios    3948  0.0  0.1  26100  2704 ?        S    14:43   0:00 /usr/sbin/nagios --daemon /etc/nagios/nagios.cfg
nagios   31399  0.0  0.0  10192   832 ?        S    15:55   0:00 /usr/lib64/nagios/plugins//check_ping -H 10.10.170.215 -w 100.0,20% -c 500.0,60% -p 12
nagios   31400  0.0  0.0   4348   752 ?        S    15:55   0:00 /bin/ping -n -U -w 18 -c 12 10.10.170.215
nagios   31402  0.0  0.0  10192   836 ?        S    15:55   0:00 /usr/lib64/nagios/plugins//check_ping -H 10.10.10.114 -w 100.0,20% -c 500.0,60% -p 12
nagios   31403  0.0  0.0   4348   732 ?        S    15:55   0:00 /bin/ping -n -U -w 18 -c 12 10.0.0.14
nagios   31436  0.0  0.0  10192   852 ?        S    15:55   0:00 /usr/lib64/nagios/plugins//check_ping -H 10.10.10.135 -w 3000.0,80% -c 5000.0,100% -p 12
nagios   31437  0.0  0.0   4348   736 ?        S    15:55   0:00 /bin/ping -n -U -w 72 -c 12 10.0.0.235
nagios   31467  0.0  0.0  10192   796 ?        S    15:55   0:00 /usr/lib64/nagios/plugins//check_ping -H 10.10.10.25 -w 3000.0,80% -c 5000.0,100% -p 12
nagios   31468  0.0  0.0   4348   752 ?        S    15:55   0:00 /bin/ping -n -U -w 72 -c 12 10.0.0.24
root     31474  0.0  0.0  12820   820 pts/0    S+   15:55   0:00 grep --colour=auto nagios
nagios ~ #


Code:
nagios ~ # cd /var/nagios
nagios /var/nagios # ls -l
total 20164
drwxr-xr-x  2 nagios nagios   16384 Dec  6 00:00 archives
-rw-r--r--  1 nagios nagios       5 Dec  6 14:43 nagios.lock
-rwxr-xr-x  1 nagios nagios  884579 Dec  6 16:00 nagios.log
-rw-------  1 nagios nagios  143360 Dec  4 16:34 nagios.tmp1kjEyt
-rw-------  1 nagios nagios  135168 Dec  6 08:58 nagios.tmp2lbVqu
-rw-------  1 nagios nagios  491520 Dec  4 17:58 nagios.tmp2xz1cb
-rw-------  1 nagios nagios  294912 Dec  4 16:37 nagios.tmp2YtS0H
-rw-rw-r--  1 nagios nagios 1020071 Dec  5 17:45 nagios.tmp5Mstbc
-rw-------  1 nagios nagios   12288 Dec  6 14:42 nagios.tmp7w86WI
-rw-------  1 nagios nagios  311296 Dec  4 16:48 nagios.tmp8OvJZM
-rw-------  1 nagios nagios  389120 Dec  5 09:14 nagios.tmp9ZRw9g
-rw-------  1 nagios nagios  630784 Dec  4 17:53 nagios.tmpEffopK
-rw-------  1 nagios nagios  282624 Dec  5 09:43 nagios.tmpIgs6OT
-rw-------  1 nagios nagios  516096 Dec  4 16:53 nagios.tmpiseXPU
-rw-------  1 nagios nagios  577536 Dec  4 17:08 nagios.tmpleKpRM
-rw-------  1 nagios nagios  561152 Dec  5 09:50 nagios.tmpmAmBrj
-rw-------  1 nagios nagios  606208 Dec  5 08:59 nagios.tmpOYNDEv
-rw-------  1 nagios nagios   73728 Dec  4 15:32 nagios.tmpPj9qgR
-rw-------  1 nagios nagios  356352 Dec  5 08:55 nagios.tmpQcmi1P
-rw-------  1 nagios nagios  393216 Dec  5 09:20 nagios.tmpRXG40b
-rw-rw-r--  1 nagios nagios  416703 May 17  2017 nagios.tmpSCG9NJ
-rw-------  1 nagios nagios  749568 Dec  5 09:35 nagios.tmpYqlcfu
-rwxr-xr-x  1 nagios nagios  633702 Dec  6 14:43 objects.cache
drwxr-xr-x 70 nagios nagios    4096 Dec  5 08:40 perfdata
-rwxr-xr-x  1 nagios nagios 9101061 Nov 30 09:04 perfdata.log
drwxr-xr-x  2 nagios nagios    4096 Dec  6 16:00 pnp
-rw-------  1 nagios nagios 1001572 Dec  6 15:43 retention.dat
drwxrwsr-x  2 nagios nagios    4096 Dec  6 14:43 rw
drwxr-xr-x  3 nagios nagios    4096 Mar  7  2017 spool
-rw-rw-r--  1 nagios nagios 1015742 Dec  6 16:00 status.dat


nagios.lock contains:
Code:
3876

_________________
Seek and you shall find, Knock and it shall be opened, cry and you shall find comfort.
Back to top
View user's profile Send private message
Maitreya
Guru
Guru


Joined: 11 Jan 2006
Posts: 305

PostPosted: Wed Dec 06, 2017 2:43 pm    Post subject: Reply with quote

Majed17 wrote:
Anyone who believes that Jesus did not resurect from the dead on the third day is an antichrist!
The aim is to get the holy ghost rather than some deamon instead.
it is a pitty the topic does not interest you.
Code:
nagios ~ # ps -aux | grep nagios
nagios    3876  0.2  0.2  26616  4252 ?        Ss   14:43   0:10 /usr/sbin/nagios --daemon /etc/nagios/nagios.cfg
nagios    3889  0.0  0.1  12904  2444 ?        S    14:43   0:01 /usr/sbin/nagios --worker /var/nagios/rw/nagios.qh
nagios    3890  0.0  0.1  12904  2472 ?        S    14:43   0:01 /usr/sbin/nagios --worker /var/nagios/rw/nagios.qh
nagios    3891  0.0  0.1  12904  2464 ?        S    14:43   0:01 /usr/sbin/nagios --worker /var/nagios/rw/nagios.qh
nagios    3892  0.0  0.1  12904  2488 ?        S    14:43   0:01 /usr/sbin/nagios --worker /var/nagios/rw/nagios.qh
nagios    3948  0.0  0.1  26100  2704 ?        S    14:43   0:00 /usr/sbin/nagios --daemon /etc/nagios/nagios.cfg
nagios   31399  0.0  0.0  10192   832 ?        S    15:55   0:00 /usr/lib64/nagios/plugins//check_ping -H 10.10.170.215 -w 100.0,20% -c 500.0,60% -p 12
nagios   31400  0.0  0.0   4348   752 ?        S    15:55   0:00 /bin/ping -n -U -w 18 -c 12 10.10.170.215
nagios   31402  0.0  0.0  10192   836 ?        S    15:55   0:00 /usr/lib64/nagios/plugins//check_ping -H 10.10.10.114 -w 100.0,20% -c 500.0,60% -p 12
nagios   31403  0.0  0.0   4348   732 ?        S    15:55   0:00 /bin/ping -n -U -w 18 -c 12 10.0.0.14
nagios   31436  0.0  0.0  10192   852 ?        S    15:55   0:00 /usr/lib64/nagios/plugins//check_ping -H 10.10.10.135 -w 3000.0,80% -c 5000.0,100% -p 12
nagios   31437  0.0  0.0   4348   736 ?        S    15:55   0:00 /bin/ping -n -U -w 72 -c 12 10.0.0.235
nagios   31467  0.0  0.0  10192   796 ?        S    15:55   0:00 /usr/lib64/nagios/plugins//check_ping -H 10.10.10.25 -w 3000.0,80% -c 5000.0,100% -p 12
nagios   31468  0.0  0.0   4348   752 ?        S    15:55   0:00 /bin/ping -n -U -w 72 -c 12 10.0.0.24
root     31474  0.0  0.0  12820   820 pts/0    S+   15:55   0:00 grep --colour=auto nagios
nagios ~ #


Code:
nagios ~ # cd /var/nagios
nagios /var/nagios # ls -l
total 20164
drwxr-xr-x  2 nagios nagios   16384 Dec  6 00:00 archives
-rw-r--r--  1 nagios nagios       5 Dec  6 14:43 nagios.lock
-rwxr-xr-x  1 nagios nagios  884579 Dec  6 16:00 nagios.log
-rw-------  1 nagios nagios  143360 Dec  4 16:34 nagios.tmp1kjEyt
-rw-------  1 nagios nagios  135168 Dec  6 08:58 nagios.tmp2lbVqu
-rw-------  1 nagios nagios  491520 Dec  4 17:58 nagios.tmp2xz1cb
-rw-------  1 nagios nagios  294912 Dec  4 16:37 nagios.tmp2YtS0H
-rw-rw-r--  1 nagios nagios 1020071 Dec  5 17:45 nagios.tmp5Mstbc
-rw-------  1 nagios nagios   12288 Dec  6 14:42 nagios.tmp7w86WI
-rw-------  1 nagios nagios  311296 Dec  4 16:48 nagios.tmp8OvJZM
-rw-------  1 nagios nagios  389120 Dec  5 09:14 nagios.tmp9ZRw9g
-rw-------  1 nagios nagios  630784 Dec  4 17:53 nagios.tmpEffopK
-rw-------  1 nagios nagios  282624 Dec  5 09:43 nagios.tmpIgs6OT
-rw-------  1 nagios nagios  516096 Dec  4 16:53 nagios.tmpiseXPU
-rw-------  1 nagios nagios  577536 Dec  4 17:08 nagios.tmpleKpRM
-rw-------  1 nagios nagios  561152 Dec  5 09:50 nagios.tmpmAmBrj
-rw-------  1 nagios nagios  606208 Dec  5 08:59 nagios.tmpOYNDEv
-rw-------  1 nagios nagios   73728 Dec  4 15:32 nagios.tmpPj9qgR
-rw-------  1 nagios nagios  356352 Dec  5 08:55 nagios.tmpQcmi1P
-rw-------  1 nagios nagios  393216 Dec  5 09:20 nagios.tmpRXG40b
-rw-rw-r--  1 nagios nagios  416703 May 17  2017 nagios.tmpSCG9NJ
-rw-------  1 nagios nagios  749568 Dec  5 09:35 nagios.tmpYqlcfu
-rwxr-xr-x  1 nagios nagios  633702 Dec  6 14:43 objects.cache
drwxr-xr-x 70 nagios nagios    4096 Dec  5 08:40 perfdata
-rwxr-xr-x  1 nagios nagios 9101061 Nov 30 09:04 perfdata.log
drwxr-xr-x  2 nagios nagios    4096 Dec  6 16:00 pnp
-rw-------  1 nagios nagios 1001572 Dec  6 15:43 retention.dat
drwxrwsr-x  2 nagios nagios    4096 Dec  6 14:43 rw
drwxr-xr-x  3 nagios nagios    4096 Mar  7  2017 spool
-rw-rw-r--  1 nagios nagios 1015742 Dec  6 16:00 status.dat


nagios.lock contains:
Code:
3876


I do believe that Jesus existed. And the subject is very interesting to me. It's just easy to explain he went on sabbatical before coming back in his 30'something.
If you read the passages about him, you can see he was a huge ***** before disappearing from the bible for 20 years. Then suddenly he comes back with a message of love and less wanting in an area that only did multi-theism. Yeah he definitely went "backpacking" to the east to open his mind. That message just didn't fit in that culture in that part of the world yet. Hence the "I am god, and god is me..... and so can you"

j.k.
on topic:
Was wondering for the rights on /var/run/nagios , but is it running now?
Back to top
View user's profile Send private message
Majed17
Apprentice
Apprentice


Joined: 31 Aug 2011
Posts: 183
Location: Minsk, Belarus

PostPosted: Thu Dec 07, 2017 6:43 am    Post subject: Reply with quote

Dear brother, you have seen and believed too much conspiracy theories. It is unwise to believe all what you see and read otherwise you will end up an evolutionist or a satanist! the truth is the heavenly kingdom is in us! and how is it wise to believe herecies about a person from people who lived centuries later? It is good to have real faith, one that is based on solid evidence!

you will be not surprised that the file does not exist!
_________________
Seek and you shall find, Knock and it shall be opened, cry and you shall find comfort.
Back to top
View user's profile Send private message
Ant P.
Advocate
Advocate


Joined: 18 Apr 2009
Posts: 4526

PostPosted: Thu Dec 07, 2017 8:48 pm    Post subject: Reply with quote

Kind of obnoxious to see someone trying to claim moral high ground, while at the same time using software from a litigious scummy company like Nagios Enterprises... can you leave the unnecessary self-righteousness out of your help requests next time?
_________________
*.ebuild // /etc/service/*
Back to top
View user's profile Send private message
Majed17
Apprentice
Apprentice


Joined: 31 Aug 2011
Posts: 183
Location: Minsk, Belarus

PostPosted: Fri Dec 08, 2017 6:25 am    Post subject: Reply with quote

what is abnoxious is to be rude and condemn other people, who are you to consider yourself God?
_________________
Seek and you shall find, Knock and it shall be opened, cry and you shall find comfort.
Back to top
View user's profile Send private message
Majed17
Apprentice
Apprentice


Joined: 31 Aug 2011
Posts: 183
Location: Minsk, Belarus

PostPosted: Mon Dec 11, 2017 7:44 am    Post subject: Reply with quote

worth mentioning, the new perfdata directory is
/var/lib/pnp/perfdata
used to be:
/var/nagios/perfdata
_________________
Seek and you shall find, Knock and it shall be opened, cry and you shall find comfort.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum