Re: [Nagios-users] Nagios Variables

2012-08-02 Thread Ruslan Valiyev
As I said, it's possible to extract the data from the variables you mentioned. *[root@bravura ~]# cat /usr/local/nagios/libexec/just_test* #!/bin/bash echo $NAGIOS_HOSTNAME *Define a command:* define command { command_namejust_test_cmd command_line$USER1$/just_test

Re: [Nagios-users] Nagios Variables

2012-08-02 Thread Ruslan Valiyev
You need to append "NAGIOS_" eg. NAGIOS_NOTIFICATIONTYPE. And also make sure you do "enable_environment_macros=1" in nagios.cfg Ruslan On Thu, Aug 2, 2012 at 12:32 PM, Assaf Flatto wrote: > ** > The marco's are internal to nagios and will not be read from an external > text file . > > there is

Re: [Nagios-users] Differentiate receivers based on alert severity?

2012-07-30 Thread Ruslan Valiyev
Does it mean I have to create two different service templates and specify my emails there? On Mon, Jul 30, 2012 at 11:13 AM, Assaf Flatto wrote: > ** > Yes , you can use two different contacts , one that has only warning , and > the other only for critical . > > > > > O

[Nagios-users] Differentiate receivers based on alert severity?

2012-07-30 Thread Ruslan Valiyev
Hi, I was wondering if it's possible to achieve something a la: - when CPU alerts are warning, they should go to us...@foo.com - when CPU alerts are critical, they should go to us...@foo.com Ruslan -- Live Security Virt

Re: [Nagios-users] check_ntp_time sometimes reports Offset unknown

2012-07-25 Thread Ruslan Valiyev
Actually, the machine I am running this plugin from is a Windows 2008 server. Ruslan On Jul 25, 2012, at 6:39 PM, Alberto Larripa wrote: > Do you have installed the last versiĆ³n of the check_ntpd plugin in you > client-server machine?, this problem sometimes occur if you don't have the > last

Re: [Nagios-users] check_ntp_time sometimes reports Offset unknown

2012-07-25 Thread Ruslan Valiyev
Sorry, I typed wrong. I meant, the machine executing check_ntp_time is a RHEL server, while the host I'm checking (-H) is a Windows server. Ruslan On Jul 25, 2012, at 7:59 PM, Ruslan Valiyev wrote: > Actually, the machine I am running this plugin from is a Windows 2008 server. >

[Nagios-users] check_ntp_time sometimes reports Offset unknown

2012-07-25 Thread Ruslan Valiyev
Hi all, Sometimes the output from check_ntp_time is "Offset unknown" while the ntp server is fine. It can stay like that for a while and then comes back to normal. Here's a sample output while the problem was present on the server: *[root@bravura plugins]# ./check_ntp_time -v -H windows.foo.com

[Nagios-users] Allow access to custom variables outside Nagios

2012-06-16 Thread Ruslan Valiyev
Hi all, We have custom variables like this: define host { use linux-server host_name host.foo.com address 192.168.1.44 _serverfunction Oracle EBS R12 Application Server _serveradminAdmins_Linux _se