Search found 3 matches

by arpand
Mon Mar 25, 2013 1:47 am
Forum: Open Source Nagios Projects
Topic: Nagios plugin unable to open external log file for reading
Replies: 4
Views: 1590

Re: Nagios plugin unable to open external log file for readi

Hmnn my plugin is working fine now,

./check_page_hit -f loging.log

loging.log is the file name. And it is parsing the log file and calculate the page hit in the application and it is also generating the perf data :D
by arpand
Thu Mar 21, 2013 12:34 am
Forum: Open Source Nagios Projects
Topic: Nagios plugin unable to open external log file for reading
Replies: 4
Views: 1590

Re: Nagios plugin unable to open external log file for readi

Ya, The problem is solved now. Actually nagios is searching the "loging.log" file in me / directory. which i identify , when i printf a PWD in the code. So i placed the loging.log file there and it is working fine. But it will not work when i deploy the same to a server. so searching for t...
by arpand
Wed Mar 20, 2013 4:38 am
Forum: Open Source Nagios Projects
Topic: Nagios plugin unable to open external log file for reading
Replies: 4
Views: 1590

Nagios plugin unable to open external log file for reading

Hi i have a plugin written in c that will parse a .log<server log> file and determine the page hit count _xLogFileName = "loging.log"; _xFile = fopen ( _xLogFileName, "r" ); if ( _xFile != NULL ) { // process file }else { printf("error\n"); return 3; } now i placed the ...