Xymon Mailing List Archive search

problem apt

11 messages in this thread

list Mickael · Thu, 25 Feb 2010 23:39:26 +0100 ·
Hi , 
I'm new user hobbit and i must migrate our solution monitoring nagios to hobbit . I test hobbit from VM with a client and a server. I have some problems : first : i obtain this message : Packages not installed from apt repositories:
   postfixadmin (2.3)

How to edit hobbit no longer have this error ? 
Second problem i obtain this error : No entries in /var/log/messages <http://serveur/hobbit-cgi/bb-hostsvc.sh?CLIENT=Serveur.robertain.com&SECTION=msgs:/var/log/messages>;
Full log /var/log/messages <http://serveur/hobbit-cgi/bb-hostsvc.sh?CLIENT=Serveur.robertain.com&SECTION=msgs:/var/log/messages>;
Cannot open logfile /var/log/messages : Permission denied

What user hobbit use for open a file on the system ? Thank you for your help 
Best Regards , Mickael
list Larry Barber · Thu, 25 Feb 2010 16:57:02 -0600 ·
In order to monitor /var/log/messages the hobbit user must be able to read
the file, which by default is only readable by root. You either add hobbit
to the root group, or what I usually do is make /var/log/messages use the
hobbit group id.

You also need to install the postfixadm package, see the apt-get man page
for details. This package is necessary to run the postfix mail server.

Thanks,
Larry Barber
quoted from Mickael

On Thu, Feb 25, 2010 at 4:39 PM, mickael <user-e9a67911a618@xymon.invalid> wrote:
Hi ,
I'm new user hobbit and i must migrate our solution monitoring nagios to
hobbit . I test hobbit from VM with a client and a server. I have some
problems : first : i obtain this message : Packages not installed from apt
repositories:
 postfixadmin (2.3)

How to edit hobbit no longer have this error ?
Second problem i obtain this error : No entries in /var/log/messages <
http://serveur/hobbit-cgi/bb-hostsvc.sh?CLIENT=Serveur.robertain.com&SECTION=msgs:/var/log/messages
Full log /var/log/messages <
http://serveur/hobbit-cgi/bb-hostsvc.sh?CLIENT=Serveur.robertain.com&SECTION=msgs:/var/log/messages
Cannot open logfile /var/log/messages : Permission denied

What user hobbit use for open a file on the system ? Thank you for your
help
Best Regards , Mickael

list Mickael · Fri, 26 Feb 2010 00:37:52 +0100 ·
quoted from Larry Barber
Larry Barber wrote:
In order to monitor /var/log/messages the hobbit user must be able to read the file, which by default is only readable by root. You either add hobbit to the root group, or what I usually do is make /var/log/messages use the hobbit group id.

You also need to install the postfixadm package, see the apt-get man page for details. This package is necessary to run the postfix mail server.

Thanks,
Larry Barber

On Thu, Feb 25, 2010 at 4:39 PM, mickael <user-e9a67911a618@xymon.invalid <mailto:user-e9a67911a618@xymon.invalid>> wrote:

    Hi ,
    I'm new user hobbit and i must migrate our solution monitoring
    nagios to hobbit . I test hobbit from VM with a client and a
    server. I have some problems : first : i obtain this message :
    Packages not installed from apt repositories:
     postfixadmin (2.3)

    How to edit hobbit no longer have this error ?
    Second problem i obtain this error : No entries in /var/log/messages

    Full log /var/log/messages
quoted from Larry Barber
    Cannot open logfile /var/log/messages : Permission denied

    What user hobbit use for open a file on the system ? Thank you for
    your help
    Best Regards , Mickael

Ok i put hobbit in the root group .
For postfixadm , it already work correctly , i don't need install the packages with apt. I just want , don't have the error :
Packages not installed from apt repositories:
 postfixadmin (2.3)
list dOCtoR MADneSs · Fri, 26 Feb 2010 09:39:54 +0100 ·
quoted from Mickael
On Fri, 26 Feb 2010 00:37:52 +0100, mickael <user-e9a67911a618@xymon.invalid> wrote:
Larry Barber wrote:
In order to monitor /var/log/messages the hobbit user must be able to 
read the file, which by default is only readable by root. You either 
add hobbit to the root group, or what I usually do is make 
/var/log/messages use the hobbit group id.

You also need to install the postfixadm package, see the apt-get man 
page for details. This package is necessary to run the postfix mail 
server.

Thanks,
Larry Barber

On Thu, Feb 25, 2010 at 4:39 PM, mickael <user-e9a67911a618@xymon.invalid 
<mailto:user-e9a67911a618@xymon.invalid>> wrote:

    Hi ,
    I'm new user hobbit and i must migrate our solution monitoring
    nagios to hobbit . I test hobbit from VM with a client and a
    server. I have some problems : first : i obtain this message :
    Packages not installed from apt repositories:
     postfixadmin (2.3)

    How to edit hobbit no longer have this error ?
    Second problem i obtain this error : No entries in
/var/log/messages
    Full log /var/log/messages
    Cannot open logfile /var/log/messages : Permission denied

    What user hobbit use for open a file on the system ? Thank you for
    your help
    Best Regards , Mickael

Ok i put hobbit in the root group .
For postfixadm , it already work correctly , i don't need install the 
packages with apt. I just want , don't have the error :
Packages not installed from apt repositories:
 postfixadmin (2.3)

This error is due to the fact that the source of this package is not
referenced in your APT servers. I had to comment the line 149 in
bb-check-apt.pl to disable this alert. I don't mind about package sources,
because I'm the only that can install packages.

About your persimssion issue, I disagree with the answer you get, adding
xymon, that has automated scripts (like plugins) is not very secure I
think. So I use ACL  (on ext3 FS) to get xymon the right to read some
files, as /var/log/messages.

Regards,
Damien
list Padraig Lennon · Fri, 26 Feb 2010 21:03:05 +0100 ·
Is there a quick way in Hobbit/Xymon to check that certain drives are
actually mounted on a given client?

I want to be alerted if a drive is not mounted.. (for restart etc...)

Thanks

 
Padraig Lennon Senior Systems Integration Engineer

Pioneer Investments Management Ltd
5th Floor |Georges Quay Plaza | Georges Quay | Dublin 2 | Rep. of
Ireland
Tel.  +353 (0)1 480.2081 
user-7738cfcc6ae0@xymon.invalid | www.pioneerinvestments.com

Please consider the environment before printing this e-mail

-------------- next part --------------


"The information in this e-mail and in any attachments is confidential and intended solely for the attention and use of the named addressee(s). This information may be subject to legal, professional or other privilege and further distribution of it is strictly prohibited without our authority. If you are not the intended recipient, you are not authorised to and must not disclose, copy, distribute, or retain this message or any part of it, and should notify us immediately.

This footnote also confirms that this email has been automatically scanned for the presence of computer viruses, profanities and certain file types."

Pioneer Investment Management Limited.

1 George’s Quay Plaza, George’s Quay, Dublin 2, Ireland. 
Registered in Ireland no. 287793.
list Xymon User in Richmond · Fri, 26 Feb 2010 15:30:55 -0500 ·
quoted from dOCtoR MADneSs
On Fri, February 26, 2010 03:39, user-d54077869176@xymon.invalid wrote:
On Fri, 26 Feb 2010 00:37:52 +0100, mickael <user-e9a67911a618@xymon.invalid> wrote:
Larry Barber wrote:
In order to monitor /var/log/messages the hobbit user must be able to
read the file, which by default is only readable by root. You either
add hobbit to the root group, or what I usually do is make
/var/log/messages use the hobbit group id.

You also need to install the postfixadm package, see the apt-get man
page for details. This package is necessary to run the postfix mail
server.

Thanks,
Larry Barber

On Thu, Feb 25, 2010 at 4:39 PM, mickael <user-e9a67911a618@xymon.invalid
<mailto:user-e9a67911a618@xymon.invalid>> wrote:

    Hi ,
    I'm new user hobbit and i must migrate our solution monitoring
    nagios to hobbit . I test hobbit from VM with a client and a
    server. I have some problems : first : i obtain this message :
    Packages not installed from apt repositories:
     postfixadmin (2.3)

    How to edit hobbit no longer have this error ?
    Second problem i obtain this error : No entries in
/var/log/messages
    Full log /var/log/messages
    Cannot open logfile /var/log/messages : Permission denied

    What user hobbit use for open a file on the system ? Thank you for
    your help
    Best Regards , Mickael

Ok i put hobbit in the root group .
For postfixadm , it already work correctly , i don't need install the
packages with apt. I just want , don't have the error :
Packages not installed from apt repositories:
 postfixadmin (2.3)

This error is due to the fact that the source of this package is not
referenced in your APT servers. I had to comment the line 149 in
bb-check-apt.pl to disable this alert. I don't mind about package sources,
because I'm the only that can install packages.

About your persimssion issue, I disagree with the answer you get, adding
xymon, that has automated scripts (like plugins) is not very secure I
think. So I use ACL  (on ext3 FS) to get xymon the right to read some
files, as /var/log/messages.
From a 11/2009 post by Christoph Berg, it appears that what may also work
to avoid the alert is to put the package on "hold":
echo postfixadmin hold | dpkg --set-selections
list Odinn · Fri, 26 Feb 2010 13:42:10 -0800 (PST) ·
If you are referring to NFS mounted drives, it would be a simple script to write to check using showmount
 --


Jim Sloan


Just remember, today is the day you thought tomorrow was going to be yesterday.
quoted from Padraig Lennon


----- Original Message ----
From: "Lennon, Padraig" <user-7738cfcc6ae0@xymon.invalid>
To: user-ae9b8668bcde@xymon.invalid
Sent: Fri, February 26, 2010 3:03:05 PM
Subject: [hobbit] Check for mounted drives on *nix servers

Is there a quick way in Hobbit/Xymon to check that certain drives are
actually mounted on a given client?

I want to be alerted if a drive is not mounted.. (for restart etc...)

Thanks


Padraig Lennon 
Senior Systems Integration Engineer

Pioneer Investments Management Ltd
5th Floor |Georges Quay Plaza | Georges Quay | Dublin 2 | Rep. of
Ireland
Tel.  +353 (0)1 480.2081 

user-7738cfcc6ae0@xymon.invalid | www.pioneerinvestments.com

Please consider the environment before printing this e-mail
list Jerald Sheets · Fri, 26 Feb 2010 16:50:34 -0500 ·
You can even toss an empty file on the mount and use the file check facility to just check for it's existence.  If you can't see it, the filesystem isn't mounted.

I use a hidden file:


/path/to/mount/.isAvail

Works like a champ.


--j
quoted from Odinn


On Feb 26, 2010, at 4:42 PM, Odinn wrote:
If you are referring to NFS mounted drives, it would be a simple script to write to check using showmount
--


Jim Sloan


Just remember, today is the day you thought tomorrow was going to be yesterday.


----- Original Message ----
From: "Lennon, Padraig" <user-7738cfcc6ae0@xymon.invalid>
To: user-ae9b8668bcde@xymon.invalid
Sent: Fri, February 26, 2010 3:03:05 PM
Subject: [hobbit] Check for mounted drives on *nix servers

Is there a quick way in Hobbit/Xymon to check that certain drives are
actually mounted on a given client?

I want to be alerted if a drive is not mounted.. (for restart etc...)

Thanks


Padraig Lennon Senior Systems Integration Engineer

Pioneer Investments Management Ltd
5th Floor |Georges Quay Plaza | Georges Quay | Dublin 2 | Rep. of
Ireland
Tel.  +353 (0)1 480.2081 
user-7738cfcc6ae0@xymon.invalid | www.pioneerinvestments.com

Please consider the environment before printing this e-mail

list Padraig Lennon · Fri, 26 Feb 2010 22:59:13 +0100 ·
Nope.. Just SAN attached drives.. Thanks though, Was just wondering if
there was something built in that I could use.. 

In the meantime i've written a draft server-side perl script based on
rootlogin.pl which parses the client data from *nix servers and checks
against a predefined array of servers and drives.. Makes it easier...


my %hosts = (
    server1 => [ "/path/of/drive1", "/path/of/drive2" ],
    server2 => [ "/path/of/drive1", "/path/of/drive2" ],
    server3 => [ "/path/of/drive1", "/path/of/drive2" ],
);

Etc....

It sends a status message called chkmnt like so...

Mounted Drive Check - server1

green /path/of/drive1 is mounted
red /path/of/drive2 is NOT mounted
green /path/of/drive3 is mounted

...


If anyone wants a copy I can put it up on the shire...
quoted from Jerald Sheets

Padraig Lennon 
Senior Systems Integration Engineer

Pioneer Investments Management Ltd
5th Floor |Georges Quay Plaza | Georges Quay | Dublin 2 | Rep. of
Ireland
Tel.  +353 (0)1 480.2081 

user-7738cfcc6ae0@xymon.invalid | www.pioneerinvestments.com

Please consider the environment before printing this e-mail

-----Original Message-----
From: Odinn [mailto:user-385fc81b8782@xymon.invalid] 
Sent: 26 February 2010 21:42
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Check for mounted drives on *nix servers

If you are referring to NFS mounted drives, it would be a simple script
to write to check using showmount
 --


Jim Sloan


Just remember, today is the day you thought tomorrow was going to be
yesterday.


----- Original Message ----
From: "Lennon, Padraig" <user-7738cfcc6ae0@xymon.invalid>
To: user-ae9b8668bcde@xymon.invalid
Sent: Fri, February 26, 2010 3:03:05 PM
Subject: [hobbit] Check for mounted drives on *nix servers

Is there a quick way in Hobbit/Xymon to check that certain drives are
actually mounted on a given client?

I want to be alerted if a drive is not mounted.. (for restart etc...)

Thanks


Padraig Lennon 
Senior Systems Integration Engineer

Pioneer Investments Management Ltd
5th Floor |Georges Quay Plaza | Georges Quay | Dublin 2 | Rep. of
Ireland
Tel.  +353 (0)1 480.2081 

user-7738cfcc6ae0@xymon.invalid | www.pioneerinvestments.com

Please consider the environment before printing this e-mail


-------------- next part --------------


"The information in this e-mail and in any attachments is confidential and intended solely 
for the attention and use of the named addressee(s). This information may be subject to legal, 
professional or other privilege and further distribution of it is strictly prohibited without 
our authority. If you are not the intended recipient, you are not authorised to and must not 
disclose, copy, distribute, or retain this message or any part of it, and should notify us 
immediately.

This footnote also confirms that this email has been automatically scanned for the presence 
of computer viruses, profanities and certain file types."

Pioneer Investment Management Limited.

1 George’s Quay Plaza, George’s Quay, Dublin 2, Ireland. 

Registered in Ireland no. 287793.
list Padraig Lennon · Fri, 26 Feb 2010 23:00:09 +0100 ·
Good idea... 
Thanks 

Padraig Lennon Senior Systems Integration Engineer

Pioneer Investments Management Ltd
5th Floor |Georges Quay Plaza | Georges Quay | Dublin 2 | Rep. of
Ireland
Tel.  +353 (0)1 480.2081 
user-7738cfcc6ae0@xymon.invalid | www.pioneerinvestments.com

Please consider the environment before printing this e-mail

-----Original Message-----
From: Jerald Sheets [mailto:user-96a6f34c5806@xymon.invalid] Sent: 26 February 2010 21:51
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Check for mounted drives on *nix servers

You can even toss an empty file on the mount and use the file check
facility to just check for it's existence.  If you can't see it, the
filesystem isn't mounted.

I use a hidden file:


/path/to/mount/.isAvail

Works like a champ.


--j


On Feb 26, 2010, at 4:42 PM, Odinn wrote:
If you are referring to NFS mounted drives, it would be a simple
script to write to check using showmount
--


Jim Sloan


Just remember, today is the day you thought tomorrow was going to be
yesterday.


----- Original Message ----
From: "Lennon, Padraig" <user-7738cfcc6ae0@xymon.invalid>
To: user-ae9b8668bcde@xymon.invalid
Sent: Fri, February 26, 2010 3:03:05 PM
Subject: [hobbit] Check for mounted drives on *nix servers

Is there a quick way in Hobbit/Xymon to check that certain drives are
actually mounted on a given client?

I want to be alerted if a drive is not mounted.. (for restart etc...)

Thanks


Padraig Lennon Senior Systems Integration Engineer

Pioneer Investments Management Ltd
5th Floor |Georges Quay Plaza | Georges Quay | Dublin 2 | Rep. of
Ireland
Tel.  +353 (0)1 480.2081 
user-7738cfcc6ae0@xymon.invalid | www.pioneerinvestments.com

Please consider the environment before printing this e-mail

-------------- next part --------------


"The information in this e-mail and in any attachments is confidential and intended solely for the attention and use of the named addressee(s). This information may be subject to legal, professional or other privilege and further distribution of it is strictly prohibited without our authority. If you are not the intended recipient, you are not authorised to and must not disclose, copy, distribute, or retain this message or any part of it, and should notify us immediately.

This footnote also confirms that this email has been automatically scanned for the presence of computer viruses, profanities and certain file types."

Pioneer Investment Management Limited.

1 George’s Quay Plaza, George’s Quay, Dublin 2, Ireland. 
Registered in Ireland no. 287793.
list Mickael · Sat, 27 Feb 2010 10:42:12 +0100 ·
quoted from Xymon User in Richmond
Xymon User in Richmond wrote:
On Fri, February 26, 2010 03:39, user-d54077869176@xymon.invalid wrote:
  
On Fri, 26 Feb 2010 00:37:52 +0100, mickael <user-e9a67911a618@xymon.invalid> wrote:
    
Larry Barber wrote:
      
In order to monitor /var/log/messages the hobbit user must be able to
read the file, which by default is only readable by root. You either
add hobbit to the root group, or what I usually do is make
/var/log/messages use the hobbit group id.

You also need to install the postfixadm package, see the apt-get man
page for details. This package is necessary to run the postfix mail
server.

Thanks,
Larry Barber

On Thu, Feb 25, 2010 at 4:39 PM, mickael <user-e9a67911a618@xymon.invalid
<mailto:user-e9a67911a618@xymon.invalid>> wrote:

    Hi ,
    I'm new user hobbit and i must migrate our solution monitoring
    nagios to hobbit . I test hobbit from VM with a client and a
    server. I have some problems : first : i obtain this message :
    Packages not installed from apt repositories:
     postfixadmin (2.3)

    How to edit hobbit no longer have this error ?
    Second problem i obtain this error : No entries in
        
/var/log/messages
    
    Full log /var/log/messages
    Cannot open logfile /var/log/messages : Permission denied

    What user hobbit use for open a file on the system ? Thank you for
    your help
    Best Regards , Mickael

Ok i put hobbit in the root group .
For postfixadm , it already work correctly , i don't need install the
packages with apt. I just want , don't have the error :
Packages not installed from apt repositories:
 postfixadmin (2.3)

This error is due to the fact that the source of this package is not
referenced in your APT servers. I had to comment the line 149 in
bb-check-apt.pl to disable this alert. I don't mind about package sources,
because I'm the only that can install packages.

About your persimssion issue, I disagree with the answer you get, adding
xymon, that has automated scripts (like plugins) is not very secure I
think. So I use ACL  (on ext3 FS) to get xymon the right to read some
files, as /var/log/messages.

    
From a 11/2009 post by , it appears that what may also work
to avoid the alert is to put the package on "hold":

Already thank you for your help . i had test this night your solution
for read the log message chmod 644 on the file and it's ok now :) . But
i have always a problem with apt. 


I have the same problems , I tried what you told me "echo postfixadmin hold | dpkg --set-selections" after i check that the parameter is ok with :

$ dpkg --get-selections |grep post

libpostproc51                    install

postfix                        install

postfix-mysql                    install

postfixadmin                    hold  ====> status is hold  

I have always the same problem 

Packages not installed from apt repositories:

   postfixadmin (2.3)

Are you a other idea ?