perfparse doesn't display hosts, services
Ton Voon
ton.voon at altinity.com
Wed Sep 14 14:54:41 CEST 2005
John,
I haven't used perfparse, but I had a problem when I was trying to
use a daemon that was reading data from the named pipe but nagios
could not write to the named pipe.
Problem was that nagios tries to open the perf file in append mode
(which makes sense if it is actually a file). This fails for a pipe
(at least on Solaris 2.6). So I patched nagios to open it in write
mode - please find attached. This is against Nagios 1.0, so it may
have moved for later versions.
Ton
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xpdfile.c.patch
Type: application/octet-stream
Size: 928 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050914/f98f0d83/attachment.obj>
-------------- next part --------------
On 14 Sep 2005, at 12:55, John Christian wrote:
> Thanks for the suggestion. I stopped nagios and
> perfparsed, then started perfparse, changed the perms
> on the perfdata-service.log file, and started nagios.
> I repated this a few times while trying different
> perms on the pipe.
>
> prwxrwxrwx 1 root other 0 Sep 14 07:34
> perfdata-service.log
>
> prwxrwxrwx 1 nagios nagios 0 Sep 14 07:34
> perfdata-service.log
>
> prw-r----- 1 nagios nagios 0 Sep 14 07:40
> perfdata-service.log
>
> I continue to receive the following error in
> nagios.log:
>
> Warning: File
> '/usr/local/nagios/var/perfdata-service.log' could not
> be opened - service performance data will not be
> written to file!
>
> Other ideas on what I'm missing?
> -John
http://www.altinity.com
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon
The contents of this email and any files transmitted with it are
confidential and intended solely for the use of the individuals to
whom it
is addressed. If you are not the intended recipient or have received
this
e-mail in error please notify the sender and destroy this e-mail
immediately. Any unauthorised copying, disclosure or distribution of the
material in this e-mail is strictly prohibited.
More information about the Users
mailing list