Page 1 of 1
/usr/lib/nagios/plugins is now empty (i goofed) [Solved]
Posted: Wed May 23, 2012 4:37 am
by bsfez
Hello,
I goofed... bouhhh.
I've made some cleanup to keep only nagios 3.2.1 installed on my server.
I have accidentally deleted files in /usr/lib/nagios/plugins/
It show now:
/usr/lib/nagios/plugins# ls -l
total 24
-rwxr-xr-x 1 root root 21800 Sep 4 2009 check_nrpe
And when i start nagios3
/etc/init.d/nagios3 start
Starting nagios3 monitoring daemon: nagios3eval: 1: /usr/lib/nagios/plugins/check_nagios: not found
I tried to reinstall the plugins (apt-get install --reinstall nagios-plugins) doesn't help.
Pleaaazzeee...
Bernard
Re: /usr/lib/nagios/plugins is now empty (i goofed)
Posted: Wed May 23, 2012 10:19 am
by agriffin
The file /usr/lib/nagios/plugins/check_nagios is provided by the package nagios-plugins-basic. Try 'apt-get install --reinstall nagios-plugins' instead. (For future reference, you can search for files in packages with 'apt-file search <filename>', regardless of whether or not those files exist on your drive or you have the package installed. You will probably need to install apt-file first though.)
Re: /usr/lib/nagios/plugins is now empty (i goofed)
Posted: Wed May 23, 2012 10:30 am
by bsfez
agriffin wrote:The file /usr/lib/nagios/plugins/check_nagios is provided by the package nagios-plugins-basic. Try 'apt-get install --reinstall nagios-plugins' instead. (For future reference, you can search for files in packages with 'apt-file search <filename>', regardless of whether or not those files exist on your drive or you have the package installed. You will probably need to install apt-file first though.)

As i mention, i tried this already and didn't help.
Code: Select all
~# apt-get install --reinstall nagios-plugins
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/21.3 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 50044 files and directories currently installed.)
Preparing to replace nagios-plugins 1.4.15-3squeeze1 (using .../nagios-plugins_1.4.15-3squeeze1_all.deb) ...
Unpacking replacement nagios-plugins ...
Setting up nagios-plugins (1.4.15-3squeeze1) ...
xxxxx_ ~# cd /usr/lib/nagios/plugins/
xxxxx_ /usr/lib/nagios/plugins# ls -l
total 24
-rwxr-xr-x 1 root root 21800 Sep 4 2009 check_nrpe
Re: /usr/lib/nagios/plugins is now empty (i goofed)
Posted: Wed May 23, 2012 10:39 am
by agriffin
You specified the wrong package name though, which is why I put basic in bold letters.
Re: /usr/lib/nagios/plugins is now empty (i goofed) [Solved]
Posted: Wed May 23, 2012 11:32 pm
by bsfez
Tks i misread.
Arf... Something were wrong in my source.list !! (when things don't want to go smooth...).
Things back to normal. (meaning i'm still looking where are hidden my commands )
Many thanks for the help
Bernard
Re: /usr/lib/nagios/plugins is now empty (i goofed) [Solved]
Posted: Fri May 25, 2012 9:41 am
by agriffin
You're welcome! Don't hesitate to ask if you have further problems.