Re: [Nagios-users] nrpe script

2008-10-31 Thread Mathieu Gagné
Hi, jeremiah wrote: > > I check the log file and this is all i'm seeing pertaining to this > command on the server. > > Oct 31 22:33:23 serv1 nagios2: SERVICE ALERT: serv2;LOADSCRIPT CHECK > ERRORS;WARNING;HARD;3;NRPE: Unable to read output > Oct 31 22:33:23 serv1 nagios2: SERVICE NOTIFICATION:

Re: [Nagios-users] nrpe script

2008-10-31 Thread jeremiah
Mathieu, Thanks for your ongoing help. I check the log file and this is all i'm seeing pertaining to this command on the server. Oct 31 22:33:23 serv1 nagios2: SERVICE ALERT: serv2;LOADSCRIPT CHECK ERRORS;WARNING;HARD;3;NRPE: Unable to read output Oct 31 22:33:23 serv1 nagios2: SERVICE NOTIFICA

Re: [Nagios-users] nrpe script

2008-10-31 Thread Andy Shellam
Have you got sudo configured on your NRPE host? I get this error on new servers when I forget to add the Nagios/NRPE user to /etc/sudoers and allow them access to run the plugins without needing a password. Try running your command as the Nagios/NRPE user on your NRPE host like so (alter path

Re: [Nagios-users] nrpe script

2008-10-31 Thread Mathieu Gagné
Hi, jeremiah wrote: > i check the manual and this is what it says about this particular error: > > On Fri, 2008-10-31 at 15:10 -0700, jeremiah wrote: >> I just chown'd the file for nagios. >> >> $ sudo chown nagios /home/jesterj/report_loadscript_error_log.py >> >> $ ls -la *.py >> -rwxr-xr-x 1 n

Re: [Nagios-users] nrpe script

2008-10-31 Thread jeremiah
I just pulled this error up in the manual and it sasy the following about the error: "NRPE: Unable to read output" = This error indicates that the command that was run by the NRPE daemon did not return any character output. This could be an indication of the following problems: -An incorr

Re: [Nagios-users] nrpe script

2008-10-31 Thread jeremiah
i check the manual and this is what it says about this particular error: On Fri, 2008-10-31 at 15:10 -0700, jeremiah wrote: > I just chown'd the file for nagios. > > $ sudo chown nagios /home/jesterj/report_loadscript_error_log.py > > $ ls -la *.py > -rwxr-xr-x 1 nagios jesterj 3156 2008-10-31 2

Re: [Nagios-users] nrpe script

2008-10-31 Thread jeremiah
I just chown'd the file for nagios. $ sudo chown nagios /home/jesterj/report_loadscript_error_log.py $ ls -la *.py -rwxr-xr-x 1 nagios jesterj 3156 2008-10-31 21:55 report_loadscript_error_log.py I'm now getting a different error after i fixed the path issue. $ /usr/lib/nagios/plugins/check_n

Re: [Nagios-users] nrpe script

2008-10-31 Thread Patrick Morris
On Fri, 31 Oct 2008, jeremiah wrote: > Hi folks, > > I have another question for you all that i haven't been able to resolve. > > I want to run a python script on my monitored hosts using the nrpe > command. > > On my server I am running the following command: > > # /usr/lib/nagios/plugins/che

Re: [Nagios-users] nrpe script

2008-10-31 Thread Mathieu Gagné
Hi, jeremiah wrote: > When I typed python on the command line it drops my into the python > interpreter. > > Regardless, I went ahead and specified it in the command: > > command[loadscript_check_error_log]=/usr/local/bin/python > /home/jesterj/report_loadscript_error_log.py > > now when i run

Re: [Nagios-users] nrpe script

2008-10-31 Thread Aaron Segura
There is no '#' on the beginning of the line in your nrpe.cfg is there? That's just in your e-mail for readability? -Original Message- From: jeremiah [mailto:[EMAIL PROTECTED] Sent: Friday, October 31, 2008 3:21 PM To: Nagios Subject: [Nagios-users] nrpe script Hi folks, I have another

Re: [Nagios-users] nrpe script

2008-10-31 Thread jeremiah
When I typed python on the command line it drops my into the python interpreter. Regardless, I went ahead and specified it in the command: command[loadscript_check_error_log]=/usr/local/bin/python /home/jesterj/report_loadscript_error_log.py now when i run the check_nrpe command from the server

Re: [Nagios-users] nrpe script

2008-10-31 Thread jeremiah
No, I was trying to simulate a command prompt. JJ On Fri, 2008-10-31 at 14:31 -0700, Patrick Morris wrote: > On Fri, 31 Oct 2008, jeremiah wrote: > > > Hi folks, > > > > I have another question for you all that i haven't been able to > resolve. > > > > I want to run a python script on my monitor

Re: [Nagios-users] nrpe script

2008-10-31 Thread Mathieu Gagné
Hi Jeremiah, jeremiah wrote: > On my monitored hosts, I've specified the corellary command > in /etc/nagios/nrpe.cfg, then restarted the service. > > # command[loadscript_check_error_log]=python /home/username/script.py > > Am I missing something? Is there really a "#" at the beginning of t

Re: [Nagios-users] nrpe script

2008-10-31 Thread Patrick Morris
On Fri, 31 Oct 2008, jeremiah wrote: > No, I was trying to simulate a command prompt. > > JJ > > On Fri, 2008-10-31 at 14:31 -0700, Patrick Morris wrote: > > On Fri, 31 Oct 2008, jeremiah wrote: > > > > > Hi folks, > > > > > > I have another question for you all that i haven't been able to > > r

Re: [Nagios-users] nrpe script

2008-10-31 Thread Marc Powell
On Oct 31, 2008, at 4:21 PM, jeremiah wrote: > Every time i run the command above then i get the following error: > > "NRPE: Command 'loadscript_check_error_log' not defined > > On my monitored hosts, I've specified the corellary command > in /etc/nagios/nrpe.cfg, then restarted the service. > >

Re: [Nagios-users] nrpe script

2008-10-31 Thread Valdinger, Stephen (DOV, MSX)
Is python in the path on the particular server? Try using /path/to/python and see if you have success. Stephen Valdinger MIS Helpdesk Coordinator P: 330.365.3622 C: 740.491.0958 -Original Message- From: jeremiah To: Nagios Sent: Fri Oct 31 17:21:07 2008 Subject: [Nagios-users] nrpe scr

[Nagios-users] nrpe script

2008-10-31 Thread jeremiah
Hi folks, I have another question for you all that i haven't been able to resolve. I want to run a python script on my monitored hosts using the nrpe command. On my server I am running the following command: # /usr/lib/nagios/plugins/check_nrpe -H 10.10.10.45 -c loadscript_check_error_log Eve

Re: [Nagios-users] does nagios need apache?

2008-10-31 Thread jeremiah
Great. thanks to all. On Fri, 2008-10-31 at 14:03 -0700, Valdinger, Stephen (DOV, MSX) wrote: > There are utilities do that yes. In the /usr/local/bin/Nagios (at > least > in my install, your path may be different) there is a nagiosstats > binary > you can run. There are options for mrtg (-m) or c

Re: [Nagios-users] does nagios need apache?

2008-10-31 Thread Valdinger, Stephen (DOV, MSX)
There are utilities do that yes. In the /usr/local/bin/Nagios (at least in my install, your path may be different) there is a nagiosstats binary you can run. There are options for mrtg (-m) or csv (-c) output. Note that this only gives you performance data, and not data on individual checks of host

Re: [Nagios-users] does nagios need apache?

2008-10-31 Thread Marc Powell
On Oct 31, 2008, at 3:25 PM, jeremiah wrote: > But can i view the historical data without running apache by a nagios > command line interface without parsing log files? No, the cgi's are the only provided interface for that. There are no command-line reporting tools included. grep and less of

Re: [Nagios-users] does nagios need apache?

2008-10-31 Thread jeremiah
But can i view the historical data without running apache by a nagios command line interface without parsing log files? On Fri, 2008-10-31 at 13:23 -0700, Novin Jaiswal wrote: > Using apache you can view the different historical data of Nagios as > html out put. Using http protocol. > > For eg. h

Re: [Nagios-users] does nagios need apache?

2008-10-31 Thread Novin Jaiswal
Using apache you can view the different historical data of Nagios as html out put. Using http protocol. For eg. http://servername/nagios Thanks & Regards Novin Jaiswal Ishi Systems Inc. 732-318-8156(cell) -Original Message- From: Valdinger, Stephen (DOV, MSX) [mailto:[EMAIL PROTECTED]

Re: [Nagios-users] does nagios need apache?

2008-10-31 Thread Valdinger, Stephen (DOV, MSX)
Nagios itself is just a daemon. The only reason for apache is for the cgi's and web interface. --Original Message-- From: jeremiah To: Nagios-Users ReplyTo: [EMAIL PROTECTED] Sent: Oct 31, 2008 4:14 PM Subject: [Nagios-users] does nagios need apache? Does nagios need apache to run or is

[Nagios-users] does nagios need apache?

2008-10-31 Thread jeremiah
Does nagios need apache to run or is it possible to run as a daemon? thanks, JJ Disclaimer: The information contained in this transmission, including any attachments, may contain confidential information of Panasonic Avionics Corporation. This transmission is intended only for the use of the

Re: [Nagios-users] OpMon.org

2008-10-31 Thread Mathieu Gagné
I can't load OpCfg's interface. I'm getting those PHP errors: Fatal error: Call to a member function isSideBarIncluded() on a non-object in /usr/local/nagios/share/opcfg/output/output.php on line 535 Fatal error: Call to a member function isSideBarIncluded() on a non-object in /usr/local/nagios

Re: [Nagios-users] checkhostalive vs ping service

2008-10-31 Thread L B
On Fri, Oct 31, 2008 at 5:33 PM, Marc Powell <[EMAIL PROTECTED]> wrote: >>> If you like the suppression of notifications for services on down >>> hosts or would like to use the parenting/reachability logic, host >>> checks would be necessary. >> >> I don't get notification of services unavailabilit

Re: [Nagios-users] Service Dependancy

2008-10-31 Thread Valdinger, Stephen (DOV, MSX)
I would set up service A as the parent of service B if parenting works like that. I'm not sure of services but I know that works for services. Stephen Valdinger MIS Helpdesk Coordinator P: 330.365.3622 C: 740.491.0958 -Original Message- From: Nair To: nagios_users Sent: Fri Oct 31 14:0

[Nagios-users] Obsoleting host/service extension affecting nagiosgraph, nagiosgrapher, etc?

2008-10-31 Thread HaiXin Tie
Hi, I have been trying to find a data grapher for nagios. I have looked into nagiosgraph and nagiosgrapher, however, both of them use serviceext definition, which, according to the official nagios 3 manual, is considered obsolete and will no longer be supported by version4. I am wondering what

[Nagios-users] Service Dependancy

2008-10-31 Thread Nair
  Hi Please give some insight on service dependancy configuration on Nagios distributed environment. Current situation: I have Service-A and Service-B on distribued servers are been actively monitored and result is been passively submitted to central Nagios server. Notifications are disabled

Re: [Nagios-users] checkhostalive vs ping service

2008-10-31 Thread Marc Powell
On Oct 31, 2008, at 9:57 AM, L B wrote: > Thanks Mark for your answers > >>> What is the difference between checking a host is alive with a check >>> in the host template (check_command check-host-alive), and >>> creating a >>> ping service applied to the host ? >> >> If the host check returns

Re: [Nagios-users] OpMon.org

2008-10-31 Thread Dario B. Bestetti (OpServices)
Sorry, the website is http://www.opmon.org _ Dario B. Bestetti OpServices R. Luciana de Abreu, 471 - Sala 403 Porto Alegre, RS - CEP 90570-060 Fone 55(51)32753588 Mobile 55(51)81518218 Fax 55(51)32753588 Email [EMAIL PROTECTED] "In God we tru

[Nagios-users] OpMon.org

2008-10-31 Thread Dario B. Bestetti (OpServices)
As promised, we just published our opensource website with OpServices contributions to Nagios community. _ Dario B. Bestetti OpServices R. Luciana de Abreu, 471 - Sala 403 Porto Alegre, RS - CEP 90570-060 Fone 55(51)32753588 Mobile 55(51)815182

Re: [Nagios-users] Invisible servers

2008-10-31 Thread Marc Powell
On Oct 31, 2008, at 9:50 AM, Assaf Flatto wrote: > My problem is - i have a list of about 950 units i am monitoring > once a day between 5 -7 AM , with > the understanding that some of the (about 50-60) will be down. > > After the test is done - we do not need to see them ( once the test > is

Re: [Nagios-users] checkhostalive vs ping service

2008-10-31 Thread L B
Thanks Mark for your answers >> What is the difference between checking a host is alive with a check >> in the host template (check_command check-host-alive), and creating a >> ping service applied to the host ? > > If the host check returns a non-OK state, notifications for services > on that hos

[Nagios-users] Invisible servers

2008-10-31 Thread Assaf Flatto
Hello I may be making fool out of myself here , but i tried of thinking of a solution for my problem and couldn't so i am bringing it to the list. My problem is - i have a list of about 950 units i am monitoring once a day between 5 -7 AM , with the understanding that some of the (about 50-

Re: [Nagios-users] Monitoring which user is running a service/process

2008-10-31 Thread Kenneth Holter
I got it working. Thanks for the tip. On 10/10/08, Aaron Segura <[EMAIL PROTECTED]> wrote: > > Yes. Note the '-u' option. > > > > $ ./check_procs -h > > check_procs (nagios-plugins 1.4.2) 1.46 > > Copyright (c) 1999 Ethan Galstad <[EMAIL PROTECTED]>Copyright (c) > 2000-2004 Nagios Plugin Develo

Re: [Nagios-users] snmpget truncating return

2008-10-31 Thread Marc Powell
On Oct 31, 2008, at 8:26 AM, Matt Nelson wrote: > I have a process that I check for via SNMP. I am using the following: > > snmpget server1 -v2c -c public -t 10 .1.3.6.1.2.1.25.4.2.1.5.9691 > > which returns a string that is truncated: > > HOST-RESOURCES-MIB::hrSWRunParameters.9691 = STRING: "-X

Re: [Nagios-users] snmpget truncating return

2008-10-31 Thread Aaron Segura
Looks like about 128 characters...that number seems meaningful, somehow :-) http://www.net-snmp.org/docs/mibs/host.html#hrSWRunTable - hrSWRunParameters OCTETSTR Legal Lengths: 0 .. 128 -- From: Matt Nelson [mai

Re: [Nagios-users] How to Create Graph on Nagios WebInterface

2008-10-31 Thread Novin Jaiswal
Hi Hugo, Thanks for you reply. Thanks for giving me hints. I will start looking into Cacti. I would like to volunteer for nagios future development. Thanks. Thanks & Regards Novin Jaiswal Ishi Systems Inc. 732-318-8156(cell) -Original Message- From: Hugo van der Kooij [mailto:[EMAIL

[Nagios-users] snmpget truncating return

2008-10-31 Thread Matt Nelson
I have a process that I check for via SNMP. I am using the following: snmpget server1 -v2c -c public -t 10 .1.3.6.1.2.1.25.4.2.1.5.9691 which returns a string that is truncated: HOST-RESOURCES-MIB::hrSWRunParameters.9691 = STRING: "-Xms512m -Xmx1024m -Dcom.sun.management.jmxremote.port=x -D

Re: [Nagios-users] checkhostalive vs ping service

2008-10-31 Thread Marc Powell
On Oct 31, 2008, at 5:10 AM, L B wrote: > Hello all, > > What is the difference between checking a host is alive with a check > in the host template (check_command check-host-alive), and creating a > ping service applied to the host ? If the host check returns a non-OK state, notifications for s

[Nagios-users] checkhostalive vs ping service

2008-10-31 Thread L B
Hello all, What is the difference between checking a host is alive with a check in the host template (check_command check-host-alive), and creating a ping service applied to the host ? I did a test with both configurations, and didn't see a different behavior. I thought it was a question of depen