nagios.cmd external

Israel Brewster israel at frontierflying.com
Mon Jan 22 19:28:46 CET 2007


On Jan 22, 2007, at 9:05 AM, Nedim Bicic wrote:

> yeah i think thats the problem i am loging in as nagiosadmin but  
> from what i copied and pasted from documentation in nagios created  
> user nobody and nagios '
>
> But when i log into nagios i am logging in as nagiosadmin not  
> nobody or nagios i tried adding nagiosadmin with this command:
>
> /usr/sbin/usermod -G nagiocmd nagiosadmin
> usermod: user nagiosadmin does not exist
>
> keeps giving me this error
> but i think difinitly this might be casuing the error can you show  
> me what i can do to add the user to this group or check weather it  
> has been added??

Yeah. The key here is that you need the user your webserver RUNS as,  
NOT the user you log into your webpages as. You can find this by  
looking at your httpd.conf file, the User directive. Usually it is  
either apache or www, but this can vary. once you have found that,  
use the command you tried above with that user to add it to the  
nagiocmd group.

>
> thanks
>
>
>
>
> On 1/22/07, Israel Brewster <israel at frontierflying.com> wrote: On  
> Jan 22, 2007, at 8:30 AM, Nedim Bicic wrote:
>
> > ok and here is what i have for my permission set since thats
> > indicating to be the problem
> >
> > > ls -al
> > total 612
> > drwxr-xr-x  4 nagios nagios     4096 Jan 22 12:20 .
> > drwxr-xr-x  6 root   root       4096 Jan 21 04:02 ..
> > drwxr-xr-x  2 nagios nagios     4096 Jan 22 00:00 archives
> > -rw-rw-r--  1 nagios nagios      238 Jan 21 09:18 comments.dat
> > -rw-------  1 nagios nagios    16161 Jan  2 09:45 dead.letter
> > -rw-rw-r--  1 nagios nagios      239 Nov  1 19:59 downtime.dat
> > -rw-rw-r--  1 nagios nagios    24965 Jan 22 12:12 nagios.log
> > -rw-------  1 nagios nagios    18260 Jan  2 13:34 nagios.tmpXc4VgH
> > -rw-r--r--  1 nagios nagios   146210 Jan 22 11:53 objects.cache
> > -rw-------  1 nagios nagios   180872 Jan 22 11:53 retention.dat
> > drwxrwsr-x  2 nagios nagiocmd   4096 Jan 22 11:53 rw
> > -rw-rw-r--  1 nagios nagios   173636 Jan 22 12:20 status.dat
> > > cd rw
> > > ls
> > nagios.cmd
> > > ls -al
> > total 16
> > drwxrwsr-x  2 nagios nagiocmd 4096 Jan 22 11:53 .
> > drwxr-xr-x  4 nagios nagios   4096 Jan 22 12:21 ..
> > prw-rw----  1 nagios nagiocmd    0 Jan 22 11:53 nagios.cmd
> >
> >
> > everything is how it suppose to be as shown in the manual
> >
> > need help nagios.cmd file is there just can not edit anything and i
> > have external_command enables and interval check set to -1
> >
> >
> > thanks
>
> I'm coming into this discussion late, and haven't read all the back
> messages, so I apologize if this has already been asked, but is the
> user your webserver runs under in the nagiocmd group?
>
> -----------------------------------------------
> Israel Brewster
> Computer Support Technician
> Frontier Flying Service INC.
> 5245 Airport Industrial Rd
> Fairbanks, AK 99709
> -----------------------------------------------
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On 1/22/07, Marc Powell <marc at ena.com> wrote:
> >
> > > -----Original Message-----
> > > From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-
> > users-
> > > bounces at lists.sourceforge.net] On Behalf Of Nedim Bicic
> > > Sent: Sunday, January 21, 2007 5:33 PM
> > > To: nagios-users at lists.sourceforge.net
> > > Subject: [Nagios-users] nagios.cmd external
> > >
> > > Hi all, i have nagios 2.4
> > >
> > > I need want to change and input settings via the web interface  
> like
> > > scheduale downtime etc, which i read that the external command  
> does
> > this i
> > > enabled it in nagiod.cfg =1
> > > but i aslo found out that you need to create a nagios.cmd file and
> > give it
> > > directory permission , located in one of the folders that keeps  
> this
> > log
> > >
> > > my question is how do i create this file and make it point to
> > external
> > > command so when i do isue an extenal command on web interface
> >
> > Please read the documentation for the section titled 'External
> > Commands'. It answers all your questions.
> >
> > --
> > Marc
> >
> >
> >  
> ----------------------------------------------------------------------
> > ---
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> > share your
> > opinions on IT & business topics through brief surveys - and earn  
> cash
> > http://www.techsay.com/default.php?
> > page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Nagios-users mailing list
> > Nagios-users at 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
> >
> >  
> ----------------------------------------------------------------------
> > ---
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> > share your
> > opinions on IT & business topics through brief surveys - and earn  
> cash
> > http://www.techsay.com/default.php?
> >  
> page=join.php&p=sourceforge&CID=DEVDEV________________________________
> > _______________
> > Nagios-users mailing list
> > Nagios-users at 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
>
>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list