From: Michael G. <mic...@pa...> - 2005-03-16 22:31:07
|
Hello, I have complied nagios 1.2 with --with-default-perfdata --enable- embedded-perl --with-perlcache I then complied perfparse 0.105.6 I want nagios to feed perfparse via a PIPE since that seemed like the best option. In my nagios.cfg file I have the following: cfg_file=/home/mgale/downloads/network- monitor/netmonitorbase/etc/nagios_perfparse.cfg process_performance_data=1 host_perfdata_command=process-host-perfdata service_perfdata_command=process-service-perfdata In perfparse I have: Service_Log = "|/home/mgale/downloads/network- monitor/netmonitorbase/var/serviceperf.log" And I setup the DB area: DB_User = "perfpase_user" DB_Name = "perfpasedb" DB_Pass = "perfuser" DB_Host = "127.0.0.1" In my resource.cfg file I provided $USER2$ with the path if the perfparse install. I added this to my nagios_perfparse.cfg file: define command{ command_name process-service-perfdata command_line $USER2$/bin/perfparse_nagios_command.pl $USER2 $/var/serviceperf.log "$TIMET$" "$HOSTNAME$" "$SERVICEDESC$" "$OUTPUT$" "$SERVICESTATE$" "$PERFDATA$" } Now in my .../path/var directory where all the nagios logs and perfparse logs are setup there is a serviceperf.log what is incrementing with all the data: 1110996780 mgale-pc HTTP Server HTTP WARNING: HTTP/1.1 403 Forbidden WARNING 1110996840 mgale-pc HTTP Server HTTP WARNING: HTTP/1.1 403 Forbidden WARNING 1110996900 mgale-pc HTTP Server HTTP WARNING: HTTP/1.1 403 Forbidden WARNING 1110996960 mgale-pc HTTP Server HTTP WARNING: HTTP/1.1 403 Forbidden WARNING 1110997260 mgale-pc HTTP Server HTTP WARNING: HTTP/1.1 403 Forbidden WARNING 1110997560 mgale-pc HTTP Server HTTP WARNING: HTTP/1.1 403 Forbidden WARNING 1110997860 mgale-pc HTTP Server HTTP WARNING: HTTP/1.1 403 Forbidden WARNING 1110998160 mgale-pc HTTP Server HTTP WARNING: HTTP/1.1 403 Forbidden WARNING 1110998460 mgale-pc HTTP Server HTTP WARNING: HTTP/1.1 403 Forbidden WARNING 1110998760 mgale-pc HTTP Server HTTP WARNING: HTTP/1.1 403 Forbidden WARNING 1110999060 mgale-pc HTTP Server HTTP WARNING: HTTP/1.1 403 Forbidden WARNING But nothing is being added to the database ... and there are no reports. Now I have only started the Nagios process. I do not have to start any perfparse process because it is feed with a PIPE ? Have been going through the online documentation for a few hours trying to figure this out ... Thanks. Michael. |