Re: [Nagios-users] Nagvis authentication problems

2007-03-27 Thread Jorg . Schulz
Hi 

 

Check out this Link 

HYPERLINK
"http://nagvis.org/doku.php?id=installationinstructions_1_0"http://nagvis.
org/doku.php?id=installationinstructions_1_0 Latest version

HYPERLINK
"http://nagvis.org/doku.php?id=installationinstructions_0_9"http://nagvis.
org/doku.php?id=installationinstructions_0_9

 

 

/J

 

 

Från: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] För Holmes Robert
Skickat: den 28 mars 2007 00:14
Till: nagios-users@lists.sourceforge.net
Ämne: [Nagios-users] Nagvis authentication problems

 

Greetings,

 

I'm having a bit of trouble getting the .htaccess file (s) and Apache
configuration set for using NagVis. 

 

I'm running CentOS 4.4 with Apache 2 and PHP 5.

 

My Nagios version is 2.8 and I'm trying to use Nagvis 0.9.

 

Could anyone using NagVis please shed some light on this for me. A how-to
link or some specific instructions would be great. I don't read or speak
German, so most of the Nagios community sites and message boards aren't
much help to me.

 

For the record, my Nagios install and the NDOUtils install are both
working fine.

 

Thanks

 

 

Rob


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.18/734 - Release Date:
2007-03-26 14:31



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.18/734 - Release Date:
2007-03-26 14:31
 
-
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@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] service timeout

2007-03-27 Thread Lars Stavholm
Marc Powell wrote:
> 
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:nagios-users-
>> [EMAIL PROTECTED] On Behalf Of Lars Stavholm
>> Sent: Tuesday, March 27, 2007 4:44 PM
>> To: nagios-users@lists.sourceforge.net
>> Subject: [Nagios-users] service timeout
>>
> 
> 
>> Q: Is there any way one could define time out on one service
>>rather than all services?
> 
> Standard plugins mostly support a -t switch to specify the timeout for
> the plugin. The nagios.cfg service check timeout is a catch-all for
> those that don't terminate themselves when they should. Ideally, each
> command definition would have a specific timeout for each plugin defined
> with -t and the nagios.cfg timeout would be the max possible value of
> your timeouts. In that scenario individual plugins would have unique
> timeout values and your max would catch any runaways. You could go
> further with that and actually pass the timeout value as a $ARGx$ macro
> to the command from your service definition allowing you very specific
> granularity in your timeout control.
> 
> Since the duration of the run-time for your check is so long, I agree
> that it probably makes more sense to either run it out of cron and have
> it submit a passive check result or have it update a file that you then
> parse as an active check in nagios.

Thanks for that. The plugin in question (check_rootkit) is a
simple shell without any timeout option. I'm going for the
passive check solution.

Thank you
/Lars


-
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@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] Restart service problem with sudo

2007-03-27 Thread Sil
Le mardi 27 mars 2007 21:00, Andy Shellam a écrit :
> check your /etc/sudoers
> file does not have a "defaults requiretty" option set - if it does,
> comment it out and try your event handler again.

Thanks, I check my sudoers file and there's no "defaults requiretty" 
line but
I've try it and the result is :
Mar 27 19:21:01 localhost sudo:   nagios : sorry, you must have a tty to 
run
sudo ; TTY=unknown ; PWD=/var/log/nagios ; USER=root ;
COMMAND=/etc/init.d/mysql restart

and if I change the line in "defaults ! requiretty" or if I remove it the
result is the same :
Mar 27 19:23:01 localhost sudo:   nagios : TTY=unknown ; 
PWD=/var/log/nagios ;
USER=root ; COMMAND=/etc/init.d/mysql restart
But mysql don't restart.
I don't understand. :-(

I test a cron job too with the plugin on the nagios user and it works !
# 23 19 27 3 2 /usr/lib/nagios/plugins/eventhandlers/restart-mysql CRITICAL
SOFT 3
The log (the same) :
Mar 27 19:38:21 localhost sudo:   nagios : TTY=unknown ; 
PWD=/var/log/nagios ;
USER=root ; COMMAND=/etc/init.d/mysql restart
And mysql restarts !

It's very strange a cron job works but a nagios command fail and no logs 
have
any errors.

If someone have any ideas...
Thanks
Sil

PS sorry for the answer on your personal address.




-
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@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] ndoutils compile error

2007-03-27 Thread Sjaak Nabuurs
Hello

I can't get ndoutils compiled.
After many weeks starting again and again I can't get ndoutils compiled 
on 1 server.
I.ve run ndoutils on 2 more servers without any problems.
Can anybody point me to the problem.

System FC5
MySQL5 version 5.0.27 running as webserver updated from version 4.1.xx
Installed without problems
MySQL-client-5.0.27-0.i386.rpm
MySQL-devel-5.0.27-0.i386.rpm
MySQL-server-5.0.27-0.i386.rpm
MySQL-shared-5.0.27-0.i386.rpm

ldconfig
# ldconfig -v|grep mysql
/usr/lib/mysql:
libmysqlclient_r.so.14 -> libmysqlclient_r.so.15
libmysqlclient.so.10 -> libmysqlclient.so.10.0.0
libmysqlclient_r.so.10 -> libmysqlclient_r.so.10.0.0
libmysqlclient.so.14 -> libmysqlclient.so.15

phpinfo shows
Active Persistent Links 1
Active Links 1
Client API version 5.0.27
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient

Mysql client and the server shows both version 5.0.27

compiled with
 ./configure --prefix /usr/local/nagios --with-mysql-lib=/usr/lib/mysql 
--with-mysql-incl=/usr/include/mysql --enable-pgsql=no


Compile error

checking for strdup... yes
checking for strstr... yes
checking for strtoul... yes
checking for initgroups... yes
checking for type of socket size... size_t
checking for linker flags for loadable modules... -shared
checking for mysql_store_result in -lmysqlclient... no   
<<<<


*** MySQL library could not be located... **

You chose to compile NDBXT with MySQL support, but I was unable to
locate the MySQL library on your system.  If the library is
installed,  use the --with-mysql-lib argument to specify the
location of the MySQL library.

NOTE: After you install the necessary libraries on your system:
  1. Make sure /etc/ld.so.conf has an entry for the directory in
 which the MySQL libraries are installed.
  2. Run 'ldconfig' to update the run-time linker options.
  3. Run 'make devclean' in the NDBXT distribution to clean out
 any old references to your previous compile.
  4. Rerun the configure script.

TIP: Try the following

 ./configure --with-mysql-lib=/usr/lib/mysql




checking mysql/mysql.h usability... yes
checking mysql/mysql.h presence... yes
checking for mysql/mysql.h... yes
checking for PQconnectdb in -lpq... no

Thanks for the time
If you can help me I send you a nice cold beer :-)

Sjaak




-
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@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] Is it possible to nest check_by_ssh commands?

2007-03-27 Thread nemir nemiria
I have a nagios server monitoring a unix server and use check_by_ssh to get 
results.  It works great.

I have recently added a second NIC to this server to allow it to see a few 
boxes in a small isolated network.  The nagios server can't see these boxes 
directly and I was thinking that I might be able to nest check_by_ssh to run 
some checks on things like disk and cpu.


>From the unix server I can run the following on a command line and get an 
appropriate response.

check_by_ssh -t 20 -H 192.168.166.2 -C "/usr/local/nagios/libexec/check_disk 
-w 10% -c 7% -p /"


If I try to encapsulate that into a nested check_by_ssh I get the following:

check_by_ssh -t 40 -H 172.30.30.216 -C "/usr/local/nagios/check_by_ssh -t 20 
\
-H 192.168.166.5 -C "/usr/local/nagios/libexec/check_disk -w 10% -c 7% -p 
/""
check_by_ssh: invalid option -- w
check_by_ssh: Unknown argument - (null)

Is this possible to do?

Or do I need to write some scripts to encapsulate the check_by_ssh command 
instead?

TIA

Nemir

_
Advertisement: Meet Sexy Singles at Lavalife today. Click here 
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Flavalife9%2Eninemsn%2Ecom%2Eau%2Fclickthru%2Fclickthru%2Eact%3Fid%3Dninemsn%26context%3Dan99%26locale%3Den%5FAU%26a%3D25448&_t=754951090&_r=meet&_m=EXT


-
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@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] Is it possible to nest check_by_ssh commands?

2007-03-27 Thread nemir nemiria
I have a nagios server monitoring a unix server and use check_by_ssh to get 
results.  It works great.

I have recently added a second NIC to this server to allow it to see a few 
boxes in a small isolated network.  The nagios server can't see these boxes 
directly and I was thinking that I might be able to nest check_by_ssh to run 
some checks on things like disk and cpu.


>From the unix server I can run the following on a command line and get an 
appropriate response.

check_by_ssh -t 20 -H 192.168.166.2 -C "/usr/local/nagios/libexec/check_disk 
-w 10% -c 7% -p /"


If I try to encapsulate that into a nested check_by_ssh I get the following:

check_by_ssh -t 40 -H 172.30.30.216 -C "/usr/local/nagios/check_by_ssh -t 20 
\
-H 192.168.166.5 -C "/usr/local/nagios/libexec/check_disk -w 10% -c 7% -p 
/""
check_by_ssh: invalid option -- w
check_by_ssh: Unknown argument - (null)

Is this possible to do?

Or do I need to write some scripts to encapsulate the check_by_ssh command 
instead?

TIA

Nemir

_
Advertisement: Your Future Starts Here. Dream it? Then be it! Find it at 
www.seek.com.au  
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Eseek%2Ecom%2Eau%2F%3Ftracking%3Dsk%3Ahet%3Ask%3Anine%3A0%3Ahot%3Atext&_t=754951090&_r=seek&_m=EXT


-
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@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] Child host notify status problem

2007-03-27 Thread James Tran
Thomas Stocking wrote:
> Just for completeness sake, try this:
> stop nagios
> ps -ef |grep nagios
> If there are any nagios procs around after a minute or so, kill them. 
> The ps should come back clean.
> Start nagios. See if it recurrs.
> I'm guessing that an old nagios process is hanging around and giving 
> you these notifications. It has happened to me...
>Thomas
>
> James Tran wrote:
>> Thomas Stocking wrote:
>>> James,
>>> Nagios should be setting the dependent hosts to an unreachable 
>>> status when the parent host is down. This is the logic that allows 
>>> you to suppress notification for hosts being down "downstream" of a 
>>> router that fails.
>>> The most common problem I have seen with this is that the host 
>>> notify options are actually set to tell you when the host is 
>>> Unreachable. Take the "U" out of the host notifiy options, and you 
>>> should not see this happen any more.
>>> If, however, the hosts are set to status DOWN, then something else 
>>> is going on. You may be overloading Nagios, or some other inhibitor 
>>> is affecting it's ability to set the dependent hosts Unreachable.
>>>Thomas
>>>
>>> James Tran wrote:
 Hi i have some parent/child settings on my hosts

 All of my servers are set to be child hosts to 1 ROUTER. I had 
 tried to test my notifications by unplugging the ethernet interface 
 on the server running nagios to see if i get a million host 
 notifications and of course i still do.

 I wanted it to setup to check if the router is down first before 
 sending any notifications from the children hosts. For some reason 
 though the child hosts keep sending both service and host 
 notifications through even though it knows the router is down. So 
 every time it knows the router is down it still sending about 50 
 emails to me saying all my hosts are down.

 I even tried to double it up by setting host dependencies up by 
 setting all hosts dependent to the router but they still send 
 notifications.

 Is there any little setting in here i'm forgetting?

 Thanks,
 James

 - 

 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@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
   
>> Yeah i double checked to see if the unreachable status was taken off 
>> but it wasn't. So i removed them from all hosts and for some crazy 
>> reason... still getting host down messages. this is driving me nuts. 
>> What are the default permission and owners on the nagios files? maybe 
>> i have them different cause i'm running a frontend called oreon.
You're a genius. Thank you. Killing the old nagios and starting a new 
one fresh did the job. I guess just restarting it wouldn't do i had to 
do a kill -9 to bring it down.

-
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@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] monitor temperature on IBM servers

2007-03-27 Thread Dinçer Kavraal

Hi Enediel,
1) Have you installed net_snmp?
2) Do you have the MIB for temprature value of IBM server?


Dinçer

2007/3/27, enediel gonzalez <[EMAIL PROTECTED]>:


Hello.

I have nagios running on Linux, I need to monitor the temperature values
on
IBM servers,  I tried to do it installing Director on the servers and take
the information via snmp, but I found director a bit complex and I haven't
got the result I wanted.

Thanks in advance for any advice about this issue.

Enediel
Linux user 300141
Debian GNU/Linux

_
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


-
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@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@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] Child host notify status problem

2007-03-27 Thread Thomas Stocking
Just for completeness sake, try this:
stop nagios
ps -ef |grep nagios
If there are any nagios procs around after a minute or so, kill them. 
The ps should come back clean.
Start nagios. See if it recurrs.
I'm guessing that an old nagios process is hanging around and giving you 
these notifications. It has happened to me...
Thomas

James Tran wrote:
> Thomas Stocking wrote:
>> James,
>> Nagios should be setting the dependent hosts to an unreachable status 
>> when the parent host is down. This is the logic that allows you to 
>> suppress notification for hosts being down "downstream" of a router 
>> that fails.
>> The most common problem I have seen with this is that the host notify 
>> options are actually set to tell you when the host is Unreachable. 
>> Take the "U" out of the host notifiy options, and you should not see 
>> this happen any more.
>> If, however, the hosts are set to status DOWN, then something else is 
>> going on. You may be overloading Nagios, or some other inhibitor is 
>> affecting it's ability to set the dependent hosts Unreachable.
>>Thomas
>>
>> James Tran wrote:
>>> Hi i have some parent/child settings on my hosts
>>>
>>> All of my servers are set to be child hosts to 1 ROUTER. I had tried 
>>> to test my notifications by unplugging the ethernet interface on the 
>>> server running nagios to see if i get a million host notifications 
>>> and of course i still do.
>>>
>>> I wanted it to setup to check if the router is down first before 
>>> sending any notifications from the children hosts. For some reason 
>>> though the child hosts keep sending both service and host 
>>> notifications through even though it knows the router is down. So 
>>> every time it knows the router is down it still sending about 50 
>>> emails to me saying all my hosts are down.
>>>
>>> I even tried to double it up by setting host dependencies up by 
>>> setting all hosts dependent to the router but they still send 
>>> notifications.
>>>
>>> Is there any little setting in here i'm forgetting?
>>>
>>> Thanks,
>>> James
>>>
>>> - 
>>>
>>> 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@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
>>>   
> Yeah i double checked to see if the unreachable status was taken off 
> but it wasn't. So i removed them from all hosts and for some crazy 
> reason... still getting host down messages. this is driving me nuts. 
> What are the default permission and owners on the nagios files? maybe 
> i have them different cause i'm running a frontend called oreon.

-
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@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] Child host notify status problem

2007-03-27 Thread James Tran
Thomas Stocking wrote:
> James,
> Nagios should be setting the dependent hosts to an unreachable status 
> when the parent host is down. This is the logic that allows you to 
> suppress notification for hosts being down "downstream" of a router 
> that fails.
> The most common problem I have seen with this is that the host notify 
> options are actually set to tell you when the host is Unreachable. 
> Take the "U" out of the host notifiy options, and you should not see 
> this happen any more.
> If, however, the hosts are set to status DOWN, then something else is 
> going on. You may be overloading Nagios, or some other inhibitor is 
> affecting it's ability to set the dependent hosts Unreachable.
>Thomas
>
> James Tran wrote:
>> Hi i have some parent/child settings on my hosts
>>
>> All of my servers are set to be child hosts to 1 ROUTER. I had tried 
>> to test my notifications by unplugging the ethernet interface on the 
>> server running nagios to see if i get a million host notifications 
>> and of course i still do.
>>
>> I wanted it to setup to check if the router is down first before 
>> sending any notifications from the children hosts. For some reason 
>> though the child hosts keep sending both service and host 
>> notifications through even though it knows the router is down. So 
>> every time it knows the router is down it still sending about 50 
>> emails to me saying all my hosts are down.
>>
>> I even tried to double it up by setting host dependencies up by 
>> setting all hosts dependent to the router but they still send 
>> notifications.
>>
>> Is there any little setting in here i'm forgetting?
>>
>> Thanks,
>> James
>>
>> - 
>>
>> 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@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
>>   
Yeah i double checked to see if the unreachable status was taken off but 
it wasn't. So i removed them from all hosts and for some crazy reason... 
still getting host down messages. this is driving me nuts. What are the 
default permission and owners on the nagios files? maybe i have them 
different cause i'm running a frontend called oreon.

-
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@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] Restart service problem with sudo

2007-03-27 Thread Andy Shellam
In your Nagios event handler definition, add the following after it:

 > /tmp/debug.log 2>&1

(e.g. /etc/init.d/mysql restart > /tmp/debug.log 2>&1)

Then examine the file after nagios has run the event handler.
What that should do is output any info and errors returned from the 
command to debug.log in /tmp.

I'm guessing it's going to be something like an environment variable 
that isn't set when Nagios is running, but is when cron (or yourself) 
runs it.
Possibly $PATH?

Anyway try the above, and let us know what you get.
Failing that post your /etc/init.d/mysql script and /tmp/debug.log (as 
attachments) and we can investigate what variables that script needs set.

Andy.

Sil wrote:
> Le mardi 27 mars 2007 21:00, Andy Shellam a écrit :
>   
>> check your /etc/sudoers
>> file does not have a "defaults requiretty" option set - if it does,
>> comment it out and try your event handler again.
>> 
>
> Thanks, I check my sudoers file and there's no "defaults requiretty" line but 
> I've try it and the result is :
> Mar 27 19:21:01 localhost sudo:   nagios : sorry, you must have a tty to run 
> sudo ; TTY=unknown ; PWD=/var/log/nagios ; USER=root ; 
> COMMAND=/etc/init.d/mysql restart
>
> and if I change the line in "defaults ! requiretty" or if I remove it the 
> resultis the same :
> Mar 27 19:23:01 localhost sudo:   nagios : TTY=unknown ; PWD=/var/log/nagios 
> ; 
> USER=root ; COMMAND=/etc/init.d/mysql restart
> But mysql don't restart.
> I don't understand. :-(
>
> I test a cron job too with the plugin on the agios user and it works !
> # 23 19 27 3 2 /usr/lib/nagios/plugins/eventhandlers/restart-mysql CRITICAL 
> SOFT 3
> The log (the same) :
> Mar 27 19:38:21 localhost sudo:   nagios : TTY=unknown ; PWD=/var/log/nagios 
> ; 
> USER=root ; COMMAND=/etc/init.d/mysql restart
> And mysql restarts !
>
> It's very strange a cron job works but a nagios command fail and no logs have 
> any errors.
>
> If someone have any ideas...
> Thanks
> Sil
>
> !DSPAM:37,4609850a103008306114461!
>
>
>   


-
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@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] Nagvis authentication problems

2007-03-27 Thread Holmes Robert
Greetings,
 
I'm having a bit of trouble getting the .htaccess file (s) and Apache
configuration set for using NagVis. 
 
I'm running CentOS 4.4 with Apache 2 and PHP 5.
 
My Nagios version is 2.8 and I'm trying to use Nagvis 0.9.
 
Could anyone using NagVis please shed some light on this for me. A
how-to link or some specific instructions would be great. I don't read
or speak German, so most of the Nagios community sites and message
boards aren't much help to me.
 
For the record, my Nagios install and the NDOUtils install are both
working fine.
 
Thanks
 
 
Rob
-
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@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] service timeout

2007-03-27 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Lars Stavholm
> Sent: Tuesday, March 27, 2007 4:44 PM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] service timeout
> 


> Q: Is there any way one could define time out on one service
>rather than all services?

Standard plugins mostly support a -t switch to specify the timeout for
the plugin. The nagios.cfg service check timeout is a catch-all for
those that don't terminate themselves when they should. Ideally, each
command definition would have a specific timeout for each plugin defined
with -t and the nagios.cfg timeout would be the max possible value of
your timeouts. In that scenario individual plugins would have unique
timeout values and your max would catch any runaways. You could go
further with that and actually pass the timeout value as a $ARGx$ macro
to the command from your service definition allowing you very specific
granularity in your timeout control.

Since the duration of the run-time for your check is so long, I agree
that it probably makes more sense to either run it out of cron and have
it submit a passive check result or have it update a file that you then
parse as an active check in nagios.

--
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@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] service timeout

2007-03-27 Thread Lars Stavholm
Patrick Morris wrote:
> On Tue, 27 Mar 2007, Lars Stavholm wrote:
> 
>> I get "(Service Check Timed Out)" for one of my service checks
>> (check_rootkit [rkhunter]), which could take a few minutes at
>> times, so I've scheduled it to run every 20 minutes. Now, when
>> getting the timeout, I went looking in the doco for some time
>> out option and I couldn't find one. Well, I found the global
>> configuration option "service_check_timeout", but that doesn't
>> really cut it for me. The check_rootkit plugin could take several
>> minutes, and I wouldn't want to adjust the timeout for all
>> services just because of the check_rootkit.
>>
>> Q: Is there any way one could define time out on one service
>>rather than all services?
> 
> service_check_timeout is pretty much absolute.  If you don't want to
> change it (and you probably shouldn't) you may want to consider making
> this a passive check, which generally makes more sense for checks that
> are going to take a long time to complete.

Thanks! I'll try that.
/L


-
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@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] service timeout

2007-03-27 Thread Patrick Morris
On Tue, 27 Mar 2007, Lars Stavholm wrote:

> I get "(Service Check Timed Out)" for one of my service checks
> (check_rootkit [rkhunter]), which could take a few minutes at
> times, so I've scheduled it to run every 20 minutes. Now, when
> getting the timeout, I went looking in the doco for some time
> out option and I couldn't find one. Well, I found the global
> configuration option "service_check_timeout", but that doesn't
> really cut it for me. The check_rootkit plugin could take several
> minutes, and I wouldn't want to adjust the timeout for all
> services just because of the check_rootkit.
> 
> Q: Is there any way one could define time out on one service
>rather than all services?

service_check_timeout is pretty much absolute.  If you don't want to
change it (and you probably shouldn't) you may want to consider making
this a passive check, which generally makes more sense for checks that
are going to take a long time to complete.

-
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@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] service timeout

2007-03-27 Thread Lars Stavholm
I get "(Service Check Timed Out)" for one of my service checks
(check_rootkit [rkhunter]), which could take a few minutes at
times, so I've scheduled it to run every 20 minutes. Now, when
getting the timeout, I went looking in the doco for some time
out option and I couldn't find one. Well, I found the global
configuration option "service_check_timeout", but that doesn't
really cut it for me. The check_rootkit plugin could take several
minutes, and I wouldn't want to adjust the timeout for all
services just because of the check_rootkit.

Q: Is there any way one could define time out on one service
   rather than all services?

Any thoughts appreciated
/Lars

-
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@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] RHEL4 selinux and nagios

2007-03-27 Thread Rachel Beittenmiller
 
I took a slightly different approach to get SELinux in RHEL4 to work
with Nagios.  We're predominately a Windows shop and the majority of our
system admins has no *nix experience at all, so I was looking for a way
to get them to play nice together without modifying the policy source.
What I ended up doing after beating my head against a wall for a few
days is run the following commands (explanation following each command -
locations assume nagios is installed from the Dag Wieers RPMs):

chcon -R -t httpd_sys_script_exec_t /usr/lib/nagios/cgi
(allow apache to execute the CGIs)
chcon -Rh -t httpd_sys_script_ro_t /var/log/nagios
(allow apache to read the nagios logs)
chcon -Rh -t httpd_sys_script_rw_t /var/log/nagios/rw
(allow apache to write to the external commands files)
chcon -h -t httpd_sys_script_ro_t /var/log
(allow apache to traverse /var/log so it can get to the nagios
subdirectory)

I am not overly familiar with SELinux myself, so I am sure that this
opens up additional security holes, but in my company's environment,
heavy modifications would not be understood or maintained.  I'm
especially not happy with the last command, but  httpd_sys_script_ro_t
was the lowest built-in permission type I could give to the /var/log
directory while still having the nagios web interface work.  While it
does not change the type on the contents of /var/log, any new files or
folders will be created with the type httpd_sys_script_ro_t, so chcon -h
-t httpd_sys_script_ro_t /var/log should only be run at the very end of
the configuration process for the server.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sam
Hooker
Sent: Tuesday, March 27, 2007 3:11 PM
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] RHEL4 selinux and nagios

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


SELinux is a beast, but I think it's a worthwhile thing to understand,
so I applaud your desire to make it work for you. Once you start
wrapping your brain around it, it gets easier, although I'm sure we've
only scratched the surface at my shop. My biggest complaint about the
SELinux implementation in RHEL4 is just that the
selinux-policy-targeted-sources RPM isn't included in the standard
rollout, and that can lead to a lot of head-scratching. ("I know I want
to change these policies, but can't figure out what to change...")

So, I don't know if some of these items have been discussed on this list
already, but here are some of our generic
"Nagios-on-CentOS4-with-SELinux-enabled" notes. I also disclaim any
liability for these changes having unintended consequences in your
security context (which I don't know anything about), so "Caveat
lector". Also, note that some aspects of these two issues may have been
corrected by the packagers (our Nagios installs on CentOS4/RHEL4 come
from Dag Wieers' package repositories):


1) Enabling the Web Interface

Using the nagios packages from Dag Wieers, there are a couple of tasks
that need to be completed in order to make the nagios web interface
function:

* if it is not already installed, the
selinux-policy-targeted-sources RPM must be installed in order
to allow editing of Selinux policy.
* edit the /etc/selinux/targeted/src/policy/policy.conf file and
jump to the section marked "line 172". Add the following
entries:

 #line 172
 allow httpd_sys_script_t var_log_t:dir search;  allow
httpd_sys_script_t var_log_t:file { getattr read };  allow
httpd_sys_script_t var_log_t:file read;  allow httpd_sys_script_t
var_log_t:fifo_file getattr;  allow httpd_sys_script_t
var_log_t:fifo_file { getattr write };

* change the context of the /usr/lib/nagios/cgi directory to
"system_u:object_r:httpd_sys_script_exec_t"

 chcon -R system_u:object_r:httpd_sys_script_exec_t /usr/lib/nagios/cgi


2) Nagios Hangs When Launched By Init

(Most of this answer was found at
http://article.gmane.org/gmane.network.nagios.user/34668, but successful
implementation required some of our own research.)

The nagios init script as provided by Dag Wieers uses 'su -l ...' to
touch a few crucial files on launch. Unfortunately, this apparently
leaves room for ambiguity where SELinux is concerned, and the SELinux
subsystem consequently needs clarification. If you're running the init
script from the command-line, it will ask, interactively:

 [EMAIL PROTECTED] ~]# service nagios start
 Starting network monitor: nagios
 Your default context is user_u:system_r:unconfined_t.

 Do you want to choose a different one? [n]

Answering this with a simple [ENTER] allows nagios to start correctly.
An unattended boot, however, leaves no room for this method of
interaction. What you'll see in these cases (apart from a Nagios server
that's not emitting any check results) is 'ps -few | grep nagios'
returning a hung "initlog" process, and possibly something like this:

 root 27790 27787  0 12:32 pts/200:00:00 su -

Re: [Nagios-users] Child host notify status problem

2007-03-27 Thread Thomas Stocking
James,
Nagios should be setting the dependent hosts to an unreachable status 
when the parent host is down. This is the logic that allows you to 
suppress notification for hosts being down "downstream" of a router that 
fails.
The most common problem I have seen with this is that the host notify 
options are actually set to tell you when the host is Unreachable. Take 
the "U" out of the host notifiy options, and you should not see this 
happen any more.
If, however, the hosts are set to status DOWN, then something else is 
going on. You may be overloading Nagios, or some other inhibitor is 
affecting it's ability to set the dependent hosts Unreachable.
Thomas

James Tran wrote:
> Hi i have some parent/child settings on my hosts
>
> All of my servers are set to be child hosts to 1 ROUTER. I had tried to 
> test my notifications by unplugging the ethernet interface on the server 
> running nagios to see if i get a million host notifications and of 
> course i still do.
>
> I wanted it to setup to check if the router is down first before sending 
> any notifications from the children hosts. For some reason though the 
> child hosts keep sending both service and host notifications through 
> even though it knows the router is down. So every time it knows the 
> router is down it still sending about 50 emails to me saying all my 
> hosts are down.
>
> I even tried to double it up by setting host dependencies up by setting 
> all hosts dependent to the router but they still send notifications.
>
> Is there any little setting in here i'm forgetting?
>
> Thanks,
> James
>
> -
> 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@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@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] Child host notify status problem

2007-03-27 Thread James Tran
Hi i have some parent/child settings on my hosts

All of my servers are set to be child hosts to 1 ROUTER. I had tried to 
test my notifications by unplugging the ethernet interface on the server 
running nagios to see if i get a million host notifications and of 
course i still do.

I wanted it to setup to check if the router is down first before sending 
any notifications from the children hosts. For some reason though the 
child hosts keep sending both service and host notifications through 
even though it knows the router is down. So every time it knows the 
router is down it still sending about 50 emails to me saying all my 
hosts are down.

I even tried to double it up by setting host dependencies up by setting 
all hosts dependent to the router but they still send notifications.

Is there any little setting in here i'm forgetting?

Thanks,
James

-
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@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] RHEL4 selinux and nagios

2007-03-27 Thread Sam Hooker
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


SELinux is a beast, but I think it's a worthwhile thing to understand,
so I applaud your desire to make it work for you. Once you start
wrapping your brain around it, it gets easier, although I'm sure we've
only scratched the surface at my shop. My biggest complaint about the
SELinux implementation in RHEL4 is just that the
selinux-policy-targeted-sources RPM isn't included in the standard
rollout, and that can lead to a lot of head-scratching. ("I know I want
to change these policies, but can't figure out what to change...")

So, I don't know if some of these items have been discussed on this list
already, but here are some of our generic
"Nagios-on-CentOS4-with-SELinux-enabled" notes. I also disclaim any
liability for these changes having unintended consequences in your
security context (which I don't know anything about), so "Caveat
lector". Also, note that some aspects of these two issues may have been
corrected by the packagers (our Nagios installs on CentOS4/RHEL4 come
from Dag Wieers' package repositories):


1) Enabling the Web Interface

Using the nagios packages from Dag Wieers, there are a couple of tasks
that need to be completed in order to make the nagios web interface
function:

* if it is not already installed, the
selinux-policy-targeted-sources RPM must be installed in order
to allow editing of Selinux policy.
* edit the /etc/selinux/targeted/src/policy/policy.conf file and
jump to the section marked "line 172". Add the following
entries:

 #line 172
 allow httpd_sys_script_t var_log_t:dir search;
 allow httpd_sys_script_t var_log_t:file { getattr read };
 allow httpd_sys_script_t var_log_t:file read;
 allow httpd_sys_script_t var_log_t:fifo_file getattr;
 allow httpd_sys_script_t var_log_t:fifo_file { getattr write };

* change the context of the /usr/lib/nagios/cgi directory to
"system_u:object_r:httpd_sys_script_exec_t"

 chcon -R system_u:object_r:httpd_sys_script_exec_t /usr/lib/nagios/cgi


2) Nagios Hangs When Launched By Init

(Most of this answer was found at
http://article.gmane.org/gmane.network.nagios.user/34668, but successful
implementation required some of our own research.)

The nagios init script as provided by Dag Wieers uses 'su -l ...' to
touch a few crucial files on launch. Unfortunately, this apparently
leaves room for ambiguity where SELinux is concerned, and the SELinux
subsystem consequently needs clarification. If you're running the init
script from the command-line, it will ask, interactively:

 [EMAIL PROTECTED] ~]# service nagios start
 Starting network monitor: nagios
 Your default context is user_u:system_r:unconfined_t.

 Do you want to choose a different one? [n]

Answering this with a simple [ENTER] allows nagios to start correctly.
An unattended boot, however, leaves no room for this method of
interaction. What you'll see in these cases (apart from a Nagios server
that's not emitting any check results) is 'ps -few | grep nagios'
returning a hung "initlog" process, and possibly something like this:

 root 27790 27787  0 12:32 pts/200:00:00 su -l nagios -c touch
/var/log/nagios/nagios.log /var/log/nagios/status.sav

The Fix

* back up the original file and make sure your backup matches the
original's SELinux context:

 [EMAIL PROTECTED] init.d]# cd /etc/init.d/
 [EMAIL PROTECTED] init.d]# ls -alZ *nagios*
 -rwxrwxr--  root root system_u:object_r:initrc_exec_t  nagios
 [EMAIL PROTECTED] init.d]# cp -a nagios ORIG.nagios
 [EMAIL PROTECTED] init.d]# chcon -u system_u -r object_r -t initrc_exec_t\
ORIG.nagios
 [EMAIL PROTECTED] init.d]# ls -alZ *nagios*
 -rwxrwxr--  root root system_u:object_r:initrc_exec_t  nagios
 -rwxrwxr--  root root system_u:object_r:initrc_exec_t \
ORIG.nagios

* edit the "nagios" file to replace this line:

 su -l $Nagios -c "touch $NagiosVar/nagios.log $NagiosSav"

with this one:

 /usr/bin/sudo -u $Nagios /bin/touch $NagiosVar/nagios.log $NagiosSav


That's all we've run into, thusfar. If you have specific questions
beyond these, I'd be happy to take a pass at them. Good luck!

Cheers,

- -sth

sam hooker|[EMAIL PROTECTED]|http://www.noiseplant.com

tail -f /var/llog/llama

> Message: 2
> Date: Tue, 27 Mar 2007 13:02:38 -0400
> From: "Onotsky, Steve x55328" <[EMAIL PROTECTED]>
> Subject: Re: [Nagios-users] RHEL4 selinux and nagios
> To: "s cinux" <[EMAIL PROTECTED]>,
> Message-ID:
>   <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="windows-1252"
>
> Our current Nagios install (2.0b2) is running on an RHEL3 box.  I'm
setting
> up a new instance (2.8) on RHEL4; I set SELinux to "Warn" at install time,
> so that we don't get confused trying to figure out why things aren't
working
> (we haven't had much need for SE before, but are starting to look at it
> now).
>
>
>
> On a somewhat-related note, if anyone is installing RHEL4 into a VM under
> VMware ESX 2.5, y

[Nagios-users] monitor temperature on IBM servers

2007-03-27 Thread enediel gonzalez
Hello.

I have nagios running on Linux, I need to monitor the temperature values on 
IBM servers,  I tried to do it installing Director on the servers and take 
the information via snmp, but I found director a bit complex and I haven't 
got the result I wanted.

Thanks in advance for any advice about this issue.

Enediel
Linux user 300141
Debian GNU/Linux

_
Don't just search. Find. Check out the new MSN Search! 
http://search.msn.click-url.com/go/onm00200636ave/direct/01/


-
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@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] Restart service problem with sudo

2007-03-27 Thread Andy Shellam
Hi Sil

I had a similar problem with NRPE - an NRPE check worked fine when doing 
it from the command-line, but it refused to work from the NRPE itself.

I eventually found out that my /etc/sudoers was denying anything without 
a terminal from using sudo.
It might be the same problem, might not, but check your /etc/sudoers 
file does not have a "defaults requiretty" option set - if it does, 
comment it out and try your event handler again.

Andy.

Sil  wrote:
> Hi,
> I want to test the event-handler for restarting services on my Debian 
> Sarge with Nagios 1.3.
> I've change the sudoers permissions to accord nagios user to run 
> /etc/init.d/mysql restart :
> Host_Alias SERVEUR   = 192.168.X.X
> User_Alias NAGIOS = nagios
> Cmnd_Alias SERVICES= /etc/init.d/mysql restart
> NAGIOS SERVEUR = NOPASSWD: SERVICES
>
> I use a script based on the example of the doc :
>
> restart-mysql #
> #!/bin/sh
> case "$1" in
> OK)
>  ;;
> WARNING)
>  ;;
> UNKNOWN)
>  ;;
> CRITICAL)
>   case "$2" in
>   SOFT)
> case "$3" in
> 3)
> echo -n "Restarting service (3rd soft critical state)..."
>/usr/bin/sudo /etc/init.d/mysql restart
> ;;
> esac
> ;;
> HARD)
> echo -n "Restarting  service..."
>   /usr/bin/sudo /etc/init.d/mysql restart
> ;;
> esac
> ;;
> esac
> exit 0
> #
>
> In my checkcommands.cfg
> define command{
> command_namerestart-mysql
> command_line
> /usr/lib/nagios/plugins/eventhandlers/restart-mysql $SERVICESTATE$ 
> $STATETYPE$ $SERVICEATTEMPT$
> }
>
> But my problem is that mysql never restart
> And when I try the script whit the nagios user shell, it works !
>
> An example of my /var/log/auth.log
>
> when I execute :
> [EMAIL PROTECTED] /usr/lib/nagios/plugins/eventhadlers/restart-mysql 
> CRTICAL SOFT 3
> Mysql restarts and I see this log :
> Mar 26 15:05:34 localhost sudo:   nagios : TTY=pts/1 ; 
> PWD=/var/log/nagios ; USER=root ; COMMAND=/etc/init.d/mysql restart
>
> But when nagios works alone :
> Mar 26 15:04:40 localhost sudo:   nagios : TTY=unknown ; PWD=/   ; 
> USER=root ; COMMAND=/etc/init.d/mysql restart
> Nothing append !
>
> I don't understand anything, command line is run but mysql nerver starts !
> Thanks for your help
> Sil
>
> -
> 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@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
>
> !DSPAM:37,4608de4c103001610916747!
>
>
>   


-
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@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] Disable Notifications for hosts in a group.

2007-03-27 Thread Patrick Morris
Hi Lopez,!

On Tue, 27 Mar 2007, Lopez, Denise wrote:

> Hello all,
> 
> I was just wondering if it was possible to disable notifications for all
> hosts in a particular group via the web interface without having to
> disable each host individually.  We just recently had a scheduled power
> outage for one of our Building and would have liked to quickly disable
> notifications for all the equipment in that building without having to
> do each one individually.

If you go into the hostgroup overview, and click on the short name of
the hostgroup (the one in parentheses), you'll see an option to schedule
downtime or disable notifications for all hosts and/or services in the
group.

-
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@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] Disable Notifications for hosts in a group.

2007-03-27 Thread Jason Salaz
Lopez, Denise wrote:
 >
 > I was just wondering if it was possible to disable notifications for all
 > hosts in a particular group via the web interface without having to
 > disable each host individually.  We just recently had a scheduled power
 > outage for one of our Building and would have liked to quickly disable
 > notifications for all the equipment in that building without having to
 > do each one individually.

http://nagios.org/developerinfo/externalcommands/commandinfo.php?command_id=80

A lot of the external commands ( 
http://nagios.org/developerinfo/externalcommands/commandlist.php ) are 
great to implement as one-off bash commands to be run out of /root (or 
perhaps the Nagios user's home directory?) on the central Nagios machine.

Otherwise, script something up to cURL it over to the machine with the 
status file.

-
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@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] Passive service result check, using host address instead of host name

2007-03-27 Thread Thomas Stocking
Manish,
If you are using a script to submit check results to the command file on 
the Nagios host, you could use the status.log file to look up the 
hostname before you submit the result.
Another way would be to use a tool like Monarch or NagioSQL to store the 
hostnames and IPs in a MySQL DB. Then the script could use the DB 
interface to do the lookups. That would be faster, and if you are 
willing or able to allow the host that does the posting to access MySQL 
across the net, it could run on a remote system. Kind of depends on how 
you are running Nagios - with nsca/nscafe or not, and where the passive 
results are generated. I don't know if the Nagios event broker can give 
you this data directly, but if you use NDOUtils or GroundWork Foundation 
then these databases backends also store the  IP and hostname.
Monarch: http://sourceforge.net/projects/monarch/
NagiosQL http://www.nagiosql.org/wiki/Main_Page
NDOUtils: http://sourceforge.net/project/showfiles.php?group_id=26589
GroundWork Foundation: http://gwfoundation.sourceforge.net/
NSCAFE: 
http://www.nagiosexchange.org/AddOn_Projects.22.0.html?&tx_netnagext_pi1[p_view]=818

Thomas

Manish Sapariya wrote:
> Hi All,
> Is there any way to specify the host address instead of host name when 
> reporting passive service
> check result. In my deployment I want to identify the hosts by their mac 
> address as far as nagios
> is concerned, however user should still be able to view hostname in the 
> nagios GUI.
>
> Is there any way I can tell nagios to look for host address instead of 
> host name in the passive
> check result?
>
>
> PROCESS_SERVICE_CHECK_RESULT
> Command Format:
> PROCESS_SERVICE_CHECK_RESULT
>  
>
>
>
> Thanks and Regards,
> Manish
>
>
> -
> 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@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@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] Disable Notifications for hosts in a group.

2007-03-27 Thread Lopez, Denise
Hello all,

I was just wondering if it was possible to disable notifications for all
hosts in a particular group via the web interface without having to
disable each host individually.  We just recently had a scheduled power
outage for one of our Building and would have liked to quickly disable
notifications for all the equipment in that building without having to
do each one individually.

Thanks in advance.

Denise Lopez
UCLA Center for Digital Humanities
Network Services
Systems Engineer
337 Charles E. Young Drive East
PPB 1020
Los Angeles, CA 90095
310/206-8216

-
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@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] Configuration tool for large environment

2007-03-27 Thread Thomas Stocking
That can work, sure. If you are using Monarch, you can use the 
MonarchCallout.pm to initiate an rsync and/or scp over to the backup 
server and restart Nagios there.
You might also check out the Goups function in Monarch - helps with 
distributing the config to multiple Nagios servers.
Thomas

Marc Powell wrote:
>   
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:nagios-users-
>> [EMAIL PROTECTED] On Behalf Of chiel
>> Sent: Tuesday, March 27, 2007 6:22 AM
>> To: nagios-users@lists.sourceforge.net
>> Subject: [Nagios-users] Configuration tool for large environment
>>
>> 
>
>
>   
>> This setup work perfectly, the only issue that I have is that I will
>> 
> have
>   
>> to do all the configuration twice. Is there some kind of tool that I
>> 
> can
>   
>> use to sync the configuration to a secondary server?
>> 
>
> We use rsync over ssh hourly to synchronize configs from a central host
> to 5 other hosts. It's worked very well for almost 5 years.
>
> --
> 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@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@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] RHEL4 selinux and nagios

2007-03-27 Thread Onotsky, Steve x55328
Our current Nagios install (2.0b2) is running on an RHEL3 box.  I'm setting
up a new instance (2.8) on RHEL4; I set SELinux to "Warn" at install time,
so that we don't get confused trying to figure out why things aren't working
(we haven't had much need for SE before, but are starting to look at it
now).

 

On a somewhat-related note, if anyone is installing RHEL4 into a VM under
VMware ESX 2.5, you've likely encountered the issue where the guest OS clock
lags behind real time, even with ntp and VM guest clock sync set up.  The
fix, as I've discovered, is to update ESX to v2.5.4 build 36502 (three patch
bundles from a stock 2.5.0 install).  Apparently the issue doesn't affect
ESX 3.0+, but we haven't tested - waiting for FY08 to start so we can start
spending the budget and upgrade.  :-)

 

Just thought I'd share...

 

 

Steve Onotsky

Server Support Technologist

ADP Investor Communications

5970 Chedworth Way

Mississauga  ON  L5R 4G5

Tel: (905) 507-5328

Fax: (905) 507-5312

Inet:   [EMAIL PROTECTED]

 

Duc, sequere, aut de via decede.

  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: March 27, 2007 12:53
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] RHEL4 selinux and nagios

 

Anybody go through the rigamarole of setting up nagios on a RHEL4 box
running targeted selinux?  I don't want to disable selinux just to get
nagios up and running.  If you have notes, suggestions, links, etc...please
post them or email me.  Thanks! 

_
This message and any attachments are intended only for the use of the addressee 
and
may contain information that is privileged and confidential. If the reader of 
the 
message is not the intended recipient or an authorized representative of the
intended recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this communication in
error, please notify us immediately by e-mail and delete the message and any
attachments from your system.
-
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@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] Check cluster

2007-03-27 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Peter van den Berg
> Sent: Tuesday, March 27, 2007 10:43 AM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Check cluster
> 
> Hi
> 
> After some time with Google, I've found several posts with sort of the
> same question, but no useable answers :-(
> 
> I've got problems getting the check_cluster2 plugin to work.
> I've got nagios v2.6 with plugins v1.4.6
> 
> The check definition is:
>  define command{
> command_namecheck_service_cluster
> command_line$USER1$/check_cluster2 -s -l $ARG1$ -w $ARG2$
-c
> $ARG3$ -d $arg4$
> }
> 
> The service definition is:
> define service{
>   ...
>   check_command   check_service_cluster!"DNS
>
Cluster"!1!2!$SERVICESTATEID:host1:Service$,$SERVICESTATEID:host2:Servic
> e$,etc
>   ...
>   }
> 
> The problem is as follows, no matter how many of the services are
> critical, the check keeps reporting everything ok.
> 
> When I run it from the commandline, I also get everything ok. When I
> replace the $SERVICESTATEID:host1:service$ with eg. 1,0,0,2  It
reports
> correctly 1 warning, 1 critical, 2 ok. So the error lies in the
> definition of the host/service state.
> 
> According to the documentation this should be:
> $SERVICESTATEID::$
> 
> Any suggestions what's going wrong?

The problem would appear to be with the on-demand macro you're using in
your check_command. I don't use check_cluster2 but a quick glance at the
documentation for it and on-demand macros leads me to believe that you
are using an incorrect form of the on-demand macro in the check_command.
If the service check_command above is accurate, is the
service_description for the service you're trying to check on all
machines really named 'Service'? Same for host_name. Are they really
host1 and host2. I can't imagine any reason that you would need to
obfuscate those and it's possibly confusing. I might help if you post a
host, service and service description as unedited as possible.

It might also help you to diagnose what nagios is really doing by seeing
what nagios would be running.

define command{
command_namecheck_service_cluster
command_lineecho '$USER1$/check_cluster2 -s -l $ARG1$ -w
$ARG2$ -c $ARG3$ -d $arg4$'
}

After a check attempt you'll see the full command as nagios would have
run it on the command line in the GUI.

--
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@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] is there a way to set host min_check_attempt?

2007-03-27 Thread Dinçer Kavraal

Thanks Thomas, actually I was very much trying to do at least 5-checks
before changing DOWN status of an host. But this was a problem of "blocking"
strategy of Nagios v1 and v2. Thus, I am waiting for v3. In fact it is in
alpha stage at the moment. I can't trust it -as you can guess why- before
even a few beta stages.

I will be looking for a way to prevent "blocking" host check strategy.

Before this, I tried to close active checks of hosts and prevent any host
checks. Any host had only one service which was host check (as a service).
So those could be parallelised, and I did. But it borns a problem.
UNREACHABLE status does not exist for me anymore.
After that, I tried to configure service depedency. However, then, only
notifications were disabled of child services. But I was expecting an
UNREACHABLE status for those.

Shortly - Summary
I am asking for a way to set UNREACHABLE status for child services under
service dependency.

Thanks,
Dinçer


2007/3/26, Thomas Stocking <[EMAIL PROTECTED]>:


Hi Dinçer,
Not quite sure I follow your logic, but it looks like you want to
control what happens with Nagios host checks.
Nagios will check the host if and when a service on that host enters a
non-ok state. It then executes the plugin that you select as a
host-alive check. If it comes back with a non-ok status on the first
attempt, it will try again, up to the max number of attempts. If all
attempts fail, it sets to host to state DOWN (or UNREACHABLE - see the
parent directive). It then send a host alert, and notifications, if
configured.
If it comes back OK, it stops checking the host, and sets it to OK. Then
you will get a service alert, notifications, etc.

So, one way to be sure that you always ping 5 times when you are
checking a host is to configure the plugin you use for the host-alive
check to send 5 pings on each attempt:

$USER1$/check_icmp -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -n 5
for example.

You could also use a passive check to set the host state. This is a
pretty advanced topic, but will give you great control over host checks.

One thing to consider is that Nagios 2.x and 1.x use a "blocking" host
check. That is, whenever a host check is performed (actively), Nagios
stops doing pretty much everything else. Thus it makes sense to optimize
your active host checks. The longer they take, the larger the affect on
overall latency. This will be fixed in v3, or so I have read. I have not
tried v3 yet :)
Thomas

Dinçer Kavraal wrote:
> Hi, (as to be numbers are only sample)
> We know that host assumed to be DOWN if host does not reply (or
> timeout) for 5 times successively (I mean 5 distinct checks in order).
> Do you know how to make nagios assume that host is UP only and only if
> host says OK to ping check for 5 times successively after a HARD-DOWN
> status?
>
>
>
>
> 2007/3/25, Andy Shellam <[EMAIL PROTECTED]
> >:
>
> Also, in your check_ping command definition, you're requesting the
> host
> respond within 30ms to be classed as up and OK.
>
> This seems awfully quick - personally I request 1000ms (1 second) to
> give it a fair amount of time to respond.  If the
> host/router/whatever
> is busy, it could take slightly longer than 30ms to reply, causing a
> warning (or longer than 60ms to be 'down'.)
>
> Andy.
> [...]
>
> 
>
>
-
> 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@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@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] RHEL4 selinux and nagios

2007-03-27 Thread s cinux

Anybody go through the rigamarole of setting up nagios on a RHEL4 box
running targeted selinux?  I don't want to disable selinux just to get
nagios up and running.  If you have notes, suggestions, links, etc...please
post them or email me.  Thanks!
-
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@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] Images not showing in GUI

2007-03-27 Thread Dinçer Kavraal

Yes it will be much easier :) Recompiling was a reply when I was asleep :)

Dinçer

2007/3/26, Payam Jahromi <[EMAIL PROTECTED]>:


 I got it to work, thank you so much. Recompiling actually didn't change
anything. I just had to modify the cgi.cfg file and remove the extra
entries. Now it's showing images.


 --

*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Dinçer
Kavraal
*Sent:* Monday, March 26, 2007 10:41 AM
*To:* Payam Jahromi
*Cc:* nagios-users@lists.sourceforge.net
*Subject:* Re: [Nagios-users] Images not showing in GUI



I think it won't. Anyway, take a backup :) then reconfigure and make it.


Dinçer

2007/3/26, Payam Jahromi <[EMAIL PROTECTED] >:

Thank you, I think it's #2. When I compiled it, I ran the following
command:

./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin
--with-htmurl=/nagios/--with-nagios-user=nagios --with-nagios-group=nagios
--with-command-group=nagcmd



As you can see, I didn't put a space between htmurl=/nagios/ and –with…so
the path the images tries to find is
/nagios/--with-nagios-user=nagios/images.



Can I just run the configure command again with the correct info? Will
this overwrite any files I have already?


 --

*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Dinçer
Kavraal
*Sent:* Saturday, March 24, 2007 11:57 AM


*To:* Payam Jahromi
*Cc:* nagios-users@lists.sourceforge.net
*Subject:* Re: [Nagios-users] Images not showing in GUI



Then, there are two options left (I suppose).

1) You have sth wrong with your browser. It might refuse asking you
username and password. However, then, how are you available to see the web
page? So, only one option left :)

2) On the images which are not shown on the web page, right-click and
properties. Look at the image URL. I think there is sth wrong with it. It
should be http://-host-address-/nagios/images/.png

Is it so? Can you see any image with this URL on your own? (copy-paste the
image's address to your browser)



If so, it means you have given path values wrong when compiling nagios.
Anyway, check it then we can recompile it with right values.



Dinçer



2007/3/23, Payam Jahromi < [EMAIL PROTECTED]>:

I also tried chown -R nagios:apache /usr/local/nagios/sbin



Restarted both httpd and apache process, still no images. (the
/nagios/images/disabled.gif still shows cross sign).


 --

*From:* Payam Jahromi [mailto: [EMAIL PROTECTED]
*Sent:* Friday, March 23, 2007 12:04 PM
*To:* 'Dinçer Kavraal'
*Subject:* RE: [Nagios-users] Images not showing in GUI



It still doesn't work after the chown command.



Then when I go to the URL specified, I see the cross sign.


 --

*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On Behalf Of *Dinçer
Kavraal
*Sent:* Friday, March 23, 2007 11:53 AM


*To:* Payam Jahromi
*Subject:* Re: [Nagios-users] Images not showing in GUI



Can you try
# chown -R nagios:apache /usr/local/nagios/share

If again it is unsuccessful, let me be aware what happens when you type
URL:

http://-your-web-host/nagios/images/disabled.gif

What can you see (a cross sign)? An error? What does it say? (A 404 Error?
a 500 Error?)

Dinçer

2007/3/23, Payam Jahromi < [EMAIL PROTECTED]>:

Attached. Thank you




 --

*From:* [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *On Behalf Of *Dinçer
Kavraal
*Sent:* Friday, March 23, 2007 11:22 AM
*To:* Payam Jahromi


*Subject:* Re: [Nagios-users] Images not showing in GUI



Could you please send your httpd.conf? I think there is a clash between
definitions. Because everything seems to be fine.

Dinçer

2007/3/23, Payam Jahromi < [EMAIL PROTECTED] >:

ls -l /usr/local/nagios/share/images

total 316

-rw-rw-r--  1 nagios nagios   891 Mar 12 12:21 ack.gif

-rw-rw-r--  1 nagios nagios  1374 Mar 12 12:21 action.gif

-rw-rw-r--  1 nagios nagios  1187 Mar 12 12:21 command.png

-rw-rw-r--  1 nagios nagios   900 Mar 12 12:21 comment.gif

-rw-rw-r--  1 nagios nagios  1476 Mar 12 12:21 contexthelp1.gif

-rw-rw-r--  1 nagios nagios  1406 Mar 12 12:21 contexthelp2.gif

-rw-rw-r--  1 nagios nagios  1385 Mar 12 12:21 critical.png

-rw-rw-r--  1 nagios nagios   966 Mar 12 12:21 delay.gif

-rw-rw-r--  1 nagios nagios  1124 Mar 12 12:21 delete.gif

-rw-rw-r--  1 nagios nagios   890 Mar 12 12:21 detail.gif

-rw-rw-r--  1 nagios nagios  1088 Mar 12 12:21 disabled.gif

-rw-rw-r--  1 nagios nagios   846 Mar 12 12:21 down.gif

-rw-rw-r--  1 nagios nagios   864 Mar 12 12:21 downtime.gif

-rw-rw-r--  1 nagios nagios   807 Mar 12 12:21 empty.gif

-rw-rw-r--  1 nagios nagios  1016 Mar 12 12:21 enabled.gif

-rw-rw-r--  1 nagios nagios  1040 Mar 12 12:21 extinfo.gif

-rw-rw-r--  1 nagios nagios   578 Mar 12 12:21 flapping.gif

-rw-rw-r--  1 nagios nagios   329 Mar 12 12:21 greendot.gif

-rw-rw-r--  1 nagios nagios 17934 Mar 12 12:21 histogram.png

-rw-rw-r--  1 nagios nagios   924 Mar 12 12:21 his

[Nagios-users] Check cluster

2007-03-27 Thread Peter van den Berg
Hi

After some time with Google, I've found several posts with sort of the
same question, but no useable answers :-(

I've got problems getting the check_cluster2 plugin to work.
I've got nagios v2.6 with plugins v1.4.6

The check definition is:
 define command{
command_namecheck_service_cluster
command_line$USER1$/check_cluster2 -s -l $ARG1$ -w $ARG2$ -c
$ARG3$ -d $arg4$
}

The service definition is:
define service{
...
check_command   check_service_cluster!"DNS
Cluster"!1!2!$SERVICESTATEID:host1:Service$,$SERVICESTATEID:host2:Servic
e$,etc
...
}

The problem is as follows, no matter how many of the services are
critical, the check keeps reporting everything ok.

When I run it from the commandline, I also get everything ok. When I
replace the $SERVICESTATEID:host1:service$ with eg. 1,0,0,2  It reports
correctly 1 warning, 1 critical, 2 ok. So the error lies in the
definition of the host/service state.

According to the documentation this should be:
$SERVICESTATEID::$

Any suggestions what's going wrong?


Thanks,
 
Peter van den Berg
Applicatiebeheerder 

Mirabeau | Application Management
 


-
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@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] Configuration tool for large environment

2007-03-27 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of chiel
> Sent: Tuesday, March 27, 2007 6:22 AM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Configuration tool for large environment
> 


> This setup work perfectly, the only issue that I have is that I will
have
> to do all the configuration twice. Is there some kind of tool that I
can
> use to sync the configuration to a secondary server?

We use rsync over ssh hourly to synchronize configs from a central host
to 5 other hosts. It's worked very well for almost 5 years.

--
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@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] Restart service problem with sudo

2007-03-27 Thread Marc Powell


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:nagios-users-
> [EMAIL PROTECTED] On Behalf Of Sil 
> Sent: Tuesday, March 27, 2007 4:05 AM
> To: nagios-users@lists.sourceforge.net
> Subject: [Nagios-users] Restart service problem with sudo
> 
> Hi,
> I want to test the event-handler for restarting services on my Debian
> Sarge with Nagios 1.3.
> I've change the sudoers permissions to accord nagios user to run
> /etc/init.d/mysql restart :

[chop]
 
> when I execute :
> [EMAIL PROTECTED] /usr/lib/nagios/plugins/eventhadlers/restart-mysql
> CRTICAL SOFT 3
> Mysql restarts and I see this log :
> Mar 26 15:05:34 localhost sudo:   nagios : TTY=pts/1 ;
> PWD=/var/log/nagios ; USER=root ; COMMAND=/etc/init.d/mysql restart
> 
> But when nagios works alone :
> Mar 26 15:04:40 localhost sudo:   nagios : TTY=unknown ; PWD=/   ;
> USER=root ; COMMAND=/etc/init.d/mysql restart
> Nothing append !
> 
> I don't understand anything, command line is run but mysql nerver
starts !
> Thanks for your help

Either the troubleshooting step taken of redirecting the output of the
call to your script or the sudoers change in the post below will likely
help you out.

http://article.gmane.org/gmane.network.nagios.user/45953/match=sudo

--
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@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] Configuration tool for large environment

2007-03-27 Thread chiel
Hello,

I'm using Nagios to monitor a large amount of hosts en services. I want to use 
a easy to use administration tool to do the configurations.
I currently using Monarch, it does the job verry good. But I have searched the 
nagios exchange website and there are some other programs that also will do the 
job (fruity, NagiosQL 2005, NagiosWeb).
I was wondering what kind of front end you guys use, and what your experience 
are with these tools.

Another quistion I have I with failover servers. I use a failover server that 
is actively checking all the hosts that my nagios server is checking, the only 
diffrence is that I will only enable notification when the first nagios fails.
This setup work perfectly, the only issue that I have is that I will have to do 
all the configuration twice. Is there some kind of tool that I can use to sync 
the configuration to a secondary server?

Thanks.-
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@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] What do you not like about Nagios' notification/escalation system?

2007-03-27 Thread Rainer Duffner
Jim Avery wrote:
> On 26/03/07, Taylor Dondich <[EMAIL PROTECTED]> wrote:
>   
>> I'm working on a project, and it requires feedback from you, the
>> Nagios community.
>>
>> What do you not like about the way Nagios handles escalations and
>> notifications?  What features would you add?  What features would you
>> change?  What logic would you change, etc?
>>
>> Let me know, I'm really interested in your feedback and will respond to all.
>> 
>
> I'd like a simple method to set up an on-call rota so I don't have to
> change the contacts for on-call each day.
>
>   


Hand over da phone ;-)



cheers,
Rainer

-
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@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] Restart service problem with sudo

2007-03-27 Thread Sil
Hi,
I want to test the event-handler for restarting services on my Debian 
Sarge with Nagios 1.3.
I've change the sudoers permissions to accord nagios user to run 
/etc/init.d/mysql restart :
Host_Alias SERVEUR   = 192.168.X.X
User_Alias NAGIOS = nagios
Cmnd_Alias SERVICES= /etc/init.d/mysql restart
NAGIOS SERVEUR = NOPASSWD: SERVICES

I use a script based on the example of the doc :

restart-mysql #
#!/bin/sh
case "$1" in
OK)
 ;;
WARNING)
 ;;
UNKNOWN)
 ;;
CRITICAL)
  case "$2" in
  SOFT)
case "$3" in
3)
echo -n "Restarting service (3rd soft critical state)..."
   /usr/bin/sudo /etc/init.d/mysql restart
;;
esac
;;
HARD)
echo -n "Restarting  service..."
  /usr/bin/sudo /etc/init.d/mysql restart
;;
esac
;;
esac
exit 0
#

In my checkcommands.cfg
define command{
command_namerestart-mysql
command_line
/usr/lib/nagios/plugins/eventhandlers/restart-mysql $SERVICESTATE$ 
$STATETYPE$ $SERVICEATTEMPT$
}

But my problem is that mysql never restart
And when I try the script whit the nagios user shell, it works !

An example of my /var/log/auth.log

when I execute :
[EMAIL PROTECTED] /usr/lib/nagios/plugins/eventhadlers/restart-mysql 
CRTICAL SOFT 3
Mysql restarts and I see this log :
Mar 26 15:05:34 localhost sudo:   nagios : TTY=pts/1 ; 
PWD=/var/log/nagios ; USER=root ; COMMAND=/etc/init.d/mysql restart

But when nagios works alone :
Mar 26 15:04:40 localhost sudo:   nagios : TTY=unknown ; PWD=/   ; 
USER=root ; COMMAND=/etc/init.d/mysql restart
Nothing append !

I don't understand anything, command line is run but mysql nerver starts !
Thanks for your help
Sil

-
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@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] Passive service result check, using host address instead of host name

2007-03-27 Thread Manish Sapariya
Hi All,
Is there any way to specify the host address instead of host name when 
reporting passive service
check result. In my deployment I want to identify the hosts by their mac 
address as far as nagios
is concerned, however user should still be able to view hostname in the 
nagios GUI.

Is there any way I can tell nagios to look for host address instead of 
host name in the passive
check result?


PROCESS_SERVICE_CHECK_RESULT
Command Format:
PROCESS_SERVICE_CHECK_RESULT
 



Thanks and Regards,
Manish


-
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@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