LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Nagios plug-in doubts (https://www.linuxquestions.org/questions/linux-software-2/nagios-plug-in-doubts-630819/)

velvel 03-26-2008 12:11 PM

Nagios plug-in doubts
 
Hello,
I created my own nagios plug-in to read the log file of apache. In plug-in i use file pointer FILE *fp=fopen("\var\log\httpd\access_log","r") to open and read the file.My program and path is correct. When i added the plug-in to nagios the plug-in could not read the file. please tell me how to read a file from the nagios plug-in

marozsas 03-26-2008 03:11 PM

Are you sure the path is correct ?
I think the correct is /var/log/httpd/access_log ..... or are you running apache and nagios in a ms-windows machine ?!?!?!???


All times are GMT -5. The time now is 05:10 AM.