Skip to content

Commit

Permalink
yhf
Browse files Browse the repository at this point in the history
  • Loading branch information
yihongfei committed Apr 14, 2017
1 parent a25d3db commit 02d71ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,14 @@ Up,Down 报警状态机
```bash
*/3 * * * * python /root/npm/npm.py > /dev/null
```
*注意:如果使用计划任务,npm.py中的路径请使用绝对路径*

排错
------
1 配置文件末尾请不要留空行.</p>
2 所有日志默认输出的位置是:/root/mylog.txt </p>
3 如果修改了pingModule中的文件,需要删除*.pyc </p>
3 使用root权限运行

开发环境
--------
Expand Down
1 change: 1 addition & 0 deletions npm.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#-------config------------------
devicefile_init = './npm.ini'
devicetmp = './npm.tmp'
#--------logfile--------------
pythonlog = '/root/mylog.txt'

npm_title = "npm.slp" #example:NPM.idc3
Expand Down

0 comments on commit 02d71ce

Please sign in to comment.