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
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 <debian at robertain.com> 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...
Full log /var/log/messages < http://serveur/hobbit-cgi/bb-hostsvc.sh?CLIENT=Serveur.robertain.com&SECTION...
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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 <debian at robertain.com <mailto:debian at robertain.com>> 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 To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk <mailto:hobbit-unsubscribe at hswn.dk>
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)
On Fri, 26 Feb 2010 00:37:52 +0100, mickael <debian at robertain.com> 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 <debian at robertain.com <mailto:debian at robertain.com>> 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 To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk <mailto:hobbit-unsubscribe at hswn.dk>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)
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
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
padraig.lennon at pioneerinvestments.com | www.pioneerinvestments.com
Please consider the environment before printing this e-mail
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" <Padraig.Lennon at pioneerinvestments.com> To: hobbit at hswn.dk 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
padraig.lennon at pioneerinvestments.com | www.pioneerinvestments.com
Please consider the environment before printing this e-mail
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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" <Padraig.Lennon at pioneerinvestments.com> To: hobbit at hswn.dk 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
padraig.lennon at pioneerinvestments.com | www.pioneerinvestments.com
Please consider the environment before printing this e-mail
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
padraig.lennon at pioneerinvestments.com | www.pioneerinvestments.com
Please consider the environment before printing this e-mail
-----Original Message----- From: Jerald Sheets [mailto:questy at gmail.com] Sent: 26 February 2010 21:51 To: hobbit at hswn.dk 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" <Padraig.Lennon at pioneerinvestments.com> To: hobbit at hswn.dk 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
padraig.lennon at pioneerinvestments.com | www.pioneerinvestments.com
Please consider the environment before printing this e-mail
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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...
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
padraig.lennon at pioneerinvestments.com | www.pioneerinvestments.com
Please consider the environment before printing this e-mail
-----Original Message----- From: Odinn [mailto:odinn_asgaard at yahoo.com] Sent: 26 February 2010 21:42 To: hobbit at hswn.dk 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" <Padraig.Lennon at pioneerinvestments.com> To: hobbit at hswn.dk 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
padraig.lennon at pioneerinvestments.com | www.pioneerinvestments.com
Please consider the environment before printing this e-mail
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Fri, February 26, 2010 03:39, doctor at makelofine.org wrote:
On Fri, 26 Feb 2010 00:37:52 +0100, mickael <debian at robertain.com> 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 <debian at robertain.com <mailto:debian at robertain.com>> 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 To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk <mailto:hobbit-unsubscribe at hswn.dk>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)
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
Xymon User in Richmond wrote:
On Fri, February 26, 2010 03:39, doctor at makelofine.org wrote:
On Fri, 26 Feb 2010 00:37:52 +0100, mickael <debian at robertain.com> 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 <debian at robertain.com <mailto:debian at robertain.com>> 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 To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk <mailto:hobbit-unsubscribe at hswn.dk>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)
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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":
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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 ?
participants (7)
-
debian@robertain.com
-
doctor@makelofine.org
-
hobbit@epperson.homelinux.net
-
lebarber@gmail.com
-
odinn_asgaard@yahoo.com
-
Padraig.Lennon@pioneerinvestments.com
-
questy@gmail.com