[Nagios-users] Querying nagios object information through command line

2012-05-16 Thread Yu Watanabe
Hi all! Is there a script or a module that can be called through a command line and can retrieve nagios object definition , host , service? I am thinking of calling from php program. I found that config.cgi has an ability of fetching the object definition but it seems that it returns html

Re: [Nagios-users] Querying nagios object information through command line

2012-05-16 Thread RichTea
On Wed, May 16, 2012 at 9:14 AM, Yu Watanabe yu.watan...@jp.fujitsu.comwrote: Hi all! Is there a script or a module that can be called through a command line and can retrieve nagios object definition , host , service? I am thinking of calling from php program. I found that config.cgi has

Re: [Nagios-users] Querying nagios object information through command line

2012-05-16 Thread C. Bensend
Is there a script or a module that can be called through a command line and can retrieve nagios object definition , host , service? I am thinking of calling from php program. I found that config.cgi has an ability of fetching the object definition but it seems that it returns html info.

Re: [Nagios-users] Nagios 3.4.0 double quote in command bug (fixed)

2012-05-16 Thread Andreas Ericsson
On 05/15/2012 03:49 PM, Dennis Kuhlmeier wrote: Hi Phil, On 15.05.12 15:24, Randal, Phil wrote: Hi Dennis, Can you check out Nagios 3.4.1 and see if this fixes the problem? sorry for not checking prior to posting. Anyway, I built the new version, btw., why can't you just build the

Re: [Nagios-users] Querying nagios object information through command line

2012-05-16 Thread Daniel Wittenberg
I second livestatus, we use it all the time, plus there is a webservice as well, livestatusSlave which might work better with your php. http://nagios.larsmichelsen.com/livestatusslave/ Dan -Original Message- From: C. Bensend [mailto:be...@bennyvision.com] Sent: Wednesday, May 16,

Re: [Nagios-users] Performance data not being returned

2012-05-16 Thread Alex Griffin
You keep putting commas in your example output, but as someone else already pointed out, perfdata is *space*-separated. The commas shouldn't be there. It seems this probably isn't the issue though. Why don't you post your plugin's source code so I can get a better idea of what's going on.

Re: [Nagios-users] Alerts not making it to notifications log or alert history

2012-05-16 Thread Alex Griffin
That's very odd, and I really don't have any concrete ideas for you. I haven't heard of anyone running into this issue before. Maybe reinstalling the packages might fix something, though? You said it's an intermittent problem, so how often would you say it occurs? Have you noticed any patterns

[Nagios-users] Alarm sounds playing without any alarm listed on status

2012-05-16 Thread Francisco Cabrita
Hello, //Sorry for crossposting. I'm having a weird behaviour under Nagios 3.3.1 (and 3.4.1). When I specify some filters to status.cgi, I don't see any alarm on the screen (as expected) but I get the audible alarm for critical services. I'm passing these variables to it. this is the argument

Re: [Nagios-users] Perfdata problem

2012-05-16 Thread Randal, Phil
That older perfdata problem is here: http://tracker.nagios.org/view.php?id=247 Patch (untested) to always process perfdata (removing the early exits): --- nagios/xdata/xpddefault.c 2012-02-07 10:15:02.0 + +++ nagios/xdata/xpddefault.c 2012-05-16 16:48:44.0 +0100 @@

[Nagios-users] Alerts not making it to notifications log or alert history

2012-05-16 Thread Mark Wicks
Alex, I do not have more details about the problem but its on my radar now. Next time it happens i will keep more detailed notes. thanks, Mark -- Live Security Virtual Conference Exclusive live event will cover all the

Re: [Nagios-users] check_http fails for two Sprint sites

2012-05-16 Thread Frank Bulk - iName.com
FYI: Sprint did something this morning such that those sites are now checking cleanly with check_http. Frank From: Frank Bulk [frnk...@iname.com] Sent: Friday, February 24, 2012 8:27 AM To: 'Paul Dubuc'; 'Nagios Users List' Subject: RE: [Nagios-users]

Re: [Nagios-users] Querying nagios object information through command line

2012-05-16 Thread Yu Watanabe
Benny , Ritchie , Daniel Thank you for the advice. I will take a look at the mklivestatus. Thanks. Yu C. Bensend さんは書きました: Is there a script or a module that can be called through a command line and can retrieve nagios object definition , host , service? I am thinking of calling from php

Re: [Nagios-users] Querying nagios object information through command line

2012-05-16 Thread Wenhua Zhang
Hi Yu, I think status-txt may do some help for you. status-txt is implemented to duplicate the output of status.cgi in plain text to achieve this goal, making it easier for other applications/services to use Nagios data. You can also get the source code from github