Re: [Nagios-users] Nagios Permissions Error ?
Look at two things: Where your perl modules are installed... You have some installed in root' home dir and regular user won't be able to access them. Does this module require root level permissions as some network socket related modules do? Lee - Original Message - From: Martin Hugo [martin_h...@hboe.org] Sent: 01/14/2013 07:51 PM GMT To: 'Nagios Users List' Subject: [Nagios-users] Nagios Permissions Error ? Hi Everyone, I have recently rebuilt Nagios 3.4.3 on Ubuntu 12.04 and am having a problem with a couple of plugins that I think is related to a permissions issue. I installed from source as root (sudo su). I can run ./usr/local/nagios/libexec/check_iftraffic4.pl -H -C -i F24 -b 100 -u m from the command line as root no problem, however the web interface shows critical (nul). If I try to run the same command logged in as any other user, I get Can't locate Net/DNS.pm in @INC (@INC contains: /root/perl5/lib/perl5/x86_64-linux-gnu-thread-multi /root/perl5/lib/perl5 /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at ./usr/local/nagios/libexec/check_iftraffic4.pl line 247. BEGIN failed--compilation aborted at ./usr/local/nagios/libexec/check_iftraffic4.pl line 247. Net::DNS is installed. Any thoughts? -- Martin T. Hugo Network Administrator Hilliard City Schools 614-921-7102 (Ph) 614-921-7243 (Fax) -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null-- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios Permissions Error ?
Thanks very much, that was it. -- Martin T. Hugo Network Administrator Hilliard City Schools 614-921-7102 (Ph) 614-921-7243 (Fax) From: Sunil Sankar [mailto:su...@sunil.cc] Sent: Monday, January 14, 2013 4:17 PM To: Nagios Users List Subject: Re: [Nagios-users] Nagios Permissions Error ? Please install apt-get install libnet-dns-perl On Tue, Jan 15, 2013 at 2:35 AM, Sunil Sankar mailto:su...@sunil.cc>> wrote: This is a due to missing cpan module On Tue, Jan 15, 2013 at 1:21 AM, Martin Hugo mailto:martin_h...@hboe.org>> wrote: Hi Everyone, I have recently rebuilt Nagios 3.4.3 on Ubuntu 12.04 and am having a problem with a couple of plugins that I think is related to a permissions issue. I installed from source as root (sudo su). I can run ./usr/local/nagios/libexec/check_iftraffic4.pl<http://check_iftraffic4.pl> -H -C -i F24 -b 100 -u m from the command line as root no problem, however the web interface shows critical (nul). If I try to run the same command logged in as any other user, I get Can't locate Net/DNS.pm in @INC (@INC contains: /root/perl5/lib/perl5/x86_64-linux-gnu-thread-multi /root/perl5/lib/perl5 /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at ./usr/local/nagios/libexec/check_iftraffic4.pl<http://check_iftraffic4.pl> line 247. BEGIN failed--compilation aborted at ./usr/local/nagios/libexec/check_iftraffic4.pl<http://check_iftraffic4.pl> line 247. Net::DNS is installed. Any thoughts? -- Martin T. Hugo Network Administrator Hilliard City Schools 614-921-7102 (Ph) 614-921-7243 (Fax) -- Master Visual Studio, SharePoint, SQL, ASP.NET<http://ASP.NET>, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net<mailto:Nagios-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Regards Sunil Sankar -- Regards Sunil Sankar -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios Permissions Error ?
This is a due to missing cpan module On Tue, Jan 15, 2013 at 1:21 AM, Martin Hugo wrote: > Hi Everyone, > > ** ** > > I have recently rebuilt Nagios 3.4.3 on Ubuntu 12.04 and am having a > problem with a couple of plugins that I think is related to a permissions > issue. > > ** ** > > I installed from source as root (sudo su). > > ** ** > > I can run ./usr/local/nagios/libexec/check_iftraffic4.pl -H > -C -i F24 -b 100 -u m from the command line as root no > problem, however the web interface shows critical (nul). > > ** ** > > If I try to run the same command logged in as any other user, I get > > ** ** > > Can't locate Net/DNS.pm in @INC (@INC contains: > /root/perl5/lib/perl5/x86_64-linux-gnu-thread-multi /root/perl5/lib/perl5 > /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 > /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 > /usr/local/lib/site_perl .) at ./usr/local/nagios/libexec/ > check_iftraffic4.pl line 247. > > BEGIN failed--compilation aborted at ./usr/local/nagios/libexec/ > check_iftraffic4.pl line 247. > > ** ** > > Net::DNS is installed. > > ** ** > > Any thoughts? > > ** ** > > -- > > Martin T. Hugo > > Network Administrator > > Hilliard City Schools > > 614-921-7102 (Ph) > > 614-921-7243 (Fax) > > ** ** > > > -- > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. SALE $99.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122412 > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Regards Sunil Sankar -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios Permissions Error ?
Please install apt-get install libnet-dns-perl On Tue, Jan 15, 2013 at 2:35 AM, Sunil Sankar wrote: > This is a due to missing cpan module > > On Tue, Jan 15, 2013 at 1:21 AM, Martin Hugo wrote: > >> Hi Everyone, >> >> ** ** >> >> I have recently rebuilt Nagios 3.4.3 on Ubuntu 12.04 and am having a >> problem with a couple of plugins that I think is related to a permissions >> issue. >> >> ** ** >> >> I installed from source as root (sudo su). >> >> ** ** >> >> I can run ./usr/local/nagios/libexec/check_iftraffic4.pl -H >> -C -i F24 -b 100 -u m from the command line as root no >> problem, however the web interface shows critical (nul). >> >> ** ** >> >> If I try to run the same command logged in as any other user, I get >> >> ** ** >> >> Can't locate Net/DNS.pm in @INC (@INC contains: >> /root/perl5/lib/perl5/x86_64-linux-gnu-thread-multi /root/perl5/lib/perl5 >> /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 >> /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 >> /usr/local/lib/site_perl .) at ./usr/local/nagios/libexec/ >> check_iftraffic4.pl line 247. >> >> BEGIN failed--compilation aborted at ./usr/local/nagios/libexec/ >> check_iftraffic4.pl line 247. >> >> ** ** >> >> Net::DNS is installed. >> >> ** ** >> >> Any thoughts? >> >> ** ** >> >> -- >> >> Martin T. Hugo >> >> Network Administrator >> >> Hilliard City Schools >> >> 614-921-7102 (Ph) >> >> 614-921-7243 (Fax) >> >> ** ** >> >> >> -- >> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, >> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current >> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft >> MVPs and experts. SALE $99.99 this month only -- learn more at: >> http://p.sf.net/sfu/learnmore_122412 >> ___ >> Nagios-users mailing list >> Nagios-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nagios-users >> ::: Please include Nagios version, plugin version (-v) and OS when >> reporting any issue. >> ::: Messages without supporting info will risk being sent to /dev/null >> > > > > -- > Regards > Sunil Sankar -- Regards Sunil Sankar -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Nagios Permissions Error ?
Hi Everyone, I have recently rebuilt Nagios 3.4.3 on Ubuntu 12.04 and am having a problem with a couple of plugins that I think is related to a permissions issue. I installed from source as root (sudo su). I can run ./usr/local/nagios/libexec/check_iftraffic4.pl -H -C -i F24 -b 100 -u m from the command line as root no problem, however the web interface shows critical (nul). If I try to run the same command logged in as any other user, I get Can't locate Net/DNS.pm in @INC (@INC contains: /root/perl5/lib/perl5/x86_64-linux-gnu-thread-multi /root/perl5/lib/perl5 /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at ./usr/local/nagios/libexec/check_iftraffic4.pl line 247. BEGIN failed--compilation aborted at ./usr/local/nagios/libexec/check_iftraffic4.pl line 247. Net::DNS is installed. Any thoughts? -- Martin T. Hugo Network Administrator Hilliard City Schools 614-921-7102 (Ph) 614-921-7243 (Fax) -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null